about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-06 16:37:02 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-06 16:37:02 +0200
commitd07036b8ec693bb85bd74bd81703931a85b13a50 (patch)
tree9a9fa9f5a604fe5924b847a81cc06c231b90a93b /src/emu
parentcb73eaf7768cd765cb242bb4526c9ce998e4d82d (diff)
downloadbox64-d07036b8ec693bb85bd74bd81703931a85b13a50.tar.gz
box64-d07036b8ec693bb85bd74bd81703931a85b13a50.zip
Added 0F D7 opcode ([DYNAREC] too) (for #32)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run0f.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 8bb36279..89c005a1 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -1283,6 +1283,15 @@ int Run0F(x64emu_t *emu, rex_t rex)
             }

             break;

 

+        case 0xD7:                   /* PMOVMSKB Gd,Em */

+            nextop = F8;

+            GETEM(0);

+            GETGD;

+            GD->dword[0] = 0;

+            for (int i=0; i<8; ++i)

+                if(EM->ub[i]&0x80)

+                    GD->dword[0] |= (1<<i);

+            break;

         case 0xD8:                   /* PSUBUSB Gm,Em */

             nextop = F8;

             GETEM(0);