From 7ec1b8bc298a051d9f0912c74066ecfc3619c78d Mon Sep 17 00:00:00 2001 From: Lucas Scharenbroich Date: Thu, 28 Oct 2021 21:52:48 -0500 Subject: [PATCH] Fix dumb initialization bug in sprite plane --- src/Sprite.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Sprite.s b/src/Sprite.s index 7cdb900..d2c837e 100644 --- a/src/Sprite.s +++ b/src/Sprite.s @@ -12,14 +12,16 @@ InitSprites :loop1 stal spritedata,x dex dex - bpl :loop1 + cpx #$FFFE + bne :loop1 ldx #$FFFE lda #$FFFF :loop2 stal spritemask,x dex dex - bpl :loop2 + cpx #$FFFE + bne :loop2 rts