Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS’ MANUAL page
and would be followed by an end ef song code (or repeat code if you wish the
effect to go on forever).
Many stand alone effects may want te use more than one tone generator channel.
e.g..4 special laser sap that momentarily requires all three tone generators,
ec, as is often the case, & white noise effect of particular character that
requires the noise channel shift rate to be modified by channel three (see TI
data sheets). In these cases, the effect's routine will have to modify data in
several data areas whenever called. The song data sreas used by such effects
are subject to the normal priority structure. I.g., & you wish @ twe channel
effect to temporarily overwtite the harmony and bass lines of & repeating song.
the effect must have been assigned two data areas of higher priority tordinally
later in the block of song date ereas). If it is not necessary to maintain any
wnderiying songs, sn effect can share Gata srecs te conserve RAM space, with
the understanding that, as usual, songs oF sounds that share the same song date
area truncate each other. A multi-channel effect (a chord note, szy) may be
included as a note within a song, dvt, again, the song data area prierity
structure determines what will finally be heard.
Providing for & typical geme's sound generation neeés might require eight song
data areas. four for an underlying, repeating song(s) (three areas for the
three tone generators and one for the noise generator used for percussion
notes), and four for higher priority. occasional sound effects (which would
temporarily overwrite the repeating songs, but truncate each other).
e Pseudo code listings of main routines
‘The following two pages contain pseudo code descriptions of most of the O/S
sound routines. Some computational details are not shown, but all jumps.
calls, returns, pushes and pops are LUsted.
Terzinology:
=" is used as the essignzent statement, and “(rz)” means the contents of the
memory location pointed to by Ez. where “xx” is KL, IZ, etc.
The structure of each description is es follows:
228 name of routine ***
the value expected for passed parameters at any)
pseudo code description
of the routine, uninterrupted
by blank lines
RET