mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
Fix incorrect opcode of VBlankIntrWait BIOS function
It should be `swi 0x05` instead of `swi 0x04`.
This commit is contained in:
parent
5113a5a1f2
commit
dc2127b2ce
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue