Prev: AC39 Up: Map Next: AD0B
AD00: Handler: Colourise 2x2
Write an attribute value to four attribute buffer locations.
Input
A The attribute value to write
HL The address in the attribute buffer to begin writing to
Handler_Colour2x2 AD00 LD (HL),A Write A to *HL.
Move one byte to the right.
AD01 INC L Increment L by one.
AD02 LD (HL),A Write A to *HL.
Move down one attribute row, less one byte, so the write sits under the first location.
AD03 LD BC,$001F HL=HL+001F.
AD06 ADD HL,BC
AD07 LD (HL),A Write A to *HL.
Move one byte to the right.
AD08 INC L Increment L by one.
AD09 LD (HL),A Write A to *HL.
AD0A RET Return.
Prev: AC39 Up: Map Next: AD0B