From ab80cfa04b6b767b744cceb65e9ba1d7c8ff929e Mon Sep 17 00:00:00 2001 From: 4am Date: Thu, 3 Sep 2020 19:38:38 -0400 Subject: [PATCH] shave another 197109 cycles off HGR per-pixel fizzle fade now 45% faster than yesterday --- src/fx/fx.hgr.1bit.fizzle.a | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fx/fx.hgr.1bit.fizzle.a b/src/fx/fx.hgr.1bit.fizzle.a index 87a78efa4..3a17de1c7 100755 --- a/src/fx/fx.hgr.1bit.fizzle.a +++ b/src/fx/fx.hgr.1bit.fizzle.a @@ -17,12 +17,13 @@ rnd2=$ff ;iterate + ldx #0 @loop lda rnd1 +@loop2 eor #$ff sta $26 sta $3c - ldx rnd2 lsr rnd2 ror rnd1 bcc + @@ -62,14 +63,14 @@ rnd2=$ff ;wait while checking for keypress - ldx $c000 + lda $c000 bmi @exit ;exit condition 2 - ldx rnd1 - dex - bne @loop + lda rnd1 + cmp #1 + bne @loop2 @exit rts