mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-11 11:31:31 +11:00
fix a critical typo
This commit is contained in:
parent
456e4f4fc0
commit
5c5081ddc4
|
@ -112,7 +112,7 @@ pub unsafe fn Stop() {
|
||||||
pub unsafe fn IntrWait(discard_current_flags: bool, flags: crate::mmio_types::InterruptFlags) {
|
pub unsafe fn IntrWait(discard_current_flags: bool, flags: crate::mmio_types::InterruptFlags) {
|
||||||
// Note(Lokathor): we don't mark this preserves_flags because the user's IRQ
|
// Note(Lokathor): we don't mark this preserves_flags because the user's IRQ
|
||||||
// handler gets called which might end up trashing the flags.
|
// handler gets called which might end up trashing the flags.
|
||||||
asm!("swi 0x03",
|
asm!("swi 0x04",
|
||||||
inlateout("r0") discard_current_flags as u8 => _,
|
inlateout("r0") discard_current_flags as u8 => _,
|
||||||
inlateout("r1") flags.0 => _,
|
inlateout("r1") flags.0 => _,
|
||||||
out("r3") _,
|
out("r3") _,
|
||||||
|
|
Loading…
Reference in a new issue