about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-04-10 10:55:15 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-04-10 10:55:15 +0200
commit968cb3cea40d874054572fdeb1d80c77464e10fd (patch)
tree9d8d5d973135c780a47ce62394fde037474fc4ad /src
parent889bbf3e3f87dc255494552da6d5d9e7a57bedaf (diff)
downloadbox64-968cb3cea40d874054572fdeb1d80c77464e10fd.tar.gz
box64-968cb3cea40d874054572fdeb1d80c77464e10fd.zip
Fixed PMAXSD opcode and added PMINUW
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run660f.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index c8613dda..5fe52958 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -485,8 +485,16 @@ int Run660F(x64emu_t *emu, rex_t rex)
                     if(GX->sd[i]>EX->sd[i])

                         GX->sd[i] = EX->sd[i];

                 break;

+            case 0x3A:  /* PMINUW Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    if(GX->uw[i]<EX->uw[i])

+                        GX->uw[i] = EX->uw[i];

+                break;

 

-            case 0x3A:  /* PMAXSD Gx, Ex */

+            case 0x3D:  /* PMAXSD Gx, Ex */

                 nextop = F8;

                 GETEX(0);

                 GETGX;