From 1d5b990e81a7c2e53de6e9ef610c1f70c134a525 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 13 Jun 2019 09:44:10 -0400 Subject: [PATCH] spriteS: another erase attempt weird co-incidence exactly same num of cycles --- interlace_demo/sprites.s | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/interlace_demo/sprites.s b/interlace_demo/sprites.s index a28886bf..94ed00f9 100644 --- a/interlace_demo/sprites.s +++ b/interlace_demo/sprites.s @@ -850,30 +850,42 @@ fire_line: ; Erase a line of a fire ;======================== ; Y = y value - ; 17+31+11 = 49 + ; 27+11+11 = 49 erase_fire: 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 - lda y_lookup_h,Y ; 4 + lda gr_offsets+1,Y ; 4 sta OUTH ; 3 ;======= - ; 17 + ; 27 + + ldy FIRE_X ; 3 + lda #0 ; 2 + sta (OUTL),Y ; 6 + ;====== + ; 11 ; ldx in smc should already be ; set to value from last draw? ; COL0 - ldy #6 ; 2 - lda (OUTL),Y ; 5+ - sta fz_smc+1 ; 5 - iny ; 2 - lda (OUTL),Y ; 5+ - sta fz_smc+2 ; 5 - lda #0 ; 2 -fz_smc: - sta $c00,Y ; 5 +; ldy #6 ; 2 +; lda (OUTL),Y ; 5+ +; sta fz_smc+1 ; 5 +; iny ; 2 +; lda (OUTL),Y ; 5+ +; sta fz_smc+2 ; 5 +; lda #0 ; 2 +;fz_smc: +; sta $c00,Y ; 5 ;======= ; 31