about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-09-08 20:54:19 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-09-08 20:54:19 +0200
commit63ab450d875018ab284f6beaa71a2b1d859051d6 (patch)
tree324824610c1326fae41ea133fd9702fd1d8db5ec /src
parentbcc29168cd9fb592f8cbecabe351d29a61f90d89 (diff)
downloadbox64-63ab450d875018ab284f6beaa71a2b1d859051d6.tar.gz
box64-63ab450d875018ab284f6beaa71a2b1d859051d6.zip
Added 66 0F 7C ocpode (for #111)
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run660f.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index 4a748f0b..6f0a4d9d 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -1132,6 +1132,18 @@ int Run660F(x64emu_t *emu, rex_t rex)
             GX->ud[i] = (GX->ud[i]==EX->ud[i])?0xffffffff:0;

         break;

 

+    case 0x7C:  /* HADDPD Gx, Ex */

+        nextop = F8;

+        GETEX(0);

+        GETGX;

+        GX->d[0] += GX->d[1];

+        if(EX==GX) {

+            GX->d[1] = GX->d[0];

+        } else {

+            GX->d[1] = EX->d[0] + EX->d[1];

+        }

+        break;

+

     case 0x7E:                      /* MOVD Ed, Gx */

         nextop = F8;

         GETED(0);