Added support for BC0FL.

This commit is contained in:
Jean-Philip Desjardins 2015-03-03 11:49:14 -08:00
parent f9f04dab35
commit 63fbc0aa88
3 changed files with 11 additions and 2 deletions

View File

@ -128,6 +128,14 @@ void CCOP_SCU::BC0T()
Branch(Jitter::CONDITION_NE);
}
//02
void CCOP_SCU::BC0FL()
{
m_codeGen->PushRel(offsetof(CMIPS, m_State.nCOP0[CPCOND0]));
m_codeGen->PushCst(0);
BranchLikely(Jitter::CONDITION_EQ);
}
//////////////////////////////////////////////////
//Coprocessor Specific Opcodes
//////////////////////////////////////////////////
@ -212,7 +220,7 @@ CCOP_SCU::InstructionFuncConstant CCOP_SCU::m_pOpGeneral[0x20] =
CCOP_SCU::InstructionFuncConstant CCOP_SCU::m_pOpBC0[0x20] =
{
//0x00
&CCOP_SCU::BC0F, &CCOP_SCU::BC0T, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal,
&CCOP_SCU::BC0F, &CCOP_SCU::BC0T, &CCOP_SCU::BC0FL, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal,
//0x08
&CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal, &CCOP_SCU::Illegal,
//0x10

View File

@ -62,6 +62,7 @@ private:
//BC0
void BC0F();
void BC0T();
void BC0FL();
//C0
void ERET();

View File

@ -148,7 +148,7 @@ INSTRUCTION CCOP_SCU::m_cReflBc0[4] =
//0x00
{ "BC0F", NULL, CopyMnemonic, ReflOpCcOff, MIPSReflection::IsBranch, ReflEaOffset },
{ "BC0T", NULL, CopyMnemonic, ReflOpCcOff, MIPSReflection::IsBranch, ReflEaOffset },
{ NULL, NULL, NULL, NULL, NULL, NULL },
{ "BC0FL", NULL, CopyMnemonic, ReflOpCcOff, MIPSReflection::IsBranch, ReflEaOffset },
{ NULL, NULL, NULL, NULL, NULL, NULL },
};