Core: reorder MoveConstByteToX86regPointer parameters

This commit is contained in:
zilmar 2022-11-07 11:32:46 +10:30
parent eb0aa05a48
commit b68caed6c4
3 changed files with 3 additions and 3 deletions

View File

@ -10060,7 +10060,7 @@ void CX86RecompilerOps::CompileStoreMemoryValue(CX86Ops::x86Reg AddressReg, CX86
m_Assembler.XorConstToX86Reg(AddressReg, 3);
if (ValueReg == CX86Ops::x86_Unknown)
{
m_Assembler.MoveConstByteToX86regPointer((uint8_t)(Value & 0xFF), AddressReg, TempReg);
m_Assembler.MoveConstByteToX86regPointer(AddressReg, TempReg, (uint8_t)(Value & 0xFF));
}
else if (m_Assembler.Is8BitReg(ValueReg))
{

View File

@ -844,7 +844,7 @@ void CX86Ops::MoveConstToX86reg(x86Reg Reg, uint32_t Const)
}
}
void CX86Ops::MoveConstByteToX86regPointer(uint8_t Const, x86Reg AddrReg1, x86Reg AddrReg2)
void CX86Ops::MoveConstByteToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, uint8_t Const)
{
uint8_t Param = 0;

View File

@ -128,7 +128,7 @@ public:
void LeaRegReg2(x86Reg RegDest, x86Reg RegSrc, x86Reg RegSrc2, Multipler multiplier);
void LeaSourceAndOffset(x86Reg x86DestReg, x86Reg x86SourceReg, int32_t offset);
void MoveConstByteToVariable(void * Variable, const char * VariableName, uint8_t Const);
void MoveConstByteToX86regPointer(uint8_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveConstByteToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, uint8_t Const);
void MoveConstHalfToVariable(void * Variable, const char * VariableName, uint16_t Const);
void MoveConstHalfToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, uint16_t Const);
void MoveConstToMemoryDisp(x86Reg AddrReg, uint32_t Disp, uint32_t Const);