wut/crt/crt0.S

28 lines
328 B
ArmAsm
Raw Normal View History

2015-12-27 03:10:38 +01:00
.extern main
.extern exit
2017-04-11 00:18:39 +02:00
.extern __init_wut_newlibc
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)
2017-04-13 01:44:05 +02:00
bl __init_wut_newlibc
2016-08-01 00:21:18 +02:00
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