summaryrefslogtreecommitdiff
path: root/berry_fix/payload/asm/libagbsyscall.s
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-04-21 21:54:29 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-04-21 21:54:29 -0400
commit1d28c9820f3435b458bc73712f6c5902715efaa7 (patch)
treef59c01912801610ff8bd80dbcb440e64b35ccc3f /berry_fix/payload/asm/libagbsyscall.s
parent29dc2b2284e61f37b973f9b68dbf7f1db7e01d13 (diff)
Payload is now independent of agbsdk
Are you happy now @luckytyphlosion? Kappa
Diffstat (limited to 'berry_fix/payload/asm/libagbsyscall.s')
-rw-r--r--berry_fix/payload/asm/libagbsyscall.s46
1 files changed, 46 insertions, 0 deletions
diff --git a/berry_fix/payload/asm/libagbsyscall.s b/berry_fix/payload/asm/libagbsyscall.s
new file mode 100644
index 000000000..0368c7e70
--- /dev/null
+++ b/berry_fix/payload/asm/libagbsyscall.s
@@ -0,0 +1,46 @@
+ .include "constants/gba_constants.inc"
+ .include "asm/macros.inc"
+
+ .syntax unified
+
+ .text
+
+ thumb_func_start CpuSet
+CpuSet: @ 81E3B64
+ swi 0xB
+ bx lr
+ thumb_func_end CpuSet
+
+ thumb_func_start Div
+Div: @ 81E3B68
+ swi 0x6
+ bx lr
+ thumb_func_end Div
+
+ thumb_func_start Mod
+Mod:
+ swi 0x6
+ adds r0, r1, 0
+ bx lr
+ thumb_func_end Mod
+
+ thumb_func_start LZ77UnCompVram
+LZ77UnCompVram: @ 81E3B6C
+ swi 0x12
+ bx lr
+ thumb_func_end LZ77UnCompVram
+
+ thumb_func_start RegisterRamReset
+RegisterRamReset: @ 81E3B80
+ swi 0x1
+ bx lr
+ thumb_func_end RegisterRamReset
+
+ thumb_func_start VBlankIntrWait
+VBlankIntrWait: @ 81E3BA0
+ movs r2, 0
+ swi 0x5
+ bx lr
+ thumb_func_end VBlankIntrWait
+
+ .align 2, 0 @ Don't pad with nop.