Cote: TestVariable rearrange parameters
This commit is contained in:
parent
fe1f99ae1c
commit
2fcce6cdd5
|
@ -2092,7 +2092,7 @@ void CX86RecompilerOps::BGEZ_Compare()
|
|||
|
||||
void CX86RecompilerOps::COP1_BCF_Compare()
|
||||
{
|
||||
m_Assembler.TestVariable(FPCSR_C, &_FPCR[31], "_FPCR[31]");
|
||||
m_Assembler.TestVariable(&_FPCR[31], "_FPCR[31]", FPCSR_C);
|
||||
if (m_Section->m_Cont.FallThrough)
|
||||
{
|
||||
m_Assembler.JeLabel32(m_Section->m_Jump.BranchLabel.c_str(), 0);
|
||||
|
@ -2114,7 +2114,7 @@ void CX86RecompilerOps::COP1_BCF_Compare()
|
|||
|
||||
void CX86RecompilerOps::COP1_BCT_Compare()
|
||||
{
|
||||
m_Assembler.TestVariable(FPCSR_C, &_FPCR[31], "_FPCR[31]");
|
||||
m_Assembler.TestVariable(&_FPCR[31], "_FPCR[31]", FPCSR_C);
|
||||
if (m_Section->m_Cont.FallThrough)
|
||||
{
|
||||
m_Assembler.JneLabel32(m_Section->m_Jump.BranchLabel.c_str(), 0);
|
||||
|
@ -8483,7 +8483,7 @@ void CX86RecompilerOps::CompileCop1Test()
|
|||
return;
|
||||
}
|
||||
|
||||
m_Assembler.TestVariable(STATUS_CU1, &g_Reg->STATUS_REGISTER, "STATUS_REGISTER");
|
||||
m_Assembler.TestVariable(&g_Reg->STATUS_REGISTER, "STATUS_REGISTER", STATUS_CU1);
|
||||
CRegInfo ExitRegSet = m_RegWorkingSet;
|
||||
ExitRegSet.SetBlockCycleCount(ExitRegSet.GetBlockCycleCount() + g_System->CountPerOp());
|
||||
CompileExit(m_CompilePC, m_CompilePC, ExitRegSet, ExitReason_COP1Unuseable, false, &CX86Ops::JeLabel32);
|
||||
|
|
|
@ -2587,7 +2587,7 @@ void CX86Ops::TestConstToX86Reg(x86Reg Reg, uint32_t Const)
|
|||
AddCode32(Const);
|
||||
}
|
||||
|
||||
void CX86Ops::TestVariable(uint32_t Const, void * Variable, const char * VariableName)
|
||||
void CX86Ops::TestVariable(void * Variable, const char * VariableName, uint32_t Const)
|
||||
{
|
||||
CodeLog(" test dword ptr ds:[%s], 0x%X", VariableName, Const);
|
||||
AddCode16(0x05F7);
|
||||
|
|
|
@ -202,7 +202,7 @@ public:
|
|||
void SubVariableFromX86reg(x86Reg Reg, void * Variable, const char * VariableName);
|
||||
void SubX86RegToX86Reg(x86Reg Destination, x86Reg Source);
|
||||
void TestConstToX86Reg(x86Reg Reg, uint32_t Const);
|
||||
void TestVariable(uint32_t Const, void * Variable, const char * VariableName);
|
||||
void TestVariable(void * Variable, const char * VariableName, uint32_t Const);
|
||||
void TestX86RegToX86Reg(x86Reg Destination, x86Reg Source);
|
||||
void TestX86ByteRegToX86Reg(x86Reg Destination, x86Reg Source);
|
||||
void XorConstToX86Reg(x86Reg Reg, uint32_t Const);
|
||||
|
|
Loading…
Reference in New Issue