Prev: 680F Up: Map Next: 686E
681A: Display Status
Used by the routine at Initialise_Game.
Draws the status panel and waits for ENTER, or a key from Scan_Abort.
Display_Status 681A CALL Clear_Work_Buffers Call Clear_Work_Buffers.
681D LD HL,$5888 Point HL at 5888 (attribute buffer).
6820 CALL Fill_Menu_Highlight Call Fill_Menu_Highlight.
6823 LD HL,$5908 Point HL at 5908 (attribute buffer).
6826 CALL Fill_Menu_Attributes Call Fill_Menu_Attributes.
6829 LD HL,$5948 Point HL at 5948 (attribute buffer).
682C CALL Fill_Menu_Attributes Call Fill_Menu_Attributes.
Print the game-over messages.
682F LD DE,$408B Set the screen address to 408B (screen buffer) in DE.
6832 LD HL,$6A48 Point HL at Messaging_Game_Over.
6835 LD C,$0A Set the character counter to 0A in C.
6837 CALL Print_Double_Height Call Print_Double_Height.
683A LD HL,$6A52 Point HL at Messaging_Play_Fire.
683D LD DE,$4808 Set the screen address to 4808 (screen buffer) in DE.
6840 LD C,$10 Set the character counter to 10 in C.
6842 CALL Print_Double_Height Call Print_Double_Height.
6845 LD HL,$6A62 Point HL at Messaging_Options_Enter.
6848 LD DE,$4848 Set the screen address to 4848 (screen buffer) in DE.
684B LD C,$10 Set the character counter to 10 in C.
684D CALL Print_Double_Height Call Print_Double_Height.
Wait 64 frames.
6850 LD B,$64 Set the frame counter to 64 in B.
Display_Status_Wait 6852 HALT Halt, and loop back to Display_Status_Wait until the frame counter is zero.
6853 DJNZ Display_Status_Wait
6855 LD A,($E1EE) Copy *Control_Choice to *Menu_Choice.
6858 LD ($EF89),A
Wait for ENTER, or a key from Scan_Abort.
Display_Status_Input 685B HALT Halt.
685C PUSH BC Stash the frame counter on the stack.
685D CALL Scan_Abort Call Scan_Abort.
6860 POP BC Restore the frame counter from the stack.
6861 RET C Return if an abort key is pressed.
6862 PUSH BC Stash the frame counter on the stack.
6863 LD BC,$BFFE Read from the keyboard;
Port Number Bit
0 1 2 3 4
BF ENTER L K J H
6866 IN A,(C)
6868 POP BC Restore the frame counter from the stack.
6869 RRA Jump to Handle_Menu if ENTER is pressed.
686A JR NC,Handle_Menu
686C DJNZ Display_Status_Input Decrease the frame counter by one and loop back to Display_Status_Input until it is zero.
Continue on to Handle_Menu.
Prev: 680F Up: Map Next: 686E