Core: rearrange OrConstToVariable parameters

This commit is contained in:
zilmar 2022-11-07 15:55:19 +10:30
parent c95aae8e38
commit 40259d01ca
3 changed files with 4 additions and 4 deletions

View File

@ -10531,7 +10531,7 @@ void CX86RecompilerOps::SW_Const(uint32_t Value, uint32_t VAddr)
}
if (ModValue != 0)
{
m_Assembler.OrConstToVariable(ModValue, &g_Reg->MI_MODE_REG, "MI_MODE_REG");
m_Assembler.OrConstToVariable(&g_Reg->MI_MODE_REG, "MI_MODE_REG", ModValue);
}
if ((Value & MI_CLR_DP_INTR) != 0)
{
@ -10600,7 +10600,7 @@ void CX86RecompilerOps::SW_Const(uint32_t Value, uint32_t VAddr)
}
if (ModValue != 0)
{
m_Assembler.OrConstToVariable(ModValue, &g_Reg->MI_INTR_MASK_REG, "MI_INTR_MASK_REG");
m_Assembler.OrConstToVariable(&g_Reg->MI_INTR_MASK_REG, "MI_INTR_MASK_REG", ModValue);
}
break;
}

View File

@ -1773,7 +1773,7 @@ void CX86Ops::NotX86Reg(x86Reg Reg)
}
}
void CX86Ops::OrConstToVariable(uint32_t Const, void * Variable, const char * VariableName)
void CX86Ops::OrConstToVariable(void * Variable, const char * VariableName, uint32_t Const)
{
CodeLog(" or dword ptr [%s], 0x%X", VariableName, Const);
AddCode16(0x0D81);

View File

@ -161,7 +161,7 @@ public:
void MoveZxVariableToX86regHalf(x86Reg Reg, void * Variable, const char * VariableName);
void MulX86reg(x86Reg Reg);
void NotX86Reg(x86Reg Reg);
void OrConstToVariable(uint32_t Const, void * Variable, const char * VariableName);
void OrConstToVariable(void * Variable, const char * VariableName, uint32_t Const);
void OrConstToX86Reg(uint32_t Const, x86Reg Reg);
void OrVariableToX86Reg(void * Variable, const char * VariableName, x86Reg Reg);
void OrX86RegToVariable(void * Variable, const char * VariableName, x86Reg Reg);