Fix address of IF register (#97)

GBATEK has the IF register at address 0x04000202.
This commit is contained in:
Michael Mogenson 2020-12-24 10:10:16 -07:00 committed by GitHub
parent 1696c66b1b
commit b354dca479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ pub const IE: VolAddress<IrqFlags> = unsafe { VolAddress::new(0x400_0200) };
/// However, if the main interrupt handler in `crt0.s` is changed, then the /// 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 /// handler must write a `1` bit to all bits that are enabled on this register
/// when it is called. /// when it is called.
pub const IF: VolAddress<IrqFlags> = unsafe { VolAddress::new(0x400_0200) }; pub const IF: VolAddress<IrqFlags> = unsafe { VolAddress::new(0x400_0202) };
newtype! { newtype! {
/// Setting to control whether interrupts are enabled. /// Setting to control whether interrupts are enabled.