mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-13 07:29:54 +00:00
chiptune: paramaterize chunksize
This commit is contained in:
parent
1f63b498a2
commit
769ec9e12f
@ -3,6 +3,7 @@
|
||||
.include "zp.inc"
|
||||
|
||||
CHUNK_BUFFER EQU $6000
|
||||
CHUNKSIZE EQU $3
|
||||
|
||||
;=============================
|
||||
; Setup
|
||||
@ -225,7 +226,7 @@ mb_not_13:
|
||||
; so write same to both left/write
|
||||
clc
|
||||
lda INH
|
||||
adc #$3
|
||||
adc #CHUNKSIZE
|
||||
sta INH
|
||||
|
||||
inx
|
||||
@ -244,7 +245,7 @@ wraparound:
|
||||
|
||||
inc MB_CHUNK
|
||||
lda MB_CHUNK
|
||||
cmp #$3
|
||||
cmp #CHUNKSIZE
|
||||
bne chunk_good
|
||||
lda #0
|
||||
sta MB_CHUNK
|
||||
|
Loading…
x
Reference in New Issue
Block a user