migrate RADIAL5 effect to external file, and some more cleanup

This commit is contained in:
4am 2020-11-14 23:54:39 -05:00
parent 8befda92c1
commit f081417d42
8 changed files with 21 additions and 6753 deletions

View File

@ -230,10 +230,9 @@ InitOnce
dec $ef
bpl ---
bmi +++ ; always branches
aslmod2
jsr +
aslmod
+ cmp #$1A
aslmod3 jsr aslmod
aslmod2 jsr aslmod
aslmod cmp #$1A
bcc +
bne ++
cpy #$40

View File

@ -18,7 +18,7 @@ input = $FE ; word
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
sta Coordinates-2
sta Coordinates1Bit-2
Start
+BUILD_HGR_LOOKUP_TABLES hgrlo, hgr1hi
@ -26,7 +26,7 @@ Start
+BUILD_MIRROR_COLS mirror_cols
+BUILD_SPARSE_BITMASKS copymasks, mirror_copymasks
+LDADDR EndCoordinates-2
+LDADDR EndCoordinates1Bit-2
+ST16 input
LoopBL ; bottom-left quadrant (opposite row, original column, reverse input order)
ldy #0
@ -42,7 +42,7 @@ LoopBL ; bottom-left quadrant (opposite row, origi
+DEC_INPUT_AND_LOOP LoopBL
DoneBL
+LDADDR Coordinates
+LDADDR Coordinates1Bit
+ST16 input
LoopTL ; top-left quadrant
ldy #0
@ -58,7 +58,7 @@ LoopTL ; top-left quadrant
+INC_INPUT_AND_LOOP LoopTL
DoneTL
+LDADDR EndCoordinates-2
+LDADDR EndCoordinates1Bit-2
+ST16 input
LoopTR ; top-right quadrant (same row, opposite column, reverse input order)
ldy #0
@ -76,7 +76,7 @@ LoopTR ; top-right quadrant (same row, opposite co
+DEC_INPUT_AND_LOOP LoopTR
DoneTR
+LDADDR Coordinates
+LDADDR Coordinates1Bit
+ST16 input
LoopBR ; bottom-right quadrant (opposite row, opposite column, original input order)
ldy #0
@ -98,6 +98,3 @@ DoneBR
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = EndCoordinates1Bit

View File

@ -13,9 +13,9 @@ input = $FE ; word
+BUILD_HGR_MIRROR_LOOKUP_TABLES hgrlomirror, hgr1himirror
+BUILD_MIRROR_COLS mirror_cols
+BUILD_SPARSE_BITMASKS copymasks, mirror_copymasks
+LDADDR Coordinates
+LDADDR Coordinates1Bit
+ST16 input
+LDADDR EndCoordinates-2
+LDADDR EndCoordinates1Bit-2
+ST16 reverse_input
jmp Loop
Exit rts

View File

@ -16,6 +16,3 @@ Start
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = EndCoordinates1Bit

View File

@ -25,9 +25,9 @@ Start
+BUILD_HGR_MIRROR_LOOKUP_TABLES hgrlomirror, hgr1himirror
+BUILD_MIRROR_COLS mirror_cols
+BUILD_SPARSE_BITMASKS copymasks, mirror_copymasks
+LDADDR Coordinates
+LDADDR Coordinates1Bit
+ST16 input
+LDADDR EndCoordinates-2
+LDADDR EndCoordinates1Bit-2
+ST16 reverse_input
jmp Loop
Exit rts
@ -89,6 +89,3 @@ Loop ldy #0
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = EndCoordinates1Bit

View File

@ -16,6 +16,3 @@ Start
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = EndCoordinates1Bit

View File

@ -1,17 +1,18 @@
;license:MIT
;(c) 2019 by 4am
;(c) 2019-2020 by 4am/qkumba
;
!cpu 6502
!to "build/FX/RADIAL5",plain
*=$6000
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT aslmod3
Start
!source "src/fx/fx.hgr.radial.common.a"
!if * and 1 {
!byte 0
}
Coordinates
!source "src/fx/fx.hgr.radial5.data.a"
EndCoordinates
!byte $80
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"

File diff suppressed because it is too large Load Diff