Prev: E66A Up: Map Next: E695
E682: Colourise Home
Used by the routines at D352, Handler_HomeArrow and E396.
Input
A The attribute value to write
ColouriseHome E682 LD HL,$5821 HL=5821 (attribute buffer location).
E685 LD B,$02 Set a counter in B for 02 rows.
ColouriseHome_Loop E687 PUSH BC Stash the row counter on the stack.
E688 LD B,$03 Set a counter in B for 03 character blocks.
Home_WriteAttribute E68A LD (HL),A Write the value stored in A to the address held by the attribute buffer pointer.
E68B INC HL Increment the attribute buffer pointer by one.
E68C DJNZ Home_WriteAttribute Decrease the character block counter by one and loop back to Home_WriteAttribute until all three byte values have been written.
E68E LD HL,$5841 HL=5841 (attribute buffer location).
E691 POP BC Restore the row counter from the stack.
E692 DJNZ ColouriseHome_Loop Decrease the row counter by one and loop back to ColouriseHome_Loop until all the rows have been updated.
E694 RET Return.
Prev: E66A Up: Map Next: E695