diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-04-08 09:39:11 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-04-08 09:39:11 +0200 |
| commit | 9ad09a0166ca7e4a29e98c734abc0ccbbc6972f0 (patch) | |
| tree | 8d7759c0d7b3e3f7ad3d879f0126dea3f4a2d090 | |
| parent | 728a656df48288e97890d9220c5935eea3c00c91 (diff) | |
| download | box64-9ad09a0166ca7e4a29e98c734abc0ccbbc6972f0.tar.gz box64-9ad09a0166ca7e4a29e98c734abc0ccbbc6972f0.zip | |
Fixed 66 0F 38 2B opcode
| -rw-r--r-- | src/emu/x64run660f.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index 47691ecb..384e82d6 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -488,13 +488,13 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) nextop = F8; GETEX(0); GETGX; - for(int i=3; i>=0; --i) - GX->uw[i] = ((GX->sd[i]<0)?0:(GX->sd[i]>65535)?65535:GX->sd[i]); + for(int i=0; i<4; ++i) + GX->uw[i] = (GX->sd[i]<0)?0:((GX->sd[i]>65535)?65535:GX->sd[i]); if(GX==EX) GX->q[1] = GX->q[0]; else for(int i=0; i<4; ++i) - GX->uw[i+4] = ((EX->sd[i]<0)?0:(EX->sd[i]>65535)?65535:EX->sd[i]); + GX->uw[i+4] = (EX->sd[i]<0)?0:((EX->sd[i]>65535)?65535:EX->sd[i]); break; case 0x30: /* PMOVZXBW Gx, Ex */ |