mirror of
https://github.com/tuz358/cpu-emulator.git
synced 2025-12-18 13:04:35 +03:00
jne_imm8: Bug fix due toeip addressing mistakes
This commit is contained in:
@@ -161,11 +161,13 @@ void Instructions::dec_ecx(){
|
||||
void Instructions::jne_imm8(){
|
||||
printf("jne_imm8 called.\n");
|
||||
|
||||
this->eip++;
|
||||
uint8_t imm8 = memory.read_uint8(this->eip);
|
||||
int8_t imm8 = memory.read_int8(this->eip);
|
||||
|
||||
int zero_flag = this->get_flag(ZF);
|
||||
if (!zero_flag) this->eip += imm8;
|
||||
if (!zero_flag){
|
||||
this->eip += imm8;
|
||||
}
|
||||
this->eip++;
|
||||
}
|
||||
|
||||
void Instructions::opcode_83(){
|
||||
|
||||
Reference in New Issue
Block a user