fasterer IRQ check. clean up code.

This commit is contained in:
Arisotura
2019-06-08 22:16:51 +02:00
parent 8fc30d69c5
commit 00a5576492
3 changed files with 40 additions and 47 deletions

View File

@ -51,16 +51,6 @@ public:
Halted = halt;
}
// TODO: is this actually used??
void CheckIRQ()
{
if (!(NDS::IME[Num] & 0x1)) return;
if (NDS::IF[Num] & NDS::IE[Num])
{
TriggerIRQ();
}
}
virtual void Execute() = 0;
bool CheckCondition(u32 code)
@ -119,6 +109,8 @@ public:
s32 Cycles;
u32 Halted;
u32 IRQ; // nonzero to trigger IRQ
u32 CodeRegion;
s32 CodeCycles;