Prev: 41059 Up: Map Next: 41109
41081: Paint room layout data entry's terrain interaction parameters, applying horizontal and vertical mirrors (room drawing)
Used by the routine at 39158.
See also analogous routine at 40845 (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 bottom
C x-coordinate of graphic's right
41081 PUSH HL Store HL (current entry in lookup table for RLE terrain interaction data)
41082 LD HL,23408 Modify instruction at 41219 to load x-coordinate of graphic's left edge into A...
41085 LD (41220),HL ...i.e. set end x-coordinate for painting right-to-left
41088 LD HL,41261 Modify instruction at 41223 to jump to 41261...
41091 LD (41224),HL ...i.e. advance HL up one character row in terrain interaction data table at 23808
41094 LD A,43 Modify instruction at 41226 with opcode 43 (DEC HL)...
41096 LD (41226),A ...
41099 POP HL Restore HL (current entry in lookup table for RLE terrain interaction data)
41100 CALL 41035 Store coordinates of area to be painted and point IX at RLE terrain interaction data
41103 LD BC,(23410) Load BC with coordinates of graphic's bottom-right
41107 JR 41199 Jump to terrain interaction parameter painting routine
Prev: 41059 Up: Map Next: 41109