Prev: 64656 Up: Map Next: 64683
64669: 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 64669 LD A,(HL) Load the raw stream byte from HL.
64670 ADD A,12 Bias it by 12 for the table index.
64672 LD E,A Copy the index into E.
64673 LD D,0 Clear D so DE holds the table offset.
64675 LD HL,64832 Point HL at Table_MenuMusicDelay.
64678 ADD HL,DE Index into the table.
64679 LD H,(HL) Fetch the delay high byte into H.
64680 LD L,1 Load the delay low byte with 1.
64682 RET Return.
Prev: 64656 Up: Map Next: 64683