From dc2127b2ce9ac2af03703a40733fc8ce222bd3e3 Mon Sep 17 00:00:00 2001 From: Ian Pickering Date: Wed, 13 Feb 2019 02:21:47 -0800 Subject: [PATCH] Fix incorrect opcode of VBlankIntrWait BIOS function It should be `swi 0x05` instead of `swi 0x04`. --- src/bios.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bios.rs b/src/bios.rs index 111aa99..cd98d7f 100644 --- a/src/bios.rs +++ b/src/bios.rs @@ -225,7 +225,7 @@ pub fn vblank_interrupt_wait() { #[cfg(all(target_vendor = "nintendo", target_env = "agb"))] { unsafe { - asm!(/* ASM */ "swi 0x04" + asm!(/* ASM */ "swi 0x05" :/* OUT */ // none :/* INP */ // none :/* CLO */ "r0", "r1" // both set to 1 by the routine