From 2b1e12dafd022b8a3627092d07f5cdf9059c8f64 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 16 Sep 2021 20:54:40 +0200 Subject: Fixed 66 0F 3A 22 opcode for REX.W ([DYNAREC] too) (should help #81) --- src/emu/x64run660f.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/emu') diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index 6f0a4d9d..1e7fcdf8 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -647,7 +647,10 @@ int Run660F(x64emu_t *emu, rex_t rex) GETED(1); GETGX; tmp8u = F8; - GX->ud[tmp8u&0x3] = ED->dword[0]; + if(rex.w) + GX->q[tmp8u&0x1] = ED->q[0]; + else + GX->ud[tmp8u&0x3] = ED->dword[0]; break; case 0x40: /* DPPS Gx, Ex, Ib */ -- cgit 1.4.1