From f668e96974a5f0c34e6677fcb28d3b673f1b59c0 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Fri, 21 Mar 2025 06:34:48 -0600 Subject: [PATCH] fixed pallet inversion --- main.s | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.s b/main.s index 680b183..a87163b 100644 --- a/main.s +++ b/main.s @@ -28,7 +28,7 @@ skip: rts reset: - ldx #15 + ldx #0 lda #$3F sta $2006 lda #$00 @@ -36,8 +36,9 @@ reset: loop: lda bg_pallets, x sta $2007 - dex - bpl loop + inx + cpx #16 + bne loop lda #173 sta $00 lda #0