mirror of https://github.com/ctnlaring/sm64
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
480 B
33 lines
480 B
.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 osUnmapTLBAll
|
|
mfc0 $t0, $10
|
|
li $t1, 31
|
|
lui $t2, 0x8000
|
|
mtc0 $t2, $10
|
|
mtc0 $zero, $2
|
|
mtc0 $zero, $3
|
|
.L80321588:
|
|
mtc0 $t1, $0
|
|
nop
|
|
tlbwi
|
|
nop
|
|
nop
|
|
addi $t1, $t1, -1
|
|
bnezl $t1, .L80321588 #bnezl, bnez but with likely hint
|
|
nop
|
|
mtc0 $t0, $10
|
|
jr $ra
|
|
nop
|
|
|
|
nop
|
|
nop
|
|
nop
|
|
|