mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-03 03:54:50 +00:00
spriteS: another erase attempt
weird co-incidence exactly same num of cycles
This commit is contained in:
parent
c11eb1329c
commit
1d5b990e81
@ -850,30 +850,42 @@ fire_line:
|
|||||||
; Erase a line of a fire
|
; Erase a line of a fire
|
||||||
;========================
|
;========================
|
||||||
; Y = y value
|
; Y = y value
|
||||||
; 17+31+11 = 49
|
; 27+11+11 = 49
|
||||||
erase_fire:
|
erase_fire:
|
||||||
sty TEMPY ; 3
|
sty TEMPY ; 3
|
||||||
|
|
||||||
lda y_lookup_l,Y ; 4
|
clc ; 2
|
||||||
|
tya ; 2
|
||||||
|
lsr ; 2
|
||||||
|
lsr ; 2
|
||||||
|
adc #$8 ; 2
|
||||||
|
|
||||||
|
lda gr_offsets,Y ; 4
|
||||||
sta OUTL ; 3
|
sta OUTL ; 3
|
||||||
lda y_lookup_h,Y ; 4
|
lda gr_offsets+1,Y ; 4
|
||||||
sta OUTH ; 3
|
sta OUTH ; 3
|
||||||
;=======
|
;=======
|
||||||
; 17
|
; 27
|
||||||
|
|
||||||
|
ldy FIRE_X ; 3
|
||||||
|
lda #0 ; 2
|
||||||
|
sta (OUTL),Y ; 6
|
||||||
|
;======
|
||||||
|
; 11
|
||||||
|
|
||||||
; ldx in smc should already be
|
; ldx in smc should already be
|
||||||
; set to value from last draw?
|
; set to value from last draw?
|
||||||
|
|
||||||
; COL0
|
; COL0
|
||||||
ldy #6 ; 2
|
; ldy #6 ; 2
|
||||||
lda (OUTL),Y ; 5+
|
; lda (OUTL),Y ; 5+
|
||||||
sta fz_smc+1 ; 5
|
; sta fz_smc+1 ; 5
|
||||||
iny ; 2
|
; iny ; 2
|
||||||
lda (OUTL),Y ; 5+
|
; lda (OUTL),Y ; 5+
|
||||||
sta fz_smc+2 ; 5
|
; sta fz_smc+2 ; 5
|
||||||
lda #0 ; 2
|
; lda #0 ; 2
|
||||||
fz_smc:
|
;fz_smc:
|
||||||
sta $c00,Y ; 5
|
; sta $c00,Y ; 5
|
||||||
;=======
|
;=======
|
||||||
; 31
|
; 31
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user