about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-02 14:41:19 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-02 14:41:19 +0200
commit817c3d7058e9a7ee6b7c8edaccd880075d762271 (patch)
treeef76949f9b5f1680f6a6b839e7570e21f1572cce /src/emu
parente2a7dd0f1760b0567067d20e55021746b57b2a37 (diff)
downloadbox64-817c3d7058e9a7ee6b7c8edaccd880075d762271.tar.gz
box64-817c3d7058e9a7ee6b7c8edaccd880075d762271.zip
Added 0F E0 opcode ([DYNAREC] too)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run0f.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 3aeb8c9a..6037f073 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -1308,7 +1308,13 @@ int Run0F(x64emu_t *emu, rex_t rex)
             GETGM;

             GM->q = (~GM->q) & EM->q;

             break;

-

+        case 0xE0:                   /* PAVGB Gm, Em */

+            nextop = F8;

+            GETEM(0);

+            GETGM;

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

+                    GM->ub[i] = ((uint32_t)GM->ub[i]+EM->ub[i]+1)>>1;

+            break;

         case 0xE1:                   /* PSRAW Gm, Em */

             nextop = F8;

             GETEM(0);