From 67a9a43b48d658eb7c6a817728142c93db5f2255 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 2 Nov 2018 17:53:01 +0100 Subject: [PATCH] tweak memory-wiping routine --- kernel.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel.asm b/kernel.asm index 211921d..d839194 100644 --- a/kernel.asm +++ b/kernel.asm @@ -69,12 +69,12 @@ Drive64Done: li t1, 0x80400000 - define x(0) -while {x} < 0x100 { - // TODO: is sw faster than sd? +while {x} < 0x80 { + // sd is roughly the same speed as sw here and saves code size. sd r0, {x}(t0) evaluate x({x} + 8) } - addiu t0, 0x100 + addiu t0, 0x80 bne t0, t1,- nop