mirror of
https://github.com/libretro/Play-.git
synced 2025-02-25 22:15:27 +00:00
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:
parent
788c9d1883
commit
4e0f22621c
@ -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);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
@ -11,6 +11,7 @@ public:
|
||||
COUNT = 0x09,
|
||||
STATUS = 0x0C,
|
||||
EPC = 0x0E,
|
||||
CPCOND0 = 0x15,
|
||||
ERROREPC = 0x1E,
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user