Prev: 40937 Up: Map Next: 41059
41035: Store coordinates of area to be coloured and point IX at RLE attribute (or terrain interaction) data (room drawing)
Used by the routines at 40845, 40873, 40905, 40937, 41081, 41109, 41141 and 41173.
Input
HL Pointer to entry in lookup table for attribute data or terrain interaction data
Output
IX Points to start of RLE attribute data
41035 LD BC,(23408) Load BC with x- and y-coordinates (top-left) defined in current room layout data entry
41039 LD A,(HL) Load width as defined in attribute lookup data into A...
41040 ADD A,C ...add to x-coordinate...
41041 DEC A ...subtract one to get x-coordinate of right of graphic...
41042 LD (23410),A ...and store at 23410
41045 INC HL Advance HL to height value in attribute lookup data...
41046 LD A,(HL) ...load into A...
41047 ADD A,B ...add to y-coordinate...
41048 LD (23411),A ...and store at 23411
41051 INC HL Advance HL to address of attribute data...
41052 CALL 64632 ...load this address into HL...
41055 PUSH HL ...and copy the address from HL to IX...
41056 POP IX ...
41058 RET Return
Prev: 40937 Up: Map Next: 41059