tweak memory-wiping routine
This commit is contained in:
parent
ade2bfe30e
commit
67a9a43b48
1 changed files with 3 additions and 3 deletions
|
@ -69,12 +69,12 @@ Drive64Done:
|
||||||
li t1, 0x80400000
|
li t1, 0x80400000
|
||||||
-
|
-
|
||||||
define x(0)
|
define x(0)
|
||||||
while {x} < 0x100 {
|
while {x} < 0x80 {
|
||||||
// TODO: is sw faster than sd?
|
// sd is roughly the same speed as sw here and saves code size.
|
||||||
sd r0, {x}(t0)
|
sd r0, {x}(t0)
|
||||||
evaluate x({x} + 8)
|
evaluate x({x} + 8)
|
||||||
}
|
}
|
||||||
addiu t0, 0x100
|
addiu t0, 0x80
|
||||||
bne t0, t1,-
|
bne t0, t1,-
|
||||||
nop
|
nop
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue