Core: rearrange MoveSxVariableToX86regHalf parameters

This commit is contained in:
zilmar 2022-11-07 14:08:23 +10:30
parent eb5d0ce363
commit 10dd2c662a
3 changed files with 3 additions and 3 deletions

View File

@ -2992,7 +2992,7 @@ void CX86RecompilerOps::LH_KnownAddress(CX86Ops::x86Reg Reg, uint32_t VAddr, boo
{
if (SignExtend)
{
m_Assembler.MoveSxVariableToX86regHalf((PAddr ^ 2) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 2)", PAddr).c_str(), Reg);
m_Assembler.MoveSxVariableToX86regHalf(Reg, (PAddr ^ 2) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 2)", PAddr).c_str());
}
else
{

View File

@ -1038,7 +1038,7 @@ void CX86Ops::MoveSxVariableToX86regByte(x86Reg Reg, void * Variable, const char
AddCode32((uint32_t)Variable);
}
void CX86Ops::MoveSxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg)
void CX86Ops::MoveSxVariableToX86regHalf(x86Reg Reg, void * Variable, const char * VariableName)
{
CodeLog(" movsx %s, word ptr [%s]", x86_Name(Reg), VariableName);

View File

@ -139,7 +139,7 @@ public:
void MoveSxByteX86regPointerToX86reg(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveSxHalfX86regPointerToX86reg(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveSxVariableToX86regByte(x86Reg Reg, void * Variable, const char * VariableName);
void MoveSxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg);
void MoveSxVariableToX86regHalf(x86Reg Reg, void * Variable, const char * VariableName);
void MoveVariableDispToX86Reg(void * Variable, const char * VariableName, x86Reg Reg, x86Reg AddrReg, int32_t Multiplier);
void MoveVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void MoveVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);