Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/lib/asm/osUnmapTLBAll.s
7858 views
1
.set noreorder // don't insert nops after branches
2
.set gp=64
3
4
#include "macros.inc"
5
6
7
.section .text, "ax"
8
9
glabel osUnmapTLBAll
10
mfc0 $t0, $10
11
li $t1, 31
12
lui $t2, 0x8000
13
mtc0 $t2, $10
14
mtc0 $zero, $2
15
mtc0 $zero, $3
16
.L80321588:
17
mtc0 $t1, $0
18
nop
19
tlbwi
20
nop
21
nop
22
addi $t1, $t1, -1
23
bnezl $t1, .L80321588 #bnezl, bnez but with likely hint
24
nop
25
mtc0 $t0, $10
26
jr $ra
27
nop
28
29
nop
30
nop
31
nop
32
33
34