This is probably a stupid mistake, but I can't figure out what I'm doing wrong. I'm just trying to draw the Atari logo on the playfield. The bitmap is 31 lines long, but I'm using LSR twice before loading it so it is the same for four scanlines.
Here is my code for looping through the scanlines:
ldy #191
tya
lsr
lsr
tax
ScanLoop
lda PFData2,X
sta PF2
lda PFData1,X
sta PF1
sta WSYNC
tya
lsr
lsr
tax
dey
bne ScanLoop
And I get something that looks like this:
Thanks in advance, I don't know where I messed up here.
Edit: Woops, that whole four lines of "tya lsr lsr tax" was meant to go after the DEY. I don't think that was causing it lol.