about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-10 17:41:53 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-10 17:41:53 +0200
commitedeac868d097f6954f3663db079721ae9003dd6c (patch)
tree44c9b609ec21a7405391759dde40541612ecf8f0 /src
parenta618dee15cce0216b9288173e1d6ce6545d8bc3b (diff)
downloadbox64-edeac868d097f6954f3663db079721ae9003dd6c.tar.gz
box64-edeac868d097f6954f3663db079721ae9003dd6c.zip
(Re?)add 66 0F 38 17 opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run660f.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index 657c8485..a98cc3c9 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -279,6 +279,14 @@ int Run660F(x64emu_t *emu, rex_t rex)
                 }

                 break;

 

+            case 0x17:      // PTEST GX, EX

+                nextop = F8;

+                GETEX(0);

+                GETGX;

+                CONDITIONAL_SET_FLAG(!(GX->u128&EX->u128), F_ZF);

+                CONDITIONAL_SET_FLAG(!((~GX->u128)&EX->u128), F_CF);

+                break;

+

             case 0x1C:  /* PABSB Gx, Ex */

                 nextop = F8;

                 GETEX(0);