Prev: 41109 Up: Map Next: 41173
41141: Paint room layout data entry's terrain interaction parameters, applying vertical mirror (room drawing)
Used by the routine at 39158.
See also analogous routine at 40905 (RLE attribute data painting)
Input
HL Points to entry in lookup table for RLE terrain interaction data (room layout graphics) at 60889
Output
B y-coordinate of graphic's top
C x-coordinate of graphic's right
41141 PUSH HL Store HL (current entry in lookup table for RLE terrain interaction data)
41142 LD HL,23408 Modify instruction at 41219 to load x-coordinate of graphic's left edge into A...
41145 LD (41220),HL ...i.e. set end x-coordinate for painting right-to-left
41148 LD HL,41240 Modify instruction at 41223 to jump to 41240...
41151 LD (41224),HL ...i.e. advance HL down one character row in terrain interaction data table at 23808
41154 LD A,43 Modify instruction at 41226 with opcode 43 (DEC HL)...
41156 LD (41226),A ...
41159 POP HL Restore HL (current entry in lookup table for RLE terrain interaction data)
41160 CALL 41035 Store coordinates of area to be coloured and point IX at RLE terrain interaction data
41163 LD A,(23410) Load C with x-coordinate of graphic's right edge...
41166 LD C,A ...
41167 LD A,(23409) Load B with y-coordinate of graphic's top edge...
41170 LD B,A ...
41171 JR 41199 Jump to terrain interaction data painting routine
Prev: 41109 Up: Map Next: 41173