diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-20 12:45:22 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-20 12:45:22 +0100 |
| commit | b52b3219696b851e96dc8d2e6543e91dbba909ff (patch) | |
| tree | 2272f1454640cbbd818ea9ce176bcd19af447778 /src/emu | |
| parent | e5b36d2997a44eb10adc1a17591a878200743f5f (diff) | |
| download | box64-b52b3219696b851e96dc8d2e6543e91dbba909ff.tar.gz box64-b52b3219696b851e96dc8d2e6543e91dbba909ff.zip | |
[DYNAREC] Added F6 opcodes and fixed issue with native call that may destroy some registers
Diffstat (limited to 'src/emu')
| -rwxr-xr-x | src/emu/x64primop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/x64primop.c b/src/emu/x64primop.c index cc9422e7..441518ac 100755 --- a/src/emu/x64primop.c +++ b/src/emu/x64primop.c @@ -1384,8 +1384,8 @@ void idiv32(x64emu_t *emu, uint32_t s) SET_FLAG(F_ZF); CONDITIONAL_SET_FLAG(PARITY(mod & 0xff), F_PF); - R_EAX = (uint32_t)quot; - R_EDX = (uint32_t)mod; + R_RAX = (uint32_t)quot; + R_RDX = (uint32_t)mod; } void idiv64(x64emu_t *emu, uint64_t s) @@ -1485,8 +1485,8 @@ void div32(x64emu_t *emu, uint32_t s) SET_FLAG(F_ZF); CONDITIONAL_SET_FLAG(PARITY(mod & 0xff), F_PF); - R_EAX = (uint32_t)div; - R_EDX = (uint32_t)mod; + R_RAX = (uint32_t)div; + R_RDX = (uint32_t)mod; } void div64(x64emu_t *emu, uint64_t s) |