You've already forked pico-loader
mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-01-09 16:28:35 -08:00
Initial commit
This commit is contained in:
26
arm7/source/crt0.s
Normal file
26
arm7/source/crt0.s
Normal file
@@ -0,0 +1,26 @@
|
||||
.section ".crt0", "ax"
|
||||
.arm
|
||||
|
||||
.global _start
|
||||
.type _start, %function
|
||||
_start:
|
||||
// disable irqs
|
||||
ldr r0,= 0x04000208
|
||||
strb r0, [r0]
|
||||
// clear bss
|
||||
ldr r0,= __bss_start
|
||||
ldr r1,= __bss_end
|
||||
cmp r0, r1
|
||||
beq bss_done
|
||||
mov r2, #0
|
||||
1:
|
||||
str r2, [r0], #4
|
||||
cmp r0, r1
|
||||
bne 1b
|
||||
bss_done:
|
||||
ldr sp,= 0x0380FD80
|
||||
b loaderMain
|
||||
|
||||
.pool
|
||||
|
||||
.end
|
||||
Reference in New Issue
Block a user