Routines |
Prev: 58485 | Up: Map | Next: 58528 |
|
||||||||
ColouriseHome | 58509 | LD HL,22561 | HL=22561 (attribute buffer location). | |||||
58512 | LD B,2 | Set a counter in B for 2 rows. | ||||||
ColouriseHome_Loop | 58514 | PUSH BC | Stash the row counter on the stack. | |||||
58515 | LD B,3 | Set a counter in B for 3 character blocks. | ||||||
Home_WriteAttribute | 58517 | LD (HL),A | Write the value stored in A to the address held by the attribute buffer pointer. | |||||
58518 | INC HL | Increment the attribute buffer pointer by one. | ||||||
58519 | DJNZ Home_WriteAttribute | Decrease the character block counter by one and loop back to Home_WriteAttribute until all three byte values have been written. | ||||||
58521 | LD HL,22593 | HL=22593 (attribute buffer location). | ||||||
58524 | POP BC | Restore the row counter from the stack. | ||||||
58525 | DJNZ ColouriseHome_Loop | Decrease the row counter by one and loop back to ColouriseHome_Loop until all the rows have been updated. | ||||||
58527 | RET | Return. |
Prev: 58485 | Up: Map | Next: 58528 |