diff options
-rw-r--r-- | src/NDS.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp index 7bd5c1a..98eda41 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -558,8 +558,16 @@ bool HaltInterrupted(u32 cpu) void StopCPU(u32 cpu, u32 mask) { - if (cpu) mask <<= 16; - CPUStop |= mask; + if (cpu) + { + CPUStop |= (mask << 16); + ARM7->Halt(2); + } + else + { + CPUStop |= mask; + ARM9->Halt(2); + } } void ResumeCPU(u32 cpu, u32 mask) |