SummerCart64/sw/cic/startup.S
2023-12-14 19:26:54 +01:00

25 lines
345 B
ArmAsm

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