Routines |
Prev: E475 | Up: Map | Next: E4A0 |
|
||||||||
ColouriseHome | E48D | LD HL,$5821 | HL=5821 (attribute buffer location). | |||||
E490 | LD B,$02 | Set a counter in B for 02 rows. | ||||||
ColouriseHome_Loop | E492 | PUSH BC | Stash the row counter on the stack. | |||||
E493 | LD B,$03 | Set a counter in B for 03 character blocks. | ||||||
Home_WriteAttribute | E495 | LD (HL),A | Write the value stored in A to the address held by the attribute buffer pointer. | |||||
E496 | INC HL | Increment the attribute buffer pointer by one. | ||||||
E497 | DJNZ Home_WriteAttribute | Decrease the character block counter by one and loop back to Home_WriteAttribute until all three byte values have been written. | ||||||
E499 | LD HL,$5841 | HL=5841 (attribute buffer location). | ||||||
E49C | POP BC | Restore the row counter from the stack. | ||||||
E49D | DJNZ ColouriseHome_Loop | Decrease the row counter by one and loop back to ColouriseHome_Loop until all the rows have been updated. | ||||||
E49F | RET | Return. |
Prev: E475 | Up: Map | Next: E4A0 |