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 15:11:19 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-02 15:11:19 +0200
commite8d6f083a36f79ee2b29b50451d08bb4baa7d9ae (patch)
tree15dc472f9757f2790a717b427417cde9e17d23e8 /src/emu
parent817c3d7058e9a7ee6b7c8edaccd880075d762271 (diff)
downloadbox64-e8d6f083a36f79ee2b29b50451d08bb4baa7d9ae.tar.gz
box64-e8d6f083a36f79ee2b29b50451d08bb4baa7d9ae.zip
Added 66 0F 38 0B opcode ([DYNAREC] too)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run660f.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index f18e8874..4ccf55da 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -248,6 +248,16 @@ int Run660F(x64emu_t *emu, rex_t rex)
                 }

                 break;

 

+            case 0x0B:  /* PMULHRSW Gx, Ex */

+                nextop = F8;

+                GETEX(0);

+                GETGX;

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

+                    tmp32s = ((((int32_t)(GX->sw[i])*(int32_t)(EX->sw[i]))>>14) + 1)>>1;

+                    GX->uw[i] = tmp32s&0xffff;

+                }

+            break;

+

             default:

                 return 1;

         }