jmp_imm8: Bug fix (eip address missing)

This commit is contained in:
tuz358
2018-03-05 17:16:11 +09:00
parent f0c3e92281
commit e0b453b79f

View File

@@ -263,9 +263,9 @@ void Instructions::mov_ebx_imm32(){
void Instructions::jmp_imm8() {
printf("jmp_imm8 called.\n");
this->eip++;
uint8_t imm8 = memory.read_uint8(this->eip);
int8_t imm8 = memory.read_int8(this->eip);
this->eip += imm8;
this->eip++;
}
void Instructions::hlt(){