From 97ff749e8b76d1cefdeeaf885aa1461b36bd43e5 Mon Sep 17 00:00:00 2001 From: Gale Faraday Date: Sat, 13 Sep 2025 15:58:36 -0500 Subject: [PATCH] fix(reset): only check CC.Z when looping over stack init --- src/reset.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reset.s b/src/reset.s index e5a7c56..49a4f2e 100644 --- a/src/reset.s +++ b/src/reset.s @@ -28,7 +28,7 @@ NEXT@ sta STACK_BOTTOM,x ; Write a zero and progress to the next byte leax 1,x cmpx #STACK_DEPTH ; See if we're at the top of the stack yet - blo NEXT@ ; Loop if we aren't at the end yet + bne NEXT@ ; Loop if we aren't at the end yet lds #STACK_TOP ; Set S to top of newly cleared stack BOOTSCR