REALLY dumb bug fixed in map rendering.

This commit is contained in:
Scott Duensing 2019-06-24 21:17:35 -05:00
parent 1a68ad9e6c
commit 780a045672

View file

@ -382,15 +382,15 @@ loopY equ 9
drawTop phy ; Keep Y for later drawTop phy ; Keep Y for later
ldy offset ; Y is now offset into map data ldy offset ; Y is now offset into map data
lda [<mapData],y lda [mapData],y
and #$ff00 ; We only want 8 bits and #$00ff ; We only want 8 bits
sta tileX sta tileX
iny iny
lda [<mapData],y lda [mapData],y
and #$ff00 ; We only want 8 bits and #$00ff ; We only want 8 bits
sta tileY sta tileY
iny iny
sta offset sty offset
ply ; Y is our loop counter again ply ; Y is our loop counter again
phx ; Protect from clobbering phx ; Protect from clobbering