Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/lib/asm/osMapTLBRdb.s
7858 views
1
.set noat // allow manual use of $at
2
.set noreorder // don't insert nops after branches
3
.set gp=64
4
5
#include "macros.inc"
6
7
8
.section .text, "ax"
9
10
glabel osMapTLBRdb
11
mfc0 $t0, $10
12
li $t1, 31
13
mtc0 $t1, $0
14
mtc0 $zero, $5
15
li $t2, 23
16
lui $t1, 0xc000
17
mtc0 $t1, $10
18
lui $t1, 0x8000
19
srl $t3, $t1, 6
20
or $t3, $t3, $t2
21
mtc0 $t3, $2
22
li $t1, 1
23
mtc0 $t1, $3
24
nop
25
tlbwi
26
nop
27
nop
28
nop
29
nop
30
mtc0 $t0, $10
31
jr $ra
32
nop
33
34
nop
35
nop
36
37
38