Prev: 28874 Up: Map Next: 28938
28906: Paint room layout data entry's attributes, applying vertical mirror (room drawing)
Used by the routine at 27951.
See also analogous routine at 29142 (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 top
C x-coordinate of graphic's right
28906 PUSH HL Store HL (current entry in lookup table for RLE attribute data)
28907 LD HL,23493 Modify instruction at 28984 to load x-coordinate of graphic's left edge into A...
28910 LD (28985),HL ...i.e. set end x-coordinate for painting right-to-left
28913 LD HL,29005 Modify instruction at 28988 to jump to 29005...
28916 LD (28989),HL ...i.e. advance HL down one character row in attribute file
28919 LD A,43 Modify instruction at 28991 with opcode 43 (DEC HL)...
28921 LD (28991),A ...
28924 POP HL Restore HL (current entry in lookup table for RLE attribute data)
28925 CALL 29036 Store coordinates of area to be coloured and point IX at RLE attribute data
28928 LD A,(23495) Load C with x-coordinate of graphic's right edge...
28931 LD C,A ...
28932 LD A,(23494) Load B with y-coordinate of graphic's top edge...
28935 LD B,A ...
28936 JR 28964 Jump to attribute painting routine
Prev: 28874 Up: Map Next: 28938