load radial2 data from external files and transform it at runtime

This commit is contained in:
Peter Ferrie 2020-11-14 19:18:44 -08:00
parent 63ca80cfef
commit 925c5af8b2
7 changed files with 20 additions and 6735 deletions

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a" !source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start +FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT +FX_RIPPLE_1BIT aslmod2
Start Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit +FX_PRECOMPUTED_1BIT Coordinates1Bit

View File

@ -174,7 +174,7 @@ InitOnce
++ ++
} }
!macro FX_RIPPLE_1BIT { !macro FX_RIPPLE_1BIT .target {
lda #2 ; <(Coordinates1Bit + 2) lda #2 ; <(Coordinates1Bit + 2)
sta $f0 sta $f0
ldy #0 ldy #0
@ -200,7 +200,7 @@ InitOnce
--- ldx #4 --- ldx #4
-- ldy $ee, x -- ldy $ee, x
lda $ef, x lda $ef, x
jsr aslmod jsr .target
sty $ee, x sty $ee, x
sta $ef, x sta $ef, x
sty $ec sty $ec
@ -229,8 +229,9 @@ InitOnce
dec $ef dec $ef
bpl --- bpl ---
bmi +++ ; always branches bmi +++ ; always branches
aslmod aslmod2
jsr + jsr +
aslmod
+ cmp #$1A + cmp #$1A
bcc + bcc +
bne ++ bne ++

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a" !source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start +FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT +FX_RIPPLE_1BIT aslmod2
Start Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit +FX_PRECOMPUTED_1BIT Coordinates1Bit

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a" !source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start +FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT +FX_RIPPLE_1BIT aslmod2
Start Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit +FX_PRECOMPUTED_1BIT Coordinates1Bit

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a" !source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start +FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT +FX_RIPPLE_1BIT aslmod2
Start Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit +FX_PRECOMPUTED_1BIT Coordinates1Bit