about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run0f.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 81636b4a..8fa3fdfa 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -474,6 +474,21 @@ int Run0F(x64emu_t *emu, rex_t rex)
             }

             break;

 

+        case 0xC8:

+        case 0xC9:

+        case 0xCA:

+        case 0xCB:

+        case 0xCC:

+        case 0xCD:

+        case 0xCE:

+        case 0xCF:                  /* BSWAP reg */

+            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].dword[0] = __builtin_bswap32(emu->regs[tmp8u].dword[0]);

+            break;

+

         case 0xD1:                   /* PSRLW Gm,Em */

             nextop = F8;

             GETEM(0);