Prev: 51263 Up: Map Next: 51352
51337: Colour Attribute Column
Used by the routine at ColourWallColumn.
Sets a column of two attributes, down a number of rows of the attribute buffer.
Input
A Attribute
B Number of rows
HL Address in the attribute buffer
ColourAttributeColumn 51337 LD E,A Add the flash colour used in the last frame (PreviousFlashColour) to the attribute.
51338 LD A,(48124)
51341 OR E
51342 LD DE,23 Set the distance to the first attribute in the next row (24 minus one).
ColourAttributeColumn_Loop 51345 LD (HL),A Set two attributes and move down a row, and loop back until all of the rows have been coloured.
51346 INC HL
51347 LD (HL),A
51348 ADD HL,DE
51349 DJNZ ColourAttributeColumn_Loop
51351 RET Return.
Prev: 51263 Up: Map Next: 51352