diff options
author | sceptillion <33798691+sceptillion@users.noreply.github.com> | 2017-12-10 22:41:46 -0800 |
---|---|---|
committer | sceptillion <33798691+sceptillion@users.noreply.github.com> | 2017-12-10 22:41:46 -0800 |
commit | d07afbc0818370f03ef840419e0bf4f654753ab8 (patch) | |
tree | 979a30ff1aa62e4135918eed8b57868571a799a2 /asm/syscall.s |
initial commit
Diffstat (limited to 'asm/syscall.s')
-rw-r--r-- | asm/syscall.s | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/asm/syscall.s b/asm/syscall.s new file mode 100644 index 0000000..d114f31 --- /dev/null +++ b/asm/syscall.s @@ -0,0 +1,34 @@ + .include "asm/macros.inc" + + .syntax unified + + .text + + thumb_func_start CpuSet +CpuSet: + swi 0xB + bx lr + thumb_func_end CpuSet + + thumb_func_start SoundBiasReset +SoundBiasReset: + movs r0, 0 + swi 0x19 + bx lr + thumb_func_end SoundBiasReset + + thumb_func_start SoundBiasSet +SoundBiasSet: + movs r0, 0x1 + swi 0x19 + bx lr + thumb_func_end SoundBiasSet + + thumb_func_start VBlankIntrWait +VBlankIntrWait: + movs r2, 0 + swi 0x5 + bx lr + thumb_func_end VBlankIntrWait + + .align 2, 0 @ Don't pad with nop. |