From e83232fcf6de74abb47160a470ebb9ca7450e266 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 11 Apr 2021 16:35:45 +0200 Subject: Fixed 0F E3 opcode --- src/emu/x64run0f.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c index 48abfda9..3d5712f1 100644 --- a/src/emu/x64run0f.c +++ b/src/emu/x64run0f.c @@ -1351,15 +1351,12 @@ int Run0F(x64emu_t *emu, rex_t rex) GM->sd[i] >>= tmp8u; } break; - case 0xE3: /* PSRAQ Gm, Em */ + case 0xE3: /* PAVGW Gm, Em */ nextop = F8; GETEM(0); GETGM; - if(EM->q>63) - tmp8u = 64; - else - tmp8u = EM->ub[0]; - GM->sq >>= tmp8u; + for(int i=0; i<4; ++i) + GM->uw[i] = ((uint32_t)GM->uw[i]+EM->uw[i]+1)>>1; break; case 0xE4: /* PMULHUW Gm, Em */ nextop = F8; -- cgit 1.4.1