You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
19 lines
268 B
ArmAsm
19 lines
268 B
ArmAsm
#ifdef SDATA
|
|
|
|
// 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 setgp
|
|
lui $gp, %hi(_gp)
|
|
jr $ra
|
|
addiu $gp, %lo(_gp)
|
|
|
|
#endif
|