From b354dca4797de6aea5fc54ba02a27480cb8f3a1b Mon Sep 17 00:00:00 2001 From: Michael Mogenson Date: Thu, 24 Dec 2020 10:10:16 -0700 Subject: [PATCH] Fix address of IF register (#97) GBATEK has the IF register at address 0x04000202. --- src/io/irq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/irq.rs b/src/io/irq.rs index cb246b5..533099d 100644 --- a/src/io/irq.rs +++ b/src/io/irq.rs @@ -139,7 +139,7 @@ pub const IE: VolAddress = unsafe { VolAddress::new(0x400_0200) }; /// However, if the main interrupt handler in `crt0.s` is changed, then the /// handler must write a `1` bit to all bits that are enabled on this register /// when it is called. -pub const IF: VolAddress = unsafe { VolAddress::new(0x400_0200) }; +pub const IF: VolAddress = unsafe { VolAddress::new(0x400_0202) }; newtype! { /// Setting to control whether interrupts are enabled.