From d0cdc455a891ce21d22333f627a89edd598e3f47 Mon Sep 17 00:00:00 2001 From: yabause Date: Tue, 4 Jul 2006 14:37:59 +0000 Subject: [PATCH] Moved ARM7 and ARM9 from NDSSystem to global scope. --- desmume/src/armcpu.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/desmume/src/armcpu.h b/desmume/src/armcpu.h index dfa8ca26e..38a115557 100644 --- a/desmume/src/armcpu.h +++ b/desmume/src/armcpu.h @@ -23,8 +23,8 @@ #define ARM_CPU #include "types.h" - #include "bits.h" +#include "MMU.hpp" #define ARMCPU_ARM7 1 #define ARMCPU_ARM9 0 @@ -152,4 +152,19 @@ u32 armcpu_exec(armcpu_t *armcpu); BOOL armcpu_irqExeption(armcpu_t *armcpu); BOOL armcpu_prefetchExeption(armcpu_t *armcpu); +extern armcpu_t NDS_ARM7; +extern armcpu_t NDS_ARM9; + +INLINE void NDS_makeARM9Int(u32 num) +{ + MMU.reg_IF[0] |= (1<