include EOF marker in 1-bit external files

This commit is contained in:
4am 2020-11-15 00:37:38 -05:00
parent 7c8b695829
commit f3ac2d62bb
9 changed files with 11 additions and 5 deletions

View File

@ -6721,3 +6721,4 @@
!byte $18,%00001111
!byte $48,%00001010
!byte $48,%00000101
!byte $80

View File

@ -6721,3 +6721,4 @@
!byte $01,%01000000
!byte $01,%00000000
!byte $01,%00100000
!byte $80

View File

@ -6721,3 +6721,4 @@
!byte $00,%01000000
!byte $00,%00100000
!byte $00,%00000000
!byte $80

View File

@ -130,8 +130,9 @@ InitOnce
+READ_RAM2_WRITE_RAM2
+LOAD_FILE_AT .CoordinatesFile, Coordinates1Bit
+READ_RAM1_WRITE_RAM1
lda #$80
sta EndCoordinates1Bit
; data file must contain this EOF marker
;lda #$80
;sta EndCoordinates1Bit
}
!macro FX_REVERSE_1BIT {

View File

@ -18,6 +18,7 @@ input = $FE ; word
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
lda #$80
sta Coordinates1Bit-2
Start

View File

@ -6721,3 +6721,4 @@
!byte $04,%11010011
!byte $02,%11010011
!byte $00,%11010011
!byte $80

View File

@ -29,7 +29,7 @@ Start
+ST16 input
+LDADDR EndCoordinates1Bit-2
+ST16 reverse_input
jmp Loop
+HIDE_NEXT_BYTE
Exit rts
Loop ldy #0
lda (input),y
@ -89,5 +89,3 @@ Loop ldy #0
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"
Coordinates=Coordinates1Bit
EndCoordinates=EndCoordinates1Bit

View File

@ -6721,3 +6721,4 @@
!byte $1A,%00000000
!byte $1E,%00000000
!byte $1C,%00000000
!byte $80

View File

@ -6721,3 +6721,4 @@
!byte $5E,%01000000
!byte $5E,%00100000
!byte $5E,%00000000
!byte $80