Prev: 28938 Up: Map Next: 29060
29036: Store coordinates of area to be coloured and point IX at RLE attribute (or terrain interaction) data (room drawing)
Used by the routines at 28846, 28874, 28906, 28938, 29082, 29110, 29142 and 29174.
Input
HL Pointer to entry in lookup table for attribute data or terrain interaction data
Output
IX Points to start of RLE attribute data
29036 LD BC,(23493) Load BC with x- and y-coordinates (top-left) defined in current room layout data entry
29040 LD A,(HL) Load width as defined in attribute lookup data into A...
29041 ADD A,C ...add to x-coordinate...
29042 DEC A ...subtract one to get x-coordinate of right of graphic...
29043 LD (23495),A ...and store at 23495
29046 INC HL Advance HL to height value in attribute lookup data...
29047 LD A,(HL) ...load into A...
29048 ADD A,B ...add to y-coordinate...
29049 LD (23496),A ...and store at 23496
29052 INC HL Advance HL to address of attribute data...
29053 CALL 55735 ...load this address into HL...
29056 PUSH HL ...and copy the address from HL to IX...
29057 POP IX ...
29059 RET Return
Prev: 28938 Up: Map Next: 29060