![]() |
Routines |
| Prev: DA24 | Up: Map | Next: DA7C |
|
Used by the routines at 89C0 and Handler_Messaging.
|
||||||||
| ColouriseBackground | DA6D | LD HL,($6DC2) | Load HL with MessagingArea. | |||||
| DA70 | PUSH HL | Stash this address on the stack. | ||||||
| DA71 | LD B,$40 | Set a counter of 40 which will set two rows of character blocks (messaging is double-height, so this is a single message). | ||||||
| DA73 | LD A,($6DA5) | Load A with CurrentTextAttribute. | ||||||
| ColouriseBackground_Loop | DA76 | LD (HL),A | Write A to the address held by the attribute buffer pointer. | |||||
| DA77 | INC HL | Increment the attribute buffer pointer by one. | ||||||
| DA78 | DJNZ ColouriseBackground_Loop | Decrease the counter by one and keep looping back to ColouriseBackground_Loop until the counter is zero. | ||||||
| DA7A | POP HL | Restore HL from the stack. | ||||||
| DA7B | RET | Return. | ||||||
| Prev: DA24 | Up: Map | Next: DA7C |