about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-04 17:52:05 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-04 17:52:05 +0100
commitaeca62699e4f8c7029147109aebf406d5a2f0e2e (patch)
tree7f8cec91a00547d0ae4e23ca27976fb334d3eba9
parentd48da61142412b495cf1e5198366c168feb38eb6 (diff)
downloadbox64-aeca62699e4f8c7029147109aebf406d5a2f0e2e.tar.gz
box64-aeca62699e4f8c7029147109aebf406d5a2f0e2e.zip
Added REX 85 TEST opcode
-rwxr-xr-xsrc/emu/x64run.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index 142171c4..d29d6d65 100755
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -230,6 +230,16 @@ x64emurun:
             }
             break;
 
+        case 0x85:                      /* TEST Ed,Gd */
+            nextop = F8;
+            GETED;
+            GETGD;
+            if(rex.w)
+                test64(emu, ED->q[0], GD->q[0]);
+            else
+                test32(emu, ED->dword[0], GD->dword[0]);
+            break;
+
         case 0x89:                    /* MOV Ed,Gd */
             nextop = F8;
             GETED;