mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-09 18:41:30 +11:00
Fix address of IF register (#97)
GBATEK has the IF register at address 0x04000202.
This commit is contained in:
parent
1696c66b1b
commit
b354dca479
|
@ -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
|
||||
/// handler must write a `1` bit to all bits that are enabled on this register
|
||||
/// 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! {
|
||||
/// Setting to control whether interrupts are enabled.
|
||||
|
|
Loading…
Reference in a new issue