Added a proper BC0T and BC0F.

git-svn-id: http://svn.purei.org/purei/trunk@524 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2009-05-30 14:10:45 +00:00
parent 788c9d1883
commit 4e0f22621c
2 changed files with 10 additions and 3 deletions

View File

@ -29,7 +29,7 @@ char* CCOP_SCU::m_sRegName[] =
"WatchLo",
"WatchHi",
"XContext",
"*RESERVED*",
"CPCOND0",
"*RESERVED*",
"*RESERVED*",
"*RESERVED*",
@ -99,13 +99,19 @@ void CCOP_SCU::C0()
//00
void CCOP_SCU::BC0F()
{
m_codeGen->PushRel(offsetof(CMIPS, m_State.nCOP0[CPCOND0]));
m_codeGen->PushCst(0);
m_codeGen->Cmp(CCodeGen::CONDITION_EQ);
Branch(true);
}
//01
void CCOP_SCU::BC0T()
{
m_codeGen->PushRel(offsetof(CMIPS, m_State.nCOP0[CPCOND0]));
m_codeGen->PushCst(0);
m_codeGen->Cmp(CCodeGen::CONDITION_EQ);
Branch(false);
}
//////////////////////////////////////////////////

View File

@ -11,6 +11,7 @@ public:
COUNT = 0x09,
STATUS = 0x0C,
EPC = 0x0E,
CPCOND0 = 0x15,
ERROREPC = 0x1E,
};