mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-27 10:43:05 -05:00
96 lines
1.4 KiB
ArmAsm
96 lines
1.4 KiB
ArmAsm
.include "../constants/gba_constants.inc"
|
|
@ .include "asm/macros.inc"
|
|
.include "../asm/macros/function.inc"
|
|
|
|
.syntax unified
|
|
|
|
.text
|
|
|
|
thumb_func_start ArcTan2
|
|
ArcTan2:
|
|
svc 0xA
|
|
bx lr
|
|
thumb_func_end ArcTan2
|
|
|
|
thumb_func_start BgAffineSet
|
|
BgAffineSet:
|
|
svc 0xE
|
|
bx lr
|
|
thumb_func_end BgAffineSet
|
|
|
|
thumb_func_start CpuFastSet
|
|
CpuFastSet:
|
|
svc 0xC
|
|
bx lr
|
|
thumb_func_end CpuFastSet
|
|
|
|
thumb_func_start CpuSet
|
|
CpuSet:
|
|
svc 0xB
|
|
bx lr
|
|
thumb_func_end CpuSet
|
|
|
|
thumb_func_start Div
|
|
Div:
|
|
svc 0x6
|
|
bx lr
|
|
thumb_func_end Div
|
|
|
|
thumb_func_start LZ77UnCompVram
|
|
LZ77UnCompVram:
|
|
svc 0x12
|
|
bx lr
|
|
thumb_func_end LZ77UnCompVram
|
|
|
|
thumb_func_start LZ77UnCompWram
|
|
LZ77UnCompWram:
|
|
svc 0x11
|
|
bx lr
|
|
thumb_func_end LZ77UnCompWram
|
|
|
|
thumb_func_start MultiBoot
|
|
MultiBoot:
|
|
movs r1, 0x1
|
|
svc 0x25
|
|
bx lr
|
|
thumb_func_end MultiBoot
|
|
|
|
thumb_func_start ObjAffineSet
|
|
ObjAffineSet:
|
|
svc 0xF
|
|
bx lr
|
|
thumb_func_end ObjAffineSet
|
|
|
|
thumb_func_start RegisterRamReset
|
|
RegisterRamReset:
|
|
svc 0x1
|
|
bx lr
|
|
thumb_func_end RegisterRamReset
|
|
|
|
thumb_func_start SoftReset
|
|
SoftReset:
|
|
ldr r3, =REG_IME
|
|
movs r2, 0
|
|
strb r2, [r3]
|
|
ldr r1, =0x03007f00 @ User Stack
|
|
mov sp, r1
|
|
svc 0x1
|
|
svc 0
|
|
.pool
|
|
thumb_func_end SoftReset
|
|
|
|
thumb_func_start Sqrt
|
|
Sqrt:
|
|
svc 0x8
|
|
bx lr
|
|
thumb_func_end Sqrt
|
|
|
|
thumb_func_start VBlankIntrWait
|
|
VBlankIntrWait:
|
|
movs r2, 0
|
|
svc 0x5
|
|
bx lr
|
|
thumb_func_end VBlankIntrWait
|
|
|
|
.align 2, 0 @ Don't pad with nop.
|