wut/libraries/wutcrt/crt0_rpx.s
2021-03-04 19:48:45 +01:00

20 lines
305 B
ArmAsm

.extern main
.extern exit
.extern __init_wut
.extern __fini_wut
.section .crt0, "ax", @progbits
.global __rpx_start
__rpx_start:
stwu 1, -0x14(1)
mflr 0
stw 0, 0x18(1)
stw 3, 0xC(1)
stw 4, 0x10(1)
bl __init_wut
lwz 3, 0xC(1)
lwz 4, 0x10(1)
bl main
addi 1, 1, 0x14
b exit