Core: rearrange MoveX86regToMemory parameters

This commit is contained in:
zilmar 2022-11-07 14:40:28 +10:30
parent 891d487fdd
commit 91a192cead
3 changed files with 4 additions and 4 deletions

View File

@ -3700,12 +3700,12 @@ void CX86RecompilerOps::SW(bool bCheckLLbit)
}
else if (IsMapped(m_Opcode.rt))
{
m_Assembler.MoveX86regToMemory(GetMipsRegMapLo(m_Opcode.rt), TempReg1, (uint32_t)((int16_t)m_Opcode.offset));
m_Assembler.MoveX86regToMemory(TempReg1, (uint32_t)((int16_t)m_Opcode.offset), GetMipsRegMapLo(m_Opcode.rt));
}
else
{
CX86Ops::x86Reg TempReg2 = Map_TempReg(CX86Ops::x86_Unknown, m_Opcode.rt, false, false);
m_Assembler.MoveX86regToMemory(TempReg2, TempReg1, (uint32_t)((int16_t)m_Opcode.offset));
m_Assembler.MoveX86regToMemory(TempReg1, (uint32_t)((int16_t)m_Opcode.offset), TempReg2);
}
}
else

View File

@ -1419,7 +1419,7 @@ void CX86Ops::MoveX86regPointerToX86regDisp8(x86Reg Reg, x86Reg AddrReg1, x86Reg
AddCode8(offset);
}
void CX86Ops::MoveX86regToMemory(x86Reg Reg, x86Reg AddrReg, uint32_t Disp)
void CX86Ops::MoveX86regToMemory(x86Reg AddrReg, uint32_t Disp, x86Reg Reg)
{
uint16_t x86Command = 0;

View File

@ -150,7 +150,7 @@ public:
void MoveX86regHalfToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveX86regPointerToX86reg(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveX86regPointerToX86regDisp8(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2, uint8_t offset);
void MoveX86regToMemory(x86Reg Reg, x86Reg AddrReg, uint32_t Disp);
void MoveX86regToMemory(x86Reg AddrReg, uint32_t Disp, x86Reg Reg);
void MoveX86regToVariable(x86Reg Reg, void * Variable, const char * VariableName);
void MoveX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void MoveX86regToX86Pointer(x86Reg X86Pointer, x86Reg Reg);