![]() |
Routines |
| Prev: C83F | Up: Map | Next: C898 |
|
Used by the routine at COLOUR_WALL.
Writes the colour, with the play area's paper this turn (LAST_FLASH) mixed in, into two neighbouring cells of each of B rows of the attribute buffer, 24 bytes a row. COLOUR_WALL colours the buildings' walls with it; running a strip down to the bottom row of the buffer writes one byte beyond it (ATTR_SPILL).
|
||||||||||||
| COLOUR_STRIP | C889 | LD E,A | the colour with this turn's paper | |||||||||
| C88A | LD A,(LAST_FLASH) | |||||||||||
| C88D | OR E | |||||||||||
| C88E | LD DE,$0017 | two cells a row, B rows | ||||||||||
| COLOUR_STRIP_0 | C891 | LD (HL),A | ||||||||||
| C892 | INC HL | |||||||||||
| C893 | LD (HL),A | |||||||||||
| C894 | ADD HL,DE | |||||||||||
| C895 | DJNZ COLOUR_STRIP_0 | |||||||||||
| C897 | RET | |||||||||||
| Prev: C83F | Up: Map | Next: C898 |