diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-06 11:20:27 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-06 11:20:27 +0100 |
| commit | 0999500a7a56e503e4ba9dbf80e10681cce07fe4 (patch) | |
| tree | 825a89494786cfd556e33a99cafc4a964439389a /src/emu/x64run66.c | |
| parent | 4c7bf4695bac46cb8a775eea9e01a16b1a468aa7 (diff) | |
| download | box64-0999500a7a56e503e4ba9dbf80e10681cce07fe4.tar.gz box64-0999500a7a56e503e4ba9dbf80e10681cce07fe4.zip | |
Added 66 REX 0F EF PXOR opcode
Diffstat (limited to 'src/emu/x64run66.c')
| -rw-r--r-- | src/emu/x64run66.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emu/x64run66.c b/src/emu/x64run66.c index 83e9720d..9bfe8e7f 100644 --- a/src/emu/x64run66.c +++ b/src/emu/x64run66.c @@ -35,9 +35,18 @@ int Run66(x64emu_t *emu, rex_t rex) reg64_t *oped, *opgd; opcode = F8; + // REX prefix before the F0 are ignored + rex.rex = 0; + while(opcode>=0x40 && opcode<=0x4f) { + rex.rex = opcode; + opcode = F8; + } switch(opcode) { + case 0x0F: /* more opcdes */ + return Run660F(emu, rex); + case 0xC1: /* GRP2 Ew,Ib */ nextop = F8; GETEW; |