Core: Change the order of MoveConstToX86Pointer

This commit is contained in:
zilmar 2022-10-24 15:09:24 +10:30
parent 538933e0a5
commit af3c31b0ff
3 changed files with 6 additions and 6 deletions

View File

@ -7496,7 +7496,7 @@ void CX86RecompilerOps::COP1_MT()
if (IsConst(m_Opcode.rt))
{
m_Assembler.MoveConstToX86Pointer(GetMipsRegLo(m_Opcode.rt), TempReg);
m_Assembler.MoveConstToX86Pointer(TempReg, GetMipsRegLo(m_Opcode.rt));
}
else if (IsMapped(m_Opcode.rt))
{
@ -7525,15 +7525,15 @@ void CX86RecompilerOps::COP1_DMT()
if (IsConst(m_Opcode.rt))
{
m_Assembler.MoveConstToX86Pointer(GetMipsRegLo(m_Opcode.rt), TempReg);
m_Assembler.MoveConstToX86Pointer(TempReg, GetMipsRegLo(m_Opcode.rt));
m_Assembler.AddConstToX86Reg(TempReg, 4);
if (Is64Bit(m_Opcode.rt))
{
m_Assembler.MoveConstToX86Pointer(GetMipsRegHi(m_Opcode.rt), TempReg);
m_Assembler.MoveConstToX86Pointer(TempReg, GetMipsRegHi(m_Opcode.rt));
}
else
{
m_Assembler.MoveConstToX86Pointer(GetMipsRegLo_S(m_Opcode.rt) >> 31, TempReg);
m_Assembler.MoveConstToX86Pointer(TempReg, GetMipsRegLo_S(m_Opcode.rt) >> 31);
}
}
else if (IsMapped(m_Opcode.rt))

View File

@ -918,7 +918,7 @@ void CX86Ops::MoveConstToVariable(uint32_t Const, void * Variable, const char *
AddCode32(Const);
}
void CX86Ops::MoveConstToX86Pointer(uint32_t Const, x86Reg X86Pointer)
void CX86Ops::MoveConstToX86Pointer(x86Reg X86Pointer, uint32_t Const)
{
CodeLog(" mov dword ptr [%s], %Xh", x86_Name(X86Pointer), Const);
AddCode16((uint16_t)(0x00C7 + (X86Pointer * 0x100)));

View File

@ -139,7 +139,7 @@ public:
void MoveConstToN64Mem(uint32_t Const, x86Reg AddrReg);
void MoveConstToN64MemDisp(uint32_t Const, x86Reg AddrReg, uint8_t Disp);
void MoveConstToVariable(uint32_t Const, void * Variable, const char * VariableName);
void MoveConstToX86Pointer(uint32_t Const, x86Reg X86Pointer);
void MoveConstToX86Pointer(x86Reg X86Pointer, uint32_t Const);
void MoveConstToX86reg(x86Reg Reg, uint32_t Const);
void MoveConstToX86regPointer(uint32_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveN64MemDispToX86reg(x86Reg reg, x86Reg AddrReg, uint8_t Disp);