![]() |
Routines |
| Prev: 44522 | Up: Map | Next: 44572 |
|
Used by the routine at DrawSectorMap.
Sets the attributes of a block of two by two characters.
|
||||||||||
| ColourSectorSquare | 44557 | LD HL,22528 | Point HL at the attribute file... | |||||||
| 44560 | ADD HL,BC | ...and add the offset. | ||||||||
| 44561 | LD (HL),A | Colour the top left character... | ||||||||
| 44562 | INC L | ...move to the right... | ||||||||
| 44563 | LD (HL),A | ...and colour the top right character. | ||||||||
| 44564 | LD DE,31 | Use an offset of 31... | ||||||||
| 44567 | ADD HL,DE | ...to move to the character on the left of the next row. | ||||||||
| 44568 | LD (HL),A | Colour the bottom left character... | ||||||||
| 44569 | INC L | ...move to the right... | ||||||||
| 44570 | LD (HL),A | ...and colour the bottom right character. | ||||||||
| 44571 | RET | Return. | ||||||||
| Prev: 44522 | Up: Map | Next: 44572 |