WiiFlow_Lite/resources/app_booter/source/crt0.s
fix94.1 d31f40a84b -finally adjusted the homebrew app booter entry point to be safe with the new memory manager
-updated the app booter to be compilable with the current devkitppc, that means if you compile wiiflow it will from now on also compile the app booter
-fixed a little compiler issue for the new wiiflow loader
2014-03-23 20:14:59 +00:00

23 lines
600 B
ArmAsm

# Copyright 2008-2009 Segher Boessenkool <segher@kernel.crashing.org>
# This code is licensed to you under the terms of the GNU GPL, version 2;
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
.extern _main
.globl _start
_start:
# Disable interrupts, enable FP.
mfmsr 3 ; rlwinm 3,3,0,17,15 ; ori 3,3,0x2000 ; mtmsr 3 ; isync
# Setup stack.
lis 1,_stack_top@ha ; addi 1,1,_stack_top@l ; li 0,0 ; stwu 0,-64(1)
# Clear BSS.
lis 3,__bss_start@ha ; addi 3,3,__bss_start@l
li 4,0
lis 5,__bss_end@ha ; addi 5,5,__bss_end@l ; sub 5,5,3
bl memset
# Go!
bl _main