From da80a76866801e9e4a3f4bfe9140a7ec0979a68b Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 24 Aug 2018 08:20:43 +0200 Subject: [PATCH] write a crappy frame loop that doesn't work --- main.asm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main.asm b/main.asm index 5c3fd29..413f6d5 100644 --- a/main.asm +++ b/main.asm @@ -81,6 +81,9 @@ include "dlist.asm" // takes a0 jal DumpAndWrite lli a3, 0x80 * 4 + jal SetupScreen + nop + Start3D: DisableInt() @@ -126,10 +129,19 @@ Start3D: EnableInt() MainLoop: - j MainLoop + lui a0, K_BASE + lw t0, K_HISTORY(a0) + andi t0, 0x08 + beqz t0, MainLoop + nop + + MaybeDumpString(SNewFrame) + + j Start3D nop KSL(SWaiting, "Waiting on RSP...") +KSL(SNewFrame, "next frame") SetupScreen: if HICOLOR {