mirror of
https://github.com/tuz358/cpu-emulator.git
synced 2025-12-18 21:14:35 +03:00
mov_ecx_imm32: Bug fix due to forgetting endian conversion
This commit is contained in:
@@ -245,10 +245,10 @@ void Instructions::mov_eax_imm32(){
|
||||
void Instructions::mov_ecx_imm32(){
|
||||
printf("mov_ecx_imm32 called.\n");
|
||||
|
||||
this->eip++;
|
||||
uint32_t imm32 = memory.read_uint32(this->eip);
|
||||
imm32 = swap_endian32(imm32);
|
||||
this->registers[1] = imm32;
|
||||
this->eip += 3;
|
||||
this->eip += 4;
|
||||
}
|
||||
|
||||
void Instructions::mov_ebx_imm32(){
|
||||
|
||||
Reference in New Issue
Block a user