mov_ebx_imm32: Bug fix due to forgetting endian conversion

This commit is contained in:
tuz358
2018-03-05 17:13:56 +09:00
parent 59998aa168
commit f0c3e92281

View File

@@ -254,10 +254,10 @@ void Instructions::mov_ecx_imm32(){
void Instructions::mov_ebx_imm32(){
printf("mov_ebx_imm32 called.\n");
this->eip++;
uint32_t imm32 = memory.read_uint32(this->eip);
imm32 = swap_endian32(imm32);
this->registers[3] = imm32;
this->eip += 3;
this->eip += 4;
}
void Instructions::jmp_imm8() {