Prev: 686E Up: Map Next: 68D7
68C3: Print Menu Rows
Used by the routine at Handle_Menu.
Prints B rows from the table at HL.
Input
HL Menu table pointer
B Row counter
Print_Menu_Rows 68C3 PUSH BC Stash the row counter and table pointer on the stack.
68C4 PUSH HL
68C5 LD E,(HL) Fetch the screen address.
68C6 INC HL
68C7 LD D,(HL)
68C8 INC HL
68C9 LD C,$10 Set the character counter to 10 in C.
68CB CALL Print_Double_Height Call Print_Double_Height.
68CE POP HL Restore the table pointer from the stack.
68CF LD DE,$0012 Advance the table pointer by 12.
68D2 ADD HL,DE
68D3 POP BC Restore the row counter from the stack.
68D4 DJNZ Print_Menu_Rows Decrease the row counter by one and loop back to Print_Menu_Rows until all rows are printed.
68D6 RET Return.
Prev: 686E Up: Map Next: 68D7