wut/crt/crt0.S

25 lines
277 B
ArmAsm
Raw Normal View History

2015-12-27 03:10:38 +01:00
.extern main
.extern exit
2015-12-27 03:10:38 +01:00
.global _start
_start:
2016-08-01 00:21:18 +02:00
stwu 1, -0x8(1)
stw 3, 0(1)
stw 4, 4(1)
bl fsDevInit
lwz 3, 0(1)
lwz 4, 4(1)
2015-12-27 03:10:38 +01:00
bl main
2016-08-01 00:21:18 +02:00
stw 3, 0(1)
bl fsDevExit
lwz 3, 0(1)
addi 1, 1, 0x8
b exit
2015-12-27 03:10:38 +01:00
.global __wrap___eabi
__wrap___eabi:
blr
.global __init
__init:
2015-12-27 03:10:38 +01:00
blr