Prev: 29060 Up: Map Next: 29110
29082: Paint room layout data entry's terrain interaction parameters, applying horizontal and vertical mirrors (room drawing)
Used by the routine at 28070.
See also analogous routine at 28846 (RLE attribute data painting)
Input
HL Points to entry in lookup table for RLE terrain interaction data (room layout graphics) (at 52397)
Output
B y-coordinate of graphic's bottom
C x-coordinate of graphic's right
29082 PUSH HL Store HL (current entry in lookup table for RLE terrain interaction data)
29083 LD HL,23493 Modify instruction at 29220 to load x-coordinate of graphic's left edge into A...
29086 LD (29221),HL ...i.e. set end x-coordinate for painting right-to-left
29089 LD HL,29262 Modify instruction at 28988 to jump to 29262...
29092 LD (29225),HL ...i.e. advance HL up one character row in terrain interaction data table at 24064
29095 LD A,43 Modify instruction at 29227 with opcode 43 (DEC HL)...
29097 LD (29227),A ...
29100 POP HL Restore HL (current entry in lookup table for RLE terrain interaction data)
29101 CALL 29036 Store coordinates of area to be painted and point IX at RLE terrain interaction data
29104 LD BC,(23495) Load BC with coordinates of graphic's bottom-right
29108 JR 29200 Jump to terrain interaction parameter painting routine
Prev: 29060 Up: Map Next: 29110