EE:Rec: Fix unaligned LWR

Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
SternXD authored and Ty committed 2026-11-26 09:37:37 -05:00
1 parent bf0c5837c2
commit 29ea20f06e
1 file changed
+4 -4
+4 -4
View File
@@ -370,14 +370,14 @@ void recLWR()
// mask off bytes loaded
xMOV(ecx, 24);
xSUB(ecx, temp);
xMOV(edx, 0xffffff00);
xSHL(edx, cl);
xAND(xRegister32(treg), edx);
xMOV(rdx, ~0xff);
xSHL(rdx, cl);
xAND(xRegister64(treg), rdx);
// OR in bytes loaded
xMOV(ecx, temp);
xSHR(eax, cl);
xOR(xRegister32(treg), eax);
xOR(xRegister64(treg), rax);
xForwardJump8 end;
nomask.SetTarget();