about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-11 15:24:08 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-11 15:24:08 +0200
commit2d590bb1f5b6f13c1369af1cdfea567edb07f510 (patch)
tree391244c171fc0543127db9cc2fe002d8bf2b35b7 /src
parentaef3677970248505896067635aff764c7eb1a70b (diff)
downloadbox64-2d590bb1f5b6f13c1369af1cdfea567edb07f510.tar.gz
box64-2d590bb1f5b6f13c1369af1cdfea567edb07f510.zip
Added 0F DE opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run0f.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 6ac0f0a6..48abfda9 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -1307,7 +1307,13 @@ int Run0F(x64emu_t *emu, rex_t rex)
                 GM->uw[i] = (tmp32u>65535) ? 65535 : tmp32u;

             }

             break;

-

+        case 0xDE:                   /* PMAXUB Gm,Em */

+            nextop = F8;

+            GETEM(0);

+            GETGM;

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

+                GM->ub[i] = (GM->ub[i]>EM->ub[i])?GM->ub[i]:EM->ub[i];

+            break;

         case 0xDF:                   /* PANDN Gm,Em */

             nextop = F8;

             GETEM(0);