wut/libraries/wutcrt/crt0_rpx.s

20 lines
280 B
ArmAsm
Raw Normal View History

2018-05-25 12:31:38 +02:00
.extern main
.extern exit
.extern __init_wut
.extern __fini_wut
2018-05-25 12:31:38 +02:00
.global _start
_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)
2018-05-25 12:31:38 +02:00
bl main
bl __fini_wut
addi 1, 1, 0x14
2018-05-25 12:31:38 +02:00
b exit