aboutsummaryrefslogtreecommitdiff
path: root/src/ARM.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ARM.h')
-rw-r--r--src/ARM.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ARM.h b/src/ARM.h
index 3631f86..a51c3ff 100644
--- a/src/ARM.h
+++ b/src/ARM.h
@@ -47,6 +47,15 @@ public:
Halted = halt;
}
+ void CheckIRQ()
+ {
+ if (!(NDS::IME[Num] & 0x1)) return;
+ if (NDS::IF[Num] & NDS::IE[Num])
+ {
+ TriggerIRQ();
+ }
+ }
+
s32 Execute();
bool CheckCondition(u32 code)