Prev: 28716 Up: Map Next: 28753
28730: Room drawing: (255) Read start coordinates, repeat count and UDG code and print run of characters
Used by the routine at 27762.
28730 CALL 28833 Move virtual bitmap cursor to coordinates specified in layout data
28733 LD B,(HL) Load repeat count into B...
28734 INC HL ...and advance HL to next parameter
28735 LD A,(HL) Load UDG code to print into A...
28736 INC HL ...and advance HL to next parameter
28737 PUSH HL Store HL (current position in room layout data)
28738 PUSH BC Store BC (B = remaining number of UDGs to print)
28739 PUSH AF Store AF (A = UDG code to print)
28740 PUSH HL Store HL (current position in room layout data)
28741 CALL 54097 Print text/graphic character in A and advance bitmap virtual text cursor
28744 POP HL Restore HL (current position in room layout data)
28745 POP AF Restore AF (A = UDG code to print)
28746 POP BC Restore BC (B = remaining number of UDGs to print)
28747 DJNZ 28738 Decrease remaining number of UDGs to print and loop back to 28738
28749 POP HL Restore HL (current position in room layout data)
28750 JP 27894 Jump back to 27894 for next byte of room layout data
Prev: 28716 Up: Map Next: 28753