Add libagbsyscall

This commit is contained in:
Marcus Huderle
2018-10-13 11:04:10 -05:00
parent 2d9a7ba8be
commit 75c0dbc467
3 changed files with 46 additions and 1 deletions
+44
View File
@@ -0,0 +1,44 @@
.include "asm/macros.inc"
.syntax unified
.text
thumb_func_start ArcTan2
ArcTan2:
swi 0xA
bx lr
thumb_func_end ArcTan2
thumb_func_start CpuSet
CpuSet:
swi 0xB
bx lr
thumb_func_end CpuSet
thumb_func_start LZ77UnCompWram
LZ77UnCompWram:
swi 0x11
bx lr
thumb_func_end LZ77UnCompWram
thumb_func_start RegisterRamReset
RegisterRamReset:
swi 0x1
bx lr
thumb_func_end RegisterRamReset
thumb_func_start Sqrt
Sqrt:
swi 0x8
bx lr
thumb_func_end Sqrt
thumb_func_start VBlankIntrWait
VBlankIntrWait:
movs r2, 0
swi 0x5
bx lr
thumb_func_end VBlankIntrWait
.align 2, 0 @ Don't pad with nop.
+1 -1
View File
@@ -1,3 +1,3 @@
.text
.incbin "baserom.gba", 0x554D4, 0x666AFC
.incbin "baserom.gba", 0x554F0, 0x666AE0
+1
View File
@@ -29,6 +29,7 @@ SECTIONS
src/m4a_2.o(.text);
asm/m4a_3.o(.text);
src/m4a_4.o(.text);
asm/libagbsyscall.o(.text);
asm/rom.o(.text);
}=0xFF
}