From fd6c686a9525136136b1705e489345b10925515b Mon Sep 17 00:00:00 2001 From: Lucas Scharenbroich Date: Fri, 19 Nov 2021 16:40:21 -0600 Subject: [PATCH] Fix ordering bug that caused /usr/bin/bash0 values to overwrite the sprite --- src/blitter/Tiles10011.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blitter/Tiles10011.s b/src/blitter/Tiles10011.s index 3fc00b4..51a4e0c 100644 --- a/src/blitter/Tiles10011.s +++ b/src/blitter/Tiles10011.s @@ -109,13 +109,12 @@ mixed eor #$8020 ; Switch the opcode to an ORA and remove the high bit of the operand sta: $0004,y ; ORA $00,x + lda #$0029 ; AND #SPRITE_MASK + sta: $0006,y ldal spritemask+]1,x cmp #$FFFF ; All 1's in the mask is a fully transparent sprite word beq transparent ; so we can use the Tile00011 method - sta: $0007,y - lda #$0029 ; AND #SPRITE_MASK - sta: $0006,y lda #$0009 ; ORA #SPRITE_DATA sta: $0009,y