mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-17 07:31:19 +00:00
migrate RADIAL5 effect to external file, and some more cleanup
This commit is contained in:
parent
8befda92c1
commit
f081417d42
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -16,6 +16,3 @@ Start
|
||||
CoordinatesFile
|
||||
!byte 14
|
||||
!text "FX/RADIAL.DATA"
|
||||
|
||||
Coordinates = Coordinates1Bit
|
||||
EndCoordinates = EndCoordinates1Bit
|
||||
|
@ -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
|
||||
|
@ -16,6 +16,3 @@ Start
|
||||
CoordinatesFile
|
||||
!byte 14
|
||||
!text "FX/RADIAL.DATA"
|
||||
|
||||
Coordinates = Coordinates1Bit
|
||||
EndCoordinates = EndCoordinates1Bit
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user