Prev: 28753 Up: Map Next: 28785
28766: Room drawing: (253) Draw a line
Used by the routine at 27762.
28766 INC HL Advance data pointer by three bytes...
28767 INC HL ...
28768 INC HL ...
28769 LD C,(HL) Load x-coordinate of start of line into C
28770 INC HL Advance HL to y-coordinate of start of line...
28771 LD B,(HL) ...and load into B
28772 INC HL Advance HL to x-coordinate of end of line...
28773 LD E,(HL) ...and load into E
28774 INC HL Advance HL to y-coordinate of end of line...
28775 LD D,(HL) ...and load into D
28776 INC HL Advance HL to start of next room layout data entry
28777 PUSH HL Store HL (current position in room layout data)
28778 CALL 36543 Draw a line from (C, B) to (E, D)
28781 POP HL Restore HL (current position in room layout data)
28782 JP 27894 Jump back to 27894 for next byte of room layout data
Prev: 28753 Up: Map Next: 28785