Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS’ MANUAL
page
SND_MANACER does not output the modified frequency and attenuation data
PLAY_SONCS ts called just before SND_MANACIR to do this
Special codes tn byte 0 of the song data area indicate:
255: Gate area inactive, do no processing
62: & Special affect is to be played; SND_MANACEIR calle the effect routine
0. end of song Gata areas (SND_MANACER processes Gata areas until it sees
QO im byte 0)
NOTE. Song number 1 MUST use the first area in the block of song Gata areas.
INPUT: none
CALLS: PT_IXI_TO_SxDATA, PROCESS_DATA_AREA
OUTPUT: Calls routines which:
D) decrement song duration and sweep timers
2) modify swept frequency end attenuation values
3) call special effects reutines where necessary
© update the channel Geta aree pointers if necessary
3S) restart the song if indicated
PLAY_SONCS: PLAY_SONCS takes the frequency and attenuation data pointed to by
the four channel data area pointers PTR _TO_S_ON_xs) end outputs it to the forr
scund chip generators.
INPUT: none
CALLS: TONE_OUT, UPATNCTRL
OUTPUT:
1) current freq and atn data is output to each tone generator, if
song/effect on that channel is active; if song on that channel is
inactive, that generator is turned off
2) noise generator is sent current atn data, and contro! data, if new
3) modifies SAVE_CTRL Lf necessary
These four routines would normally be called as follows:
power on inits done by O/S
cartridge program receives control:
LD B, 8 of song data areas used in the game
LD KL, address where LST_OF_SND_ADDRS is stored in ROM
CALL INIT_SOUND to initialice song data areas
whatever other power on inits you want to do
start game:
LD B, @ of song you want to start
CALL JUKE_BCX to set up for start of song
VDP interrupt occurs:
CALL PLAY_SONCS te output data
CALL SND_MANACER to process song data
whatever else you want to do during VDF interrupts
RETN te game