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
1 changed files with 6 additions and 4 deletions

View File

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