Fix H+V sprite stamp renderer

This commit is contained in:
Lucas Scharenbroich 2022-06-08 17:17:28 -05:00
parent 388470c133
commit 227643d7df

View File

@ -261,7 +261,7 @@ draw_16x16hv
tax tax
tya tya
pha pha
adc #128+{128*32} ; Bottom-right source to top-left adc #{128*{32+1}}+64 ; Bottom-right source to top-left
tay tay
jsr _DrawTile8x8V jsr _DrawTile8x8V
@ -269,7 +269,7 @@ draw_16x16hv
adc #4 adc #4
tax tax
lda 1,s lda 1,s
adc #{128*32} adc #{128*32}+64
tay tay
jsr _DrawTile8x8V jsr _DrawTile8x8V
@ -277,14 +277,16 @@ draw_16x16hv
adc #{8*SPRITE_PLANE_SPAN}-4 adc #{8*SPRITE_PLANE_SPAN}-4
tax tax
lda 1,s lda 1,s
adc #128 adc #128+64
tay tay
jsr _DrawTile8x8V jsr _DrawTile8x8V
txa txa
adc #4 adc #4
tax tax
ply pla
adc #64
tay
jmp _DrawTile8x8V jmp _DrawTile8x8V