Prev: 62566 Up: Map Next: 62632
62603: Draw Box
Used by the routine at JumpTable_DrawBox.
Draws a box of character 200.
Draw_Box 62603 CALL Next_PrintCell Call Next_PrintCell.
62606 XOR A Return if the width is zero.
62607 CP E
62608 RET Z
62609 CP D Return if the height is zero.
62610 RET Z
Draw_Box_Target 62611 PUSH BC Stash the print position on the stack.
62612 CALL Set_PrintPosition Call Set_PrintPosition.
62615 LD B,E Copy the remaining width into B.
Draw_Box_Target2 62616 LD A,200 Print a 200 tile.
62618 CALL Print_Character
62621 CALL Write_Tile Call Write_Tile.
62624 DJNZ Draw_Box_Target2 Decrease the width and loop back to Draw_Box_Target2 until this row is drawn.
62626 POP BC Restore the print position from the stack.
62627 DEC D Return if every row is drawn.
62628 RET Z
62629 DEC B Move up one row.
62630 JR Draw_Box_Target Jump to Draw_Box_Target.
Prev: 62566 Up: Map Next: 62632