* add support for a bunch of codes (all of them minus the loop shit, really)

* hook it betterer so it doesn't asplode
This commit is contained in:
Arisotura
2020-02-14 23:34:26 +01:00
parent eb44833171
commit 85a6a5bb38
3 changed files with 132 additions and 5 deletions

View File

@ -20,6 +20,7 @@
#include "NDS.h"
#include "ARM.h"
#include "ARMInterpreter.h"
#include "AREngine.h"
// instruction timing notes
@ -408,6 +409,14 @@ void ARM::TriggerIRQ()
R_IRQ[2] = oldcpsr;
R[14] = R[15] + (oldcpsr & 0x20 ? 2 : 0);
JumpTo(ExceptionBase + 0x18);
// ARDS cheat support
// normally, those work by hijacking the ARM7 VBlank handler
if (Num == 1)
{
if ((NDS::IF[1] & NDS::IE[1]) & (1<<NDS::IRQ_VBlank))
AREngine::RunCheats();
}
}
void ARMv5::PrefetchAbort()