From e8d6f083a36f79ee2b29b50451d08bb4baa7d9ae Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 2 Apr 2021 15:11:19 +0200 Subject: Added 66 0F 38 0B opcode ([DYNAREC] too) --- src/emu/x64run660f.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/emu') diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index f18e8874..4ccf55da 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -248,6 +248,16 @@ int Run660F(x64emu_t *emu, rex_t rex) } break; + case 0x0B: /* PMULHRSW Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for (int i=0; i<8; ++i) { + tmp32s = ((((int32_t)(GX->sw[i])*(int32_t)(EX->sw[i]))>>14) + 1)>>1; + GX->uw[i] = tmp32s&0xffff; + } + break; + default: return 1; } -- cgit 1.4.1