Prev: 48231 Up: Map Next: 48494
48465: Play Music (break on keypress)
Used by the routine at HandlerGameMenu.
PlayAudio_WaitKey 48465 DI Disable interrupts.
PlayAudio_WaitKey_Loop 48466 XOR A
48467 OUT (253),A
48469 IN A,(254)
48471 CPL Flip the bits.
48472 AND %00011111 Keep only bits 0-4.
48474 JR Z,PlayAudio_WaitKey_Process If no keys were pressed, jump to PlayAudio_WaitKey_Process.
48476 LD A,(38546) A=GameOptions.
48479 INC SP Increments the stack pointer by two.
48480 INC SP
48481 JP HandlerGameMenu_1 Jump to HandlerGameMenu_1.
This is identical to PlayAudio except it also handles exiting on a keypress.
PlayAudio_WaitKey_Process 48484 LD A,(DE) Fetch the next byte of music data.
48485 CP 255 If this is 255 (the terminator) then jump to PlayAudio_Return.
48487 JR Z,PlayAudio_Return
48489 CALL PlayAudio_Process Call PlayAudio_Process.
48492 JR PlayAudio_WaitKey_Loop Jump to PlayAudio_WaitKey_Loop.
Prev: 48231 Up: Map Next: 48494