Prev: 29082 Up: Map Next: 29142
29110: Paint room layout data entry's terrain interaction parameters, applying horizontal mirror (room drawing)
Used by the routine at 28070.
See also analogous routine at 28874 (RLE attribute data painting)
Input
HL Points to entry in lookup table for RLE terrain interaction data (room layout graphics) (at 51997)
Output
B y-coordinate of graphic's bottom
C x-coordinate of graphic's left
29110 PUSH HL Store HL (current entry in lookup table for RLE terrain interaction data)
29111 LD HL,23495 Modify instruction at 29220 to load x-coordinate of graphic's right edge into A...
29114 LD (29221),HL ...i.e. set end x-coordinate for painting left-to-right
29117 LD HL,29262 Modify instruction at 29224 to jump to 29262...
29120 LD (29225),HL ...i.e. advance HL up one character row in terrain interaction data table at 24064
29123 LD A,35 Modify instruction at 29227 with opcode 35 (INC HL)...
29125 LD (29227),A ...
29128 POP HL Restore HL (current entry in lookup table for RLE terrain interaction data)
29129 CALL 29036 Store coordinates of area to be coloured and point IX at RLE terrain interaction data
29132 LD A,(23493) Load C with x-coordinate of graphic's left edge...
29135 LD C,A ...
29136 LD A,(23496) Load B with y-coordinate of graphic's bottom edge...
29139 LD B,A ...
29140 JR 29200 Jump to terrain interaction data painting routine
Prev: 29082 Up: Map Next: 29142