From 6fe8d71e61a75784955e4e9cecbfc85fe36fc645 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 13 Feb 2022 12:49:37 +0100 Subject: [PATCH] Small fix to 0F 3A 0F opcode --- src/emu/run0f.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/emu/run0f.h b/src/emu/run0f.h index 960262de..05b627ed 100755 --- a/src/emu/run0f.h +++ b/src/emu/run0f.h @@ -300,7 +300,7 @@ _0f_0x3A: opcode = F8; switch(opcode) { - case 0xF: /* palignr */ + case 0x0F: /* palignr */ nextop = F8; GET_EM; tmp8u = F8; @@ -309,8 +309,10 @@ } else if (tmp8u > 8) { tmp8u -= 8; GM.q >>= tmp8u*8; - } else if (tmp8u == 8 || tmp8u == 0) { - + } else if (tmp8u == 8) { + // nothing + } else if (tmp8u == 0) { + GM.q = EM->q; } else { GM.q <<= (8-tmp8u)*8; GM.q |= (EM->q >> tmp8u*8);