diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-04-10 10:55:15 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-04-10 10:55:15 +0200 |
| commit | 968cb3cea40d874054572fdeb1d80c77464e10fd (patch) | |
| tree | 9d8d5d973135c780a47ce62394fde037474fc4ad /src | |
| parent | 889bbf3e3f87dc255494552da6d5d9e7a57bedaf (diff) | |
| download | box64-968cb3cea40d874054572fdeb1d80c77464e10fd.tar.gz box64-968cb3cea40d874054572fdeb1d80c77464e10fd.zip | |
Fixed PMAXSD opcode and added PMINUW
Diffstat (limited to 'src')
| -rw-r--r-- | src/emu/x64run660f.c | 10 |
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; |