Text of this page, read by machine (may contain mistakes)
FIGURE 3
LST_OF_SND_ADDRS
Description: LST_OF_SND_ADDRS is a list of the starting addresses of each
Song's date area and note list. They ere used by JUKE_BOX as source (note
list) and destination (song data area) pointers. Each song's entries are
stored as follows:
Byte 1: LSB af the address of the start cf that song's not® list
Byte 2: MSB of the address of the start of that song's acte list
Byte 3: LSB of the address of the start of that song's data aree
Byte 4: MSB of the address of the start of that song's data ares
The beginning address of LST_OF_SWD_ADDRS is etored in & dedicated CPU RAM 16
bit word, PTR_TO_LST_OF_SND_ADDRS (xxexexH), allowing the cartridge prograseer to
place LST_OF_SND_ADDRS wherever desired.
MOTE: In other data structures, six bits are allocated for the song nusber
(SONGNO). However, song numbers 0, 62, and 63 are used as special indicators,
leaving song numbers 1 - 61 available. Therefore, the first entry in
AST_OF_SND_ADDRS is for song number i.
Length in bytes: 4 2 total nusber of songs
Location: CART ROM
Beginning eddress: pointed te by CPU RAM word SLST_OF_SND_ADDRS
(aeexerk)
i Contents Hy
Offset | B7 Bé BS B4 BI B2 Bi BO | Description
peer eee nn nnnnnnn--- of starting adr of the note list for
| song
aaa------ pusher 1
momen ene n ene eennnennnn---—= of starting adr of the note list for
i ! mSB 1 song
poorer en mo cc conocoocceso== nusber i
rrr enn emer en enennnnn----= of starting adr of the data area for
2 t LsB 1 song
mom em reese eeesencennaeeee-—= RuBber 2
— amine ef starting adr af the data area for
3 ! mSB 1 song
--- —— -- musber 2
mo ceo oe cnescoesooooosso—= —- of starting adr of the note list for
4 1 s3 1 song
momen mene enc nennnnnanen--- nusber 2
ete...
Se ee - of starting adr of the data ares for
42 H mSB { song
prc re tenn eeeneenseecern--- nusber mn (mn © total musber of songs)