|
i did it in the end i was using $00 hex as a sprite so i just made it blank check out the source:- sprite:
ldx #$00 stx $2003 stx $2003
loop: lda #$63 sta $2004 lda #$05 ;sprite sta $2004 lda #$01 sta $2004 lda xcor sta $2004
jsr subtimer
jsr clearsprite
inc xcor jmp loop
clearsprite:
ldx #$00 stx $2003 stx $2003
lda #$00 sta $2004 lda #$00 ;00 is a clear patten number sta $2004 lda #$00 sta $2004 lda #$00 sta $2004 rts
subtimer: ldy #$FF ;timer a bit messy but still works bra: ldx #$FF bra1: dex bne bra1 dey bne bra rts
is this the best way to do it?
thanxs
|