Prev: 45675 Up: Map Next: 45727
45682: Handler: Hall Of Fame
Used by the routine at HallOfFameCheck.
Called from the game selection menu (see HallOfFameCheck). If the options have been changed then the counter is set again. Otherwise the counter in HallOfFame_Timer is decreased, and when it reaches zero the hall of fame is shown (see HallOfFame). The hall of fame stays on screen until a key is pressed, or until about twelve times 65535 loops of the delay have passed. The game selection menu is then drawn again.
Before After HandlerHallOfFame
handler-hall-of-fame-before handler-hall-of-fame-after
Input
F Zero flag set if the options have not changed
HandlerHallOfFame 45682 JR NZ,InitialiseHallOfFameTimer Jump to InitialiseHallOfFameTimer to restart the hall of fame timer if the options have been changed.
45684 LD HL,(38584) Decrease the hall of fame timer in HallOfFame_Timer by one.
45687 DEC HL
45688 LD (38584),HL
45691 LD A,H Return unless the hall of fame timer has run out.
45692 OR L
45693 RET NZ
This entry point is used by the routine at GameOver_ControllerRestart.
HandlerHallOfFame_Show 45694 CALL HallOfFame Show the hall of fame.
45697 LD B,12 Set the number of waits in B to 12.
45699 LD HL,0 Set the wait counter in HL to zero.
Wait for a key to be pressed or for the time to run out.
HandlerHallOfFame_Wait 45702 XOR A Select every row of the keyboard.
45703 OUT (253),A Select the keyboard rows (this does nothing on a 48K).
45705 IN A,(254) Read the keyboard.
45707 CPL Flip the bits.
45708 AND %00011111 Keep only bits 0-4.
45710 JR NZ,HandlerHallOfFame_Finish Jump to HandlerHallOfFame_Finish if a key has been pressed.
45712 DEC HL Decrease the wait counter by one.
45713 LD A,H Loop back to HandlerHallOfFame_Wait until the wait counter is zero.
45714 OR L
45715 JR NZ,HandlerHallOfFame_Wait
45717 DJNZ HandlerHallOfFame_Wait Decrease the number of waits by one and loop back to HandlerHallOfFame_Wait until all of the waits are done.
HandlerHallOfFame_Finish 45719 CALL HallOfFame_Clear Clear the panel.
45722 CALL GameMenu Print the game selection menu.
45725 JR InitialiseHallOfFameTimer Jump to InitialiseHallOfFameTimer to restart the hall of fame timer.
View the equivalent code in;
Prev: 45675 Up: Map Next: 45727