synth/tools/crt0.s
2021-02-22 20:34:54 -08:00

11 lines
134 B
ArmAsm

.global _start
_start:
set sp, 0
seth sp, 0x11
set r2, main
nop
set r3, 2
add lr, pc, r3
or pc, r2, r2
or pc, pc, pc // loop forever