Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/lib/asm/osWritebackDCacheAll.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 osWritebackDCacheAll
11
li $t0, K0BASE
12
li $t2, 8192
13
addu $t1, $t0, $t2
14
addiu $t1, $t1, -0x10
15
.L80322020:
16
cache 1, ($t0)
17
sltu $at, $t0, $t1
18
bnez $at, .L80322020
19
addiu $t0, $t0, 0x10
20
jr $ra
21
nop
22
23
nop
24
nop
25
26