mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-13 05:30:32 +00:00
include EOF marker in 1-bit external files
This commit is contained in:
parent
7c8b695829
commit
f3ac2d62bb
@ -6721,3 +6721,4 @@
|
||||
!byte $18,%00001111
|
||||
!byte $48,%00001010
|
||||
!byte $48,%00000101
|
||||
!byte $80
|
||||
|
@ -6721,3 +6721,4 @@
|
||||
!byte $01,%01000000
|
||||
!byte $01,%00000000
|
||||
!byte $01,%00100000
|
||||
!byte $80
|
||||
|
@ -6721,3 +6721,4 @@
|
||||
!byte $00,%01000000
|
||||
!byte $00,%00100000
|
||||
!byte $00,%00000000
|
||||
!byte $80
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -6721,3 +6721,4 @@
|
||||
!byte $04,%11010011
|
||||
!byte $02,%11010011
|
||||
!byte $00,%11010011
|
||||
!byte $80
|
||||
|
@ -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
|
||||
|
@ -6721,3 +6721,4 @@
|
||||
!byte $1A,%00000000
|
||||
!byte $1E,%00000000
|
||||
!byte $1C,%00000000
|
||||
!byte $80
|
||||
|
@ -6721,3 +6721,4 @@
|
||||
!byte $5E,%01000000
|
||||
!byte $5E,%00100000
|
||||
!byte $5E,%00000000
|
||||
!byte $80
|
||||
|
Loading…
x
Reference in New Issue
Block a user