From f8ef852b4699dba4f8a7e76943a32b73b1e5d9f6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 9 Jul 2021 17:32:13 +0200 Subject: Added 66 0F C8..CF opcodes ([DYNAREC] too) --- src/emu/x64run660f.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/emu') diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index 08f23f7d..94445359 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -1265,6 +1265,22 @@ int Run660F(x64emu_t *emu, rex_t rex) GX->q[1] = eax1.q[1]; break; + case 0xC8: + case 0xC9: + case 0xCA: + case 0xCB: + case 0xCC: + case 0xCD: + case 0xCE: + case 0xCF: /* BSWAP reg16 */ + tmp8u = (opcode&7)+(rex.b<<3); + if(rex.w) { + emu->regs[tmp8u].q[0] = __builtin_bswap64(emu->regs[tmp8u].q[0]); + } else { + emu->regs[tmp8u].word[0] = __builtin_bswap16(emu->regs[tmp8u].word[0]); + } + break; + case 0xD1: /* PSRLW Gx, Ex */ nextop = F8; GETEX(0); -- cgit 1.4.1