From 9e175b60584637c9690e64b6826044cea689dc85 Mon Sep 17 00:00:00 2001 From: 4am Date: Thu, 19 Nov 2020 14:22:20 -0500 Subject: [PATCH] add DHGR two-pass L/R effect --- res/DFX.CONF | 3 +- src/fx/fx.dhgr.2pass.lr.a | 62 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 src/fx/fx.dhgr.2pass.lr.a diff --git a/res/DFX.CONF b/res/DFX.CONF index e1c6cb58f..62f52771e 100644 --- a/res/DFX.CONF +++ b/res/DFX.CONF @@ -1,11 +1,12 @@ DHGR.FIZZLE2BIT DHGR.RIPPLE +DHGR.REDLINES DHGR.RADIAL DHGR.BAR.DISSLV DHGR.RADIAL4 DHGR.STAR DHGR.RADIAL3 -DHGR.REDLINES +DHGR.TWOPASS.LR DHGR.RADIAL2 DHGR.IRIS DHGR.RADIAL5 diff --git a/src/fx/fx.dhgr.2pass.lr.a b/src/fx/fx.dhgr.2pass.lr.a new file mode 100644 index 000000000..7559aab86 --- /dev/null +++ b/src/fx/fx.dhgr.2pass.lr.a @@ -0,0 +1,62 @@ +;license:MIT +;(c) 2018 by 4am +; +!cpu 6502 +!to "build/FX/DHGR.TWOPASS.LR",plain +*=$6000 + +hgrlo = $0200 ; [$C0 bytes, main memory only] +hgr1hi = $0300 ; [$C0 bytes, main memory only] + + !source "src/fx/macros.a" + + ldx #(end-start) ; copy code to zero page +- lda start-1, x + sta $FF, x + dex + bne - + +BUILD_HGR_LOOKUP_TABLES_X_IS_ALREADY_0 hgrlo, hgr1hi + jmp loop + +start +!pseudopc 0 { +loop ldy #$00 + inc