Core: reorder MoveConstHalfToVariable parameters

This commit is contained in:
zilmar 2022-11-07 10:37:29 +10:30
parent bdb2d040f9
commit 0123100233
3 changed files with 3 additions and 3 deletions

View File

@ -10288,7 +10288,7 @@ void CX86RecompilerOps::SH_Const(uint32_t Value, uint32_t VAddr)
}
else if (PAddr < g_MMU->RdramSize())
{
m_Assembler.MoveConstHalfToVariable((uint16_t)Value, (PAddr ^ 2) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 2)", PAddr).c_str());
m_Assembler.MoveConstHalfToVariable((PAddr ^ 2) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 2)", PAddr).c_str(), (uint16_t)Value);
}
break;
default:

View File

@ -748,7 +748,7 @@ void CX86Ops::MoveConstByteToVariable(void * Variable, const char * VariableName
AddCode8(Const);
}
void CX86Ops::MoveConstHalfToVariable(uint16_t Const, void * Variable, const char * VariableName)
void CX86Ops::MoveConstHalfToVariable(void * Variable, const char * VariableName, uint16_t Const)
{
CodeLog(" mov word ptr [%s], %Xh", VariableName, Const);
AddCode8(0x66);

View File

@ -129,7 +129,7 @@ public:
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 MoveConstHalfToVariable(uint16_t Const, void * Variable, const char * VariableName);
void MoveConstHalfToVariable(void * Variable, const char * VariableName, uint16_t Const);
void MoveConstHalfToX86regPointer(uint16_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveConstToMemoryDisp(uint32_t Const, x86Reg AddrReg, uint32_t Disp);
void MoveConstToVariable(uint32_t Const, void * Variable, const char * VariableName);