SummerCart64/sw/cic/startup.S
2023-11-26 21:16:22 +01:00

24 lines
330 B
ArmAsm

.option norvc
.section .text.entry_handler
entry_handler:
.global entry_handler
init_stack_pointer:
.option push
.option norelax
la sp, _sp
.option pop
init_bss:
la t5, _sbss
la t6, _ebss
beq a0, a1, 2f
1:
sw zero, 0(t5)
addi t5, t5, 4
bltu t5, t6, 1b
2:
run_main:
tail cic_main