You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
Refresh 16
This commit is contained in:
21
asm/entry.s
21
asm/entry.s
@@ -1,7 +1,6 @@
|
||||
// assembler directives
|
||||
.set noat // allow manual use of $at
|
||||
.set noreorder // don't insert nops after branches
|
||||
.set gp=64
|
||||
|
||||
#include "macros.inc"
|
||||
|
||||
@@ -9,6 +8,25 @@
|
||||
.section .text, "ax"
|
||||
|
||||
glabel entry_point
|
||||
.if VERSION_CN == 1
|
||||
lui $t0, %lo(_mainSegmentNoloadStartHi)
|
||||
ori $t0, %lo(_mainSegmentNoloadStartLo)
|
||||
lui $t1, %lo(_mainSegmentNoloadSizeHi)
|
||||
ori $t1, %lo(_mainSegmentNoloadSizeLo)
|
||||
.L80249010:
|
||||
sw $zero, ($t0)
|
||||
sw $zero, 4($t0)
|
||||
addi $t0, $t0, 8
|
||||
addi $t1, $t1, -8
|
||||
bnez $t1, .L80249010
|
||||
nop
|
||||
lui $sp, %lo(gIdleThreadStackHi)
|
||||
ori $sp, %lo(gIdleThreadStackLo)
|
||||
lui $t2, %lo(main_funcHi)
|
||||
ori $t2, %lo(main_funcLo)
|
||||
jr $t2
|
||||
nop
|
||||
.else
|
||||
lui $t0, %hi(_mainSegmentNoloadStart) // $t0, 0x8034
|
||||
lui $t1, %lo(_mainSegmentNoloadSizeHi) // lui $t1, 2
|
||||
addiu $t0, %lo(_mainSegmentNoloadStart) // addiu $t0, $t0, -0x6df0
|
||||
@@ -24,6 +42,7 @@ glabel entry_point
|
||||
addiu $t2, %lo(main_func) // addiu $t2, $t2, 0x6dc4
|
||||
jr $t2
|
||||
addiu $sp, %lo(gIdleThreadStack) // addiu $sp, $sp, 0xa00
|
||||
.endif
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
||||
Reference in New Issue
Block a user