![]() |
Routines |
| Prev: ADEA | Up: Map | Next: AE1C |
|
Used by the routine at DrawSectorMap.
Sets the attributes of a block of two by two characters.
|
||||||||||
| ColourSectorSquare | AE0D | LD HL,$5800 | Point HL at the attribute file... | |||||||
| AE10 | ADD HL,BC | ...and add the offset. | ||||||||
| AE11 | LD (HL),A | Colour the top left character... | ||||||||
| AE12 | INC L | ...move to the right... | ||||||||
| AE13 | LD (HL),A | ...and colour the top right character. | ||||||||
| AE14 | LD DE,$001F | Use an offset of 1F... | ||||||||
| AE17 | ADD HL,DE | ...to move to the character on the left of the next row. | ||||||||
| AE18 | LD (HL),A | Colour the bottom left character... | ||||||||
| AE19 | INC L | ...move to the right... | ||||||||
| AE1A | LD (HL),A | ...and colour the bottom right character. | ||||||||
| AE1B | RET | Return. | ||||||||
| Prev: ADEA | Up: Map | Next: AE1C |