Sincerely,
6502Pong
Posted Sat Mar 28, 2009 9:52 AM
Posted Sat Mar 28, 2009 10:28 AM
ldx #0 ;get X ready to disable Ball object ;changed from lda to ldx ; sta ENABL ; removed this line ; if the visibleballline is non zero, lda visibleballline ; if the visibleballline is zero beq FinishBall ; don't draw the ball lda #2 ; otherwise set the accumulator to 2 sta ENABL ; and draw the ball dec visibleballline ; and decrement the visibleballline by 1 .byte $2c ;skip over next two bytes. Added this line FinishBall stx ENABL ;this 2 byte instruction is skipped if ;ball is still drawing. changed from sta to stx
Posted Sat Mar 28, 2009 11:35 AM
SkipActivateBall lda visibleballline ; if the visibleballline is zero beq FinishBall ; don't draw the ball lda #2 ; otherwise set the accumulator to 2 dec visibleballline ; and decrement the visibleballline by 1 FinishBall sta ENABL ; enable/disable the ball ; if the visibleballline is non zero, ; we're drawing it
Posted Sat Mar 28, 2009 11:43 AM
0 members, 1 guests, 0 anonymous users