Prev: 32977 Up: Map Next: 33038
33021: Queue Menu Tune
Picks the 1UP or 2UP jingle from Player_Tune_Table and queues it.
Input
C Game options from GameOptions
Pick the 1UP or 2UP jingle and queue it.
QueueMenuTune 33021 LD DE,47780 Set the tune table pointer to Player_Tune_Table.
33024 LD A,C Fetch the game options.
33025 RLCA Move the player-count bit into bit 1.
33026 AND %00000010 Keep only bit 1.
33028 LD L,A Create an offset using the player-count bit.
33029 LD H,0
33031 ADD HL,DE Point HL at the matching entry in Player_Tune_Table.
33032 LD E,(HL) Fetch the 1UP or 2UP jingle address.
33033 INC HL
33034 LD D,(HL)
33035 JP QueueTune Jump to QueueTune.
Prev: 32977 Up: Map Next: 33038