Unused |
Prev: 40664 | Up: Map | Next: 40752 |
This is a room drawing routine. It reads start coordinates, repeat count and UDG code and prints a run of characters.
|
||||
40729 | CALL 40832 | Move virtual bitmap cursor to coordinates specified in layout data | ||
40732 | LD B,(HL) | Load repeat count into B... | ||
40733 | INC HL | ...and advance HL to next parameter | ||
40734 | LD A,(HL) | Load UDG code to print into A... | ||
40735 | INC HL | ...and advance HL to next parameter | ||
40736 | PUSH HL | Store HL (current position in room layout data) | ||
40737 | PUSH BC | Store BC (B = remaining number of UDGs to print) | ||
40738 | PUSH AF | Store AF (A = UDG code to print) | ||
40739 | PUSH HL | Store HL (current position in room layout data) | ||
40740 | CALL 63005 | Print text/graphic character in A and advance bitmap virtual text cursor | ||
40743 | POP HL | Restore HL (current position in room layout data) | ||
40744 | POP AF | Restore AF (A = UDG code to print) | ||
40745 | POP BC | Restore BC (B = remaining number of UDGs to print) | ||
40746 | DJNZ 40737 | Decrease remaining number of UDGs to print and loop back to 40737 | ||
40748 | POP HL | Restore HL (current position in room layout data) | ||
40749 | JP 38977 | Jump back to 38977 for next byte of room layout data |
Prev: 40664 | Up: Map | Next: 40752 |