a few attempts at optimization

This commit is contained in:
StapleButter
2017-04-23 15:25:15 +02:00
parent 60cdc7d6f7
commit 1759672d14
6 changed files with 109 additions and 42 deletions

View File

@ -332,7 +332,7 @@ s32 ARM::Execute()
else if (NDS::HaltInterrupted(Num))
{
Halted = 0;
if (NDS::IME[Num]&1)
if (NDS::IME[Num] & 0x1)
TriggerIRQ();
}
else
@ -403,9 +403,9 @@ s32 ARM::Execute()
Cycles = CyclesToRun;
break;
}
if (NDS::HaltInterrupted(Num))
if (NDS::IF[Num] & NDS::IE[Num])
{
if (NDS::IME[Num]&1)
if (NDS::IME[Num] & 0x1)
TriggerIRQ();
}
}