From 59e367a88e3569b7bb470cf796df0f86e5207b1a Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 3 May 2022 09:57:47 +0200 Subject: Added and fixed opcodes 66 0F 38 38..3F ([DYNAREC] too) (for #299) --- src/emu/x64run660f.c | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) (limited to 'src/emu') diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index ac255a0f..e3b71d4b 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -477,6 +477,14 @@ int Run660F(x64emu_t *emu, rex_t rex) GX->q[i] = EX->ud[i]; break; + case 0x38: /* PMINSB Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=0; i<16; ++i) + if(GX->sb[i]>EX->sb[i]) + GX->sb[i] = EX->sb[i]; + break; case 0x39: /* PMINSD Gx, Ex */ nextop = F8; GETEX(0); @@ -490,10 +498,25 @@ int Run660F(x64emu_t *emu, rex_t rex) GETEX(0); GETGX; for(int i=0; i<8; ++i) - if(GX->uw[i]uw[i]) + if(GX->uw[i]>EX->uw[i]) GX->uw[i] = EX->uw[i]; break; - + case 0x3B: /* PMINUD Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=0; i<4; ++i) + if(GX->ud[i]>EX->ud[i]) + GX->ud[i] = EX->ud[i]; + break; + case 0x3C: /* PMAXSB Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=0; i<16; ++i) + if(GX->sb[i]sb[i]) + GX->sb[i] = EX->sb[i]; + break; case 0x3D: /* PMAXSD Gx, Ex */ nextop = F8; GETEX(0); @@ -502,6 +525,22 @@ int Run660F(x64emu_t *emu, rex_t rex) if(GX->sd[i]sd[i]) GX->sd[i] = EX->sd[i]; break; + case 0x3E: /* PMAXUW Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=0; i<8; ++i) + if(GX->uw[i]uw[i]) + GX->uw[i] = EX->uw[i]; + break; + case 0x3F: /* PMAXUD Gx, Ex */ + nextop = F8; + GETEX(0); + GETGX; + for(int i=0; i<4; ++i) + if(GX->ud[i]ud[i]) + GX->ud[i] = EX->ud[i]; + break; case 0xDB: /* AESIMC Gx, Ex */ nextop = F8; -- cgit 1.4.1