Fix incorrect opcode of VBlankIntrWait BIOS function

It should be `swi 0x05` instead of `swi 0x04`.
This commit is contained in:
Ian Pickering 2019-02-13 02:21:47 -08:00
parent 5113a5a1f2
commit dc2127b2ce

View file

@ -225,7 +225,7 @@ pub fn vblank_interrupt_wait() {
#[cfg(all(target_vendor = "nintendo", target_env = "agb"))] #[cfg(all(target_vendor = "nintendo", target_env = "agb"))]
{ {
unsafe { unsafe {
asm!(/* ASM */ "swi 0x04" asm!(/* ASM */ "swi 0x05"
:/* OUT */ // none :/* OUT */ // none
:/* INP */ // none :/* INP */ // none
:/* CLO */ "r0", "r1" // both set to 1 by the routine :/* CLO */ "r0", "r1" // both set to 1 by the routine