Core: reorder MoveConstToX86regPointer parameters
This commit is contained in:
parent
b68caed6c4
commit
288fe4d222
|
@ -10087,7 +10087,7 @@ void CX86RecompilerOps::CompileStoreMemoryValue(CX86Ops::x86Reg AddressReg, CX86
|
||||||
{
|
{
|
||||||
if (ValueReg == CX86Ops::x86_Unknown)
|
if (ValueReg == CX86Ops::x86_Unknown)
|
||||||
{
|
{
|
||||||
m_Assembler.MoveConstToX86regPointer((uint32_t)(Value & 0xFFFFFFFF), AddressReg, TempReg);
|
m_Assembler.MoveConstToX86regPointer(AddressReg, TempReg, (uint32_t)(Value & 0xFFFFFFFF));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -10098,9 +10098,9 @@ void CX86RecompilerOps::CompileStoreMemoryValue(CX86Ops::x86Reg AddressReg, CX86
|
||||||
{
|
{
|
||||||
if (ValueReg == CX86Ops::x86_Unknown)
|
if (ValueReg == CX86Ops::x86_Unknown)
|
||||||
{
|
{
|
||||||
m_Assembler.MoveConstToX86regPointer((uint32_t)(Value >> 32), AddressReg, TempReg);
|
m_Assembler.MoveConstToX86regPointer(AddressReg, TempReg, (uint32_t)(Value >> 32));
|
||||||
m_Assembler.AddConstToX86Reg(AddressReg, 4);
|
m_Assembler.AddConstToX86Reg(AddressReg, 4);
|
||||||
m_Assembler.MoveConstToX86regPointer((uint32_t)(Value & 0xFFFFFFFF), AddressReg, TempReg);
|
m_Assembler.MoveConstToX86regPointer(AddressReg, TempReg, (uint32_t)(Value & 0xFFFFFFFF));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -881,7 +881,7 @@ void CX86Ops::MoveConstByteToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, uin
|
||||||
AddCode8(Const);
|
AddCode8(Const);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CX86Ops::MoveConstToX86regPointer(uint32_t Const, x86Reg AddrReg1, x86Reg AddrReg2)
|
void CX86Ops::MoveConstToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, uint32_t Const)
|
||||||
{
|
{
|
||||||
uint8_t Param = 0;
|
uint8_t Param = 0;
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ public:
|
||||||
void MoveConstToVariable(void * Variable, const char * VariableName, uint32_t Const);
|
void MoveConstToVariable(void * Variable, const char * VariableName, uint32_t Const);
|
||||||
void MoveConstToX86Pointer(x86Reg X86Pointer, uint32_t Const);
|
void MoveConstToX86Pointer(x86Reg X86Pointer, uint32_t Const);
|
||||||
void MoveConstToX86reg(x86Reg Reg, uint32_t Const);
|
void MoveConstToX86reg(x86Reg Reg, uint32_t Const);
|
||||||
void MoveConstToX86regPointer(uint32_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
|
void MoveConstToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, uint32_t Const);
|
||||||
void MoveSxByteX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
|
void MoveSxByteX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
|
||||||
void MoveSxHalfX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
|
void MoveSxHalfX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
|
||||||
void MoveSxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);
|
void MoveSxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);
|
||||||
|
|
Loading…
Reference in New Issue