Prev: 53938 Up: Map Next: 54130
54102: Colour Wall Column
Used by the routine at DrawWallStrips.
Sets the attributes of a column of AttributeBuffer from the strip to the bottom of the view. The colour is bright green, cyan, yellow or white, from the lowest two bits of WallTile.
Input
D The vertical position of the strip
E The horizontal position of the strip
Return unless the strip is in the view.
ColourWallColumn 54102 LD A,D Return if it is below the bottom of the view.
54103 SUB 191
54105 RET NC
54106 NEG Make the number of pixel rows to the bottom.
54108 SRL A Divide it by eight.
54110 SRL A
54112 SRL A
54114 RET Z Return if there are none.
Colour the column.
54115 LD B,A Set the number of character rows.
54116 EX DE,HL Put the position in HL.
54117 CALL CalculateAttributeAddress Call CalculateAttributeAddress.
54120 LD A,(48064) Fetch WallTile.
54123 AND %00000011 Keep the lowest two bits.
54125 OR %01000100 Make the colour bright green, cyan, yellow or white.
54127 JP ColourAttributeColumn Jump to ColourAttributeColumn.
Prev: 53938 Up: Map Next: 54130