Core: rearrange MoveZxVariableToX86regByte parameters

This commit is contained in:
zilmar 2022-11-07 15:44:10 +10:30
parent 4570d9eab5
commit 96eed54a1d
3 changed files with 5 additions and 5 deletions

View File

@ -2879,7 +2879,7 @@ void CX86RecompilerOps::LB_KnownAddress(CX86Ops::x86Reg Reg, uint32_t VAddr, boo
}
else
{
m_Assembler.MoveZxVariableToX86regByte((PAddr ^ 3) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 3)", PAddr).c_str(), Reg);
m_Assembler.MoveZxVariableToX86regByte(Reg, (PAddr ^ 3) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 3)", PAddr).c_str());
}
}
else
@ -2896,7 +2896,7 @@ void CX86RecompilerOps::LB_KnownAddress(CX86Ops::x86Reg Reg, uint32_t VAddr, boo
}
else
{
m_Assembler.MoveZxVariableToX86regByte(((PAddr ^ 3) - 0x04000000) + g_MMU->Dmem(), stdstr_f("Dmem + (%X ^ 3)", (PAddr - 0x04000000)).c_str(), Reg);
m_Assembler.MoveZxVariableToX86regByte(Reg, ((PAddr ^ 3) - 0x04000000) + g_MMU->Dmem(), stdstr_f("Dmem + (%X ^ 3)", (PAddr - 0x04000000)).c_str());
}
}
else if (PAddr < 0x04002000)
@ -2907,7 +2907,7 @@ void CX86RecompilerOps::LB_KnownAddress(CX86Ops::x86Reg Reg, uint32_t VAddr, boo
}
else
{
m_Assembler.MoveZxVariableToX86regByte(((PAddr ^ 3) - 0x04001000) + g_MMU->Imem(), stdstr_f("Imem + (%X ^ 3)", (PAddr - 0x04001000)).c_str(), Reg);
m_Assembler.MoveZxVariableToX86regByte(Reg, ((PAddr ^ 3) - 0x04001000) + g_MMU->Imem(), stdstr_f("Imem + (%X ^ 3)", (PAddr - 0x04001000)).c_str());
}
}
else

View File

@ -1693,7 +1693,7 @@ void CX86Ops::MoveZxHalfX86regPointerToX86reg(x86Reg Reg, x86Reg AddrReg1, x86Re
AddCode8(Param);
}
void CX86Ops::MoveZxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg)
void CX86Ops::MoveZxVariableToX86regByte(x86Reg Reg, void * Variable, const char * VariableName)
{
CodeLog(" movzx %s, byte ptr [%s]", x86_Name(Reg), VariableName);

View File

@ -157,7 +157,7 @@ public:
void MoveX86regToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveZxByteX86regPointerToX86reg(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveZxHalfX86regPointerToX86reg(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveZxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);
void MoveZxVariableToX86regByte(x86Reg Reg, void * Variable, const char * VariableName);
void MoveZxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg);
void MulX86reg(x86Reg Reg);
void NotX86Reg(x86Reg Reg);