diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-09-16 20:54:40 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-09-16 20:54:40 +0200 |
| commit | 2b1e12dafd022b8a3627092d07f5cdf9059c8f64 (patch) | |
| tree | 44b1cfdc1d5c8cbced27ab3decbea6b3911ffeb9 /src/emu | |
| parent | b4ca2be9e01492c053c64b3d43c08e9d31957de5 (diff) | |
| download | box64-2b1e12dafd022b8a3627092d07f5cdf9059c8f64.tar.gz box64-2b1e12dafd022b8a3627092d07f5cdf9059c8f64.zip | |
Fixed 66 0F 3A 22 opcode for REX.W ([DYNAREC] too) (should help #81)
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/x64run660f.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |