Prev: 28846 Up: Map Next: 28906
28874: Paint room layout data entry's attributes, applying horizontal mirror (room drawing)
Used by the routine at 27951.
See also analogous routine at 29110 (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 left
28874 PUSH HL Store HL (current entry in lookup table for RLE attribute data)
28875 LD HL,23495 Modify instruction at 28984 to load x-coordinate of graphic's right edge into A...
28878 LD (28985),HL ...i.e. set end x-coordinate for painting left-to-right
28881 LD HL,29026 Modify instruction at 28988 to jump to 29026...
28884 LD (28989),HL ...i.e. advance HL up one character row in attribute file
28887 LD A,35 Modify instruction at 28991 with opcode 35 (INC HL)...
28889 LD (28991),A ...
28892 POP HL Restore HL (current entry in lookup table for RLE attribute data)
28893 CALL 29036 Store coordinates of area to be coloured and point IX at RLE attribute data
28896 LD A,(23493) Load C with x-coordinate of graphic's left edge...
28899 LD C,A ...
28900 LD A,(23496) Load B with y-coordinate of graphic's bottom edge...
28903 LD B,A ...
28904 JR 28964 Jump to attribute painting routine
Prev: 28846 Up: Map Next: 28906