Prev: 40873 Up: Map Next: 40937
40905: Paint room layout data entry's attributes, applying vertical mirror (room drawing)
Used by the routine at 39047.
See also analogous routine at 41141 (RLE terrain interaction data painting)
Input
HL Points to entry in lookup table for RLE attribute data (room layout graphics) at 60487
Output
B y-coordinate of graphic's top
C x-coordinate of graphic's right
40905 PUSH HL Store HL (current entry in lookup table for RLE attribute data)
40906 LD HL,23408 Modify instruction at 40983 to load x-coordinate of graphic's left edge into A...
40909 LD (40984),HL ...i.e. set end x-coordinate for painting right-to-left
40912 LD HL,41004 Modify instruction at 40987 to jump to 41004...
40915 LD (40988),HL ...i.e. advance HL down one character row in attribute file
40918 LD A,43 Modify instruction at 40990 with opcode 43 (DEC HL)...
40920 LD (40990),A ...
40923 POP HL Restore HL (current entry in lookup table for RLE attribute data)
40924 CALL 41035 Store coordinates of area to be coloured and point IX at RLE attribute data
40927 LD A,(23410) Load C with x-coordinate of graphic's right edge...
40930 LD C,A ...
40931 LD A,(23409) Load B with y-coordinate of graphic's top edge...
40934 LD B,A ...
40935 JR 40963 Jump to attribute painting routine
Prev: 40873 Up: Map Next: 40937