Skip to content

Catalog

Everything collectors track, in one database: games, hardware, ADAM software, the Library and memorabilia.

Your browser is older than this site is made for, so some colors and layouts may look wrong. Everything still works; for the best view, update it (Safari 16.4, Chrome or Edge 111, Firefox 121 or newer).
Books & Magazines Library

ColecoVision Programmer's Manual

A scan, 451 pages. Download the PDF

Opening the page… If it does not appear, open the PDF instead (the page reader needs JavaScript and a recent browser).

Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS' MANUAL Page 26 SYX+7: LD HL, BAVE_s_SONCNO SIT 7,00) JR NZ,NOT_PASS_1 SIT 7,q sto prevent further passes thru inits wee simitialize bytes within the data area here RIT ite LOAD_NEXT_NOTE NOT_PASS_1: .... scode for pass 2 or greater starts here PRIORITY UPDATE ~ After calling SFX + 0 and SFX + 7, LOAD _NEXT_NOTE will return te PROCESS _DATA_AREA, which checks to see if loading a new note has caused a change in either the channel used by the song (this happens with noise notes within a musical song) or the song number. If a change has occured, UPLCH_OATA_PTRS will be called, which updates the data pointers on the basis of Priority within the Block of song data areas (see description of this routine in the preceeding “UTILITIES” section). Since a special effect note will cause a change in the song number (from whatever it was to 62), UP_CH_DATA_PTRS will always be called whenever an effect note is loaded. SECOND PASS OR CREATER - The next time PROCESS DATA_AREA is called (from SND_MANAGER), which will be 16.?ms efter PLAY_SONCS has sent cut the effect’s initial data, it will detect the fact that an effect is using the song éate area (by seeing « SONCNO of 62) and will JUMP to SFX + 7, rather than calling the frequency and attenuation sweep routines as it would for a normal note. This will result in the first pass through the part of the body of the effect routine that actually does computation and adjusts the data values within the gata area. When the effect routine has completed its modifications to the data atea and performs a RET, control is transferred back to SND_MANACER, which then moves on to the next song date area to be processed. This process will be repeated every 16.7ms tntil the effect routine itself Gecides that it's over and takes action to load the next note in the song. WHEN AN EFFECT IS OVER ~ Prior to performing a RET, the effect routine must decide whether the effect note has finished. If it has, NEXT_NOTE_PTR within the data area must be set to the address of the nest note in the song and SONGNO must be restored to byte 0. This can be done by calling the 0/5 routine LEAVE_EFFECT which does this. The add¢ress of SAVE_z_NNP must be passed in HL and the address of SAVE_2_SONCNO must be passed in DE. Finally, the effect should JUMP te EFXOVER, a location within PROCESS DATA_AREA whith would nmorzally be reached once a note is over. The code there takes care of loading the next note in the song. Thus, the final code of each effect routine will look as follows: RET if effect not over LD HL, (SAVE_s_NNP) ;HL := addr next note in song LD DE, SAVE_s_SONCNO 7DE := addr saved song number CALL LEAVE_EFFECT jto restore them to bytes 0 = 2 in data ares JP EFXOVER jin PROCESS _DATA_AREA to load song's nest note The entire above described sequence is summarised in Figure 9. 8 A sound effect as a single sound A stand alone sound effect can be implemented within the previously mentioned structures simply By creating a2 single note song. The single note is the effect

Menu