mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-19 22:27:36 -04:00
31 lines
695 B
ArmAsm
31 lines
695 B
ArmAsm
#include "../src/defs.h"
|
|
# assembler directives
|
|
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
.set gp=64
|
|
|
|
.include "macros.inc"
|
|
|
|
.section .text, "ax"
|
|
|
|
glabel entry_point
|
|
la $t0, _codeSegmentBssStart
|
|
la $t1, _codeSegmentBssSize
|
|
.bss_clear:
|
|
addi $t1, $t1, -8
|
|
sw $zero, ($t0)
|
|
sw $zero, 4($t0)
|
|
bnez $t1, .bss_clear
|
|
addi $t0, $t0, 8
|
|
lui $t2, %hi(boot) # $t2, 0x8024
|
|
lui $sp, %hi(mainStack + STACKSIZEBYTES) # $sp, 0x8020
|
|
addiu $t2, %lo(boot) # addiu $t2, $t2, 0x6dc4
|
|
jr $t2
|
|
addiu $sp, %lo(mainStack + STACKSIZEBYTES) # addiu $sp, $sp, 0xa00
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|