1
0
Fork 0
mirror of https://github.com/italicsjenga/gba.git synced 2025-02-23 23:07:49 +11:00

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