mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Fix Imm8 check.
(I blame whoever made it take a u8 despite logically being a s8.)
This commit is contained in:
@ -1657,7 +1657,7 @@ void XEmitter::PushRegistersAndAlignStack(u32 mask)
|
|||||||
}
|
}
|
||||||
size += shadow;
|
size += shadow;
|
||||||
if (size)
|
if (size)
|
||||||
SUB(64, R(RSP), size >= 0x100 ? Imm32(size) : Imm8(size));
|
SUB(64, R(RSP), size >= 0x80 ? Imm32(size) : Imm8(size));
|
||||||
int offset = shadow;
|
int offset = shadow;
|
||||||
for (int x = 0; x < 16; x++)
|
for (int x = 0; x < 16; x++)
|
||||||
{
|
{
|
||||||
@ -1692,7 +1692,7 @@ void XEmitter::PopRegistersAndAlignStack(u32 mask)
|
|||||||
size += (count & 1) ? 0 : 8;
|
size += (count & 1) ? 0 : 8;
|
||||||
|
|
||||||
if (size)
|
if (size)
|
||||||
ADD(64, R(RSP), size >= 0x100 ? Imm32(size) : Imm8(size));
|
ADD(64, R(RSP), size >= 0x80 ? Imm32(size) : Imm8(size));
|
||||||
for (int r = 15; r >= 0; r--)
|
for (int r = 15; r >= 0; r--)
|
||||||
{
|
{
|
||||||
if (mask & (1 << r))
|
if (mask & (1 << r))
|
||||||
|
Reference in New Issue
Block a user