![]() |
Routines |
| Prev: F466 | Up: Map | Next: F4A8 |
|
Used by the routine at JumpTable_DrawBox.
Draws a box of character C8.
|
||||
| Draw_Box | F48B | CALL Next_PrintCell | Call Next_PrintCell. | |
| F48E | XOR A | Return if the width is zero. | ||
| F48F | CP E | |||
| F490 | RET Z | |||
| F491 | CP D | Return if the height is zero. | ||
| F492 | RET Z | |||
| Draw_Box_Target | F493 | PUSH BC | Stash the print position on the stack. | |
| F494 | CALL Set_PrintPosition | Call Set_PrintPosition. | ||
| F497 | LD B,E | Copy the remaining width into B. | ||
| Draw_Box_Target2 | F498 | LD A,$C8 | Print a C8 tile. | |
| F49A | CALL Print_Character | |||
| F49D | CALL Write_Tile | Call Write_Tile. | ||
| F4A0 | DJNZ Draw_Box_Target2 | Decrease the width and loop back to Draw_Box_Target2 until this row is drawn. | ||
| F4A2 | POP BC | Restore the print position from the stack. | ||
| F4A3 | DEC D | Return if every row is drawn. | ||
| F4A4 | RET Z | |||
| F4A5 | DEC B | Move up one row. | ||
| F4A6 | JR Draw_Box_Target | Jump to Draw_Box_Target. | ||
| Prev: F466 | Up: Map | Next: F4A8 |