mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:21:52 +01:00
b4a6eb2f78
Can now optionally link newlib, stdc++, devoptab.
20 lines
298 B
ArmAsm
20 lines
298 B
ArmAsm
.extern main
|
|
.extern exit
|
|
.extern __init_wut
|
|
.extern __fini_wut
|
|
|
|
.global _start
|
|
_start:
|
|
stwu 1, -0x8(1)
|
|
stw 3, 0(1)
|
|
stw 4, 4(1)
|
|
bl __init_wut
|
|
lwz 3, 0(1)
|
|
lwz 4, 4(1)
|
|
bl main
|
|
bl __fini_wut
|
|
# Calling __fini is leading to crashes!
|
|
# bl __fini
|
|
addi 1, 1, 0x8
|
|
b exit
|