Prev: 41390 Up: Map Next: 41409
41394: Play Music Until Key Pressed
Used by the routine at ShowTitleMenu.
Plays a piece of music, until it ends or a key is pressed.
Input
DE The address of the music
PlayMusic_WaitKey 41394 XOR A Select all of the keyboard rows.
41395 CALL ReadKeyboard Read the keyboard.
41398 RET NZ Return if a key is being pressed.
41399 LD A,(DE) Fetch the next byte of the music.
41400 CP 255 Jump to PlayMusic_Return if the music has ended.
41402 JR Z,PlayMusic_Return
41404 CALL PlayNote Play the note.
41407 JR PlayMusic_WaitKey Jump back for the next note.
View the equivalent code in;
Prev: 41390 Up: Map Next: 41409