synth/tools/crt0.s
2021-02-17 13:20:30 -08:00

11 lines
134 B
ArmAsm

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