lda YPos
iny
sta (ptr1),y
- lda YPos
+ lda YPos+1
iny
sta (ptr1),y
sei ; Disable interrupts
and VIC_SPR_ENA
sta VIC_SPR_ENA ; Disable sprite
- cli ; Enable interrupts
+ cli ; Enable interrupts
@L1: inc Invisible ; Set the flag to invisible
rts
sta YMax
stx YMax+1 ; maxy
- lda (sp),y
+ lda (sp),y
sta XMax
iny
lda (sp),y
lda XPos+1
iny
sta (ptr1),y
- lda YPos
- iny
- sta (ptr1),y
- lda YPos
+ lda YPos
+ iny
+ sta (ptr1),y
+ lda YPos+1
iny
sta (ptr1),y
jsr popsreg ; Get X
sei ; Disable interrupts
- sta YPos
+ sta YPos
stx YPos+1
lda sreg
ldx sreg+1