Prev: FC90 Up: Map Next: FCAB
FC9D: Decode Music Delay
Used by the routine at Play_MenuMusicTick.
Map a raw stream byte through the delay table at Table_MenuMusicDelay into a tone and duration pair returned in HL. The Reload_MusicStreamCursor entry reloads a cursor word and continues at Read_MusicStreamByte_Fetch.
Decode_MusicDelay FC9D LD A,(HL) Load the raw stream byte from HL.
FC9E ADD A,$0C Bias it by 0C for the table index.
FCA0 LD E,A Copy the index into E.
FCA1 LD D,$00 Clear D so DE holds the table offset.
FCA3 LD HL,$FD40 Point HL at Table_MenuMusicDelay.
FCA6 ADD HL,DE Index into the table.
FCA7 LD H,(HL) Fetch the delay high byte into H.
FCA8 LD L,$01 Load the delay low byte with 01.
FCAA RET Return.
Prev: FC90 Up: Map Next: FCAB