From 066410a31de7893e1c96a167e1f7d9a9350997f9 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 13 Mar 2021 10:05:25 +0100 Subject: [PATCH] Fixed some 32bits versio of F7 opcodes --- src/emu/x64run.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/emu/x64run.c b/src/emu/x64run.c index c127d7d7..0a393466 100755 --- a/src/emu/x64run.c +++ b/src/emu/x64run.c @@ -1188,10 +1188,16 @@ x64emurun: test32(emu, ED->dword[0], tmp32u); break; case 2: /* NOT Ed */ - ED->q[0] = not32(emu, ED->dword[0]); + if(MODREG) + ED->q[0] = not32(emu, ED->dword[0]); + else + ED->dword[0] = not32(emu, ED->dword[0]); break; case 3: /* NEG Ed */ - ED->q[0] = neg32(emu, ED->dword[0]); + if(MODREG) + ED->q[0] = neg32(emu, ED->dword[0]); + else + ED->dword[0] = neg32(emu, ED->dword[0]); break; case 4: /* MUL EAX,Ed */ mul32_eax(emu, ED->dword[0]);