![]() |
Routines |
| Prev: 58986 | Up: Map | Next: 59029 |
|
||||||||
| ColouriseHome | 59010 | LD HL,22561 | HL=22561 (attribute buffer location). | |||||
| 59013 | LD B,2 | Set a counter in B for 2 rows. | ||||||
| ColouriseHome_Loop | 59015 | PUSH BC | Stash the row counter on the stack. | |||||
| 59016 | LD B,3 | Set a counter in B for 3 character blocks. | ||||||
| Home_WriteAttribute | 59018 | LD (HL),A | Write the value stored in A to the address held by the attribute buffer pointer. | |||||
| 59019 | INC HL | Increment the attribute buffer pointer by one. | ||||||
| 59020 | DJNZ Home_WriteAttribute | Decrease the character block counter by one and loop back to Home_WriteAttribute until all three byte values have been written. | ||||||
| 59022 | LD HL,22593 | HL=22593 (attribute buffer location). | ||||||
| 59025 | POP BC | Restore the row counter from the stack. | ||||||
| 59026 | DJNZ ColouriseHome_Loop | Decrease the row counter by one and loop back to ColouriseHome_Loop until all the rows have been updated. | ||||||
| 59028 | RET | Return. | ||||||
| Prev: 58986 | Up: Map | Next: 59029 |