mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-25 20:30:31 +00:00
chiptune: more paramater prepwork
This commit is contained in:
parent
21d183616e
commit
e4d66a70b8
@ -1,12 +1,6 @@
|
||||
; File I/O routines based on sample code in
|
||||
; "Beneath Apple DOS" by Don Worth and Pieter Lechner
|
||||
|
||||
; FIXME: make these a parameter
|
||||
; filename
|
||||
|
||||
disk_buff EQU $1C00
|
||||
read_size EQU $4000 ; 16kB
|
||||
|
||||
;; For the disk-read code
|
||||
;RWTSL EQU $F0
|
||||
;RWTSH EQU $F1
|
||||
@ -40,7 +34,9 @@ FILEMANAGER EQU $3D6
|
||||
;================================
|
||||
; FILENAME pointed to by INH:INL
|
||||
; OUTH:OUTL trashed
|
||||
;
|
||||
; output buffer: disk_buff
|
||||
; size to read: read_size
|
||||
|
||||
read_file:
|
||||
jsr LOCATE_FILEM_PARAM ; $3DC entry point
|
||||
; load file manager param list
|
||||
|
@ -8,6 +8,7 @@ UNPACK_BUFFER EQU $5E00 ; $5E00 - $9600, 14k, $3800
|
||||
; Reserve 3 chunks plus spare (14k)
|
||||
CHUNKSIZE EQU $3
|
||||
|
||||
|
||||
;=============================
|
||||
; Setup
|
||||
;=============================
|
||||
@ -245,6 +246,9 @@ new_song:
|
||||
lda #>krw_file
|
||||
sta INH
|
||||
|
||||
disk_buff EQU LZ4_BUFFER
|
||||
read_size EQU $4000
|
||||
|
||||
jsr read_file ; read KRW file from disk
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user