Prev: 28833 Up: Map Next: 28874
28846: Paint room layout data entry's attributes, applying horizontal and vertical mirrors (room drawing)
Used by the routine at 27951.
See also analogous routine at 29082 (RLE terrain interaction data painting)
Input
HL Points to entry in lookup table for RLE attribute data (room layout graphics) (at 51997)
Output
B y-coordinate of graphic's bottom
C x-coordinate of graphic's right
28846 PUSH HL Store HL (current entry in lookup table for RLE attribute data)
28847 LD HL,23493 Modify instruction at 28984 to load x-coordinate of graphic's left edge into A...
28850 LD (28985),HL ...i.e. set end x-coordinate for painting right-to-left
28853 LD HL,29026 Modify instruction at 28988 to jump to 29026...
28856 LD (28989),HL ...i.e. advance HL up one character row in attribute file
28859 LD A,43 Modify instruction at 28991 with opcode 43 (DEC HL)...
28861 LD (28991),A ...
28864 POP HL Restore HL (current entry in lookup table for RLE attribute data)
28865 CALL 29036 Store coordinates of area to be coloured and point IX at RLE attribute data
28868 LD BC,(23495) Load BC with coordinates of graphic's bottom-right
28872 JR 28964 Jump to attribute painting routine
Prev: 28833 Up: Map Next: 28874