Prev: 62525 Up: Map Next: 62571
62548: Draw Menu Background
Used by the routine at MainMenu.
Black out the whole attribute file, then clear a 14×24 character window starting at 22537 (attribute buffer) for the main-menu / controls layout.
Fill the attribute file, then clear the menu window.
Draw_MenuBackground 62548 XOR A Clear A (black ink/paper), then call Set_BorderSpeakerState to fill the attribute file.
62549 CALL Set_BorderSpeakerState
62552 LD HL,22537 Point HL at the menu window top-left (22537 (attribute buffer)).
62555 LD DE,18 Load DE with the per-row skip (0018 bytes).
62558 LD C,24 Load C with 24 row counter.
Clear one attribute row of the 14×24 menu window.
Draw_MenuBackground_RowLoop 62560 LD B,14 Load B with 14 column counter.
Black out one attribute cell inside the menu window.
Draw_MenuBackground_ColLoop 62562 LD (HL),A Write black at HL. Advance one character. Loop across the row.
62563 INC HL
62564 DJNZ Draw_MenuBackground_ColLoop
62566 ADD HL,DE Step HL by the row skip in DE.
62567 DEC C Decrease the row counter.
62568 JR NZ,Draw_MenuBackground_RowLoop Jump to Draw_MenuBackground_RowLoop if more rows remain.
62570 RET Return.
Prev: 62525 Up: Map Next: 62571