about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-30 21:32:48 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-03-30 21:32:48 +0200
commit3746ae9cf3b8157f547d98149568365e3a3baace (patch)
tree591fa8466d9f55255e08419d6185b58d5f59d15d /src
parent0c4eed79daf33006f61b6fb223ae32728375f018 (diff)
downloadbox64-3746ae9cf3b8157f547d98149568365e3a3baace.tar.gz
box64-3746ae9cf3b8157f547d98149568365e3a3baace.zip
Added 66 0F 38 00 opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run660f.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index 7227f6f0..2c6ead7c 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -167,6 +167,27 @@ int Run660F(x64emu_t *emu, rex_t rex)
         CLEAR_FLAG(F_OF); CLEAR_FLAG(F_AF); CLEAR_FLAG(F_SF);

         break;

 

+    case 0x38:  // SSSE3 opcodes

+        opcode = F8;

+        switch(opcode) {

+            case 0x00:  /* PSHUFB */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

+                eax1 = *GX;

+                for (int i=0; i<16; ++i) {

+                    if(EX->ub[i]&128)

+                        GX->ub[i] = 0;

+                    else

+                        GX->ub[i] = eax1.ub[EX->ub[i]&15];

+                }

+                break;

+

+            default:

+                return 1;

+        }

+        break;

+

     GOCOND(0x40

         , nextop = F8;

         CHECK_FLAGS(emu);