mirror of
https://github.com/tuz358/cpu-emulator.git
synced 2025-12-18 21:14:35 +03:00
jmp_imm8: Bug fix (eip address missing)
This commit is contained in:
@@ -263,9 +263,9 @@ void Instructions::mov_ebx_imm32(){
|
|||||||
void Instructions::jmp_imm8() {
|
void Instructions::jmp_imm8() {
|
||||||
printf("jmp_imm8 called.\n");
|
printf("jmp_imm8 called.\n");
|
||||||
|
|
||||||
this->eip++;
|
int8_t imm8 = memory.read_int8(this->eip);
|
||||||
uint8_t imm8 = memory.read_uint8(this->eip);
|
|
||||||
this->eip += imm8;
|
this->eip += imm8;
|
||||||
|
this->eip++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Instructions::hlt(){
|
void Instructions::hlt(){
|
||||||
|
|||||||
Reference in New Issue
Block a user