![]() |
Routines |
| Prev: CA2B | Up: Map | Next: CA9D |
|
Used by the routine at StartGame.
Draws the border around the playing area, in yellow on red.
|
||||||
|
Set the colour and the font.
|
||||||
| DrawPlayingAreaBorder | CA55 | LD A,$16 | Use yellow ink on red paper (attribute 16), and keep it in AF'. | |||
| CA57 | EX AF,AF' | |||||
| CA58 | LD HL,$BB0A | Set the font to the characters of the border. | ||||
| CA5B | LD ($BBAC),HL | |||||
| CA5E | LD DE,$CAE5 | Point at the characters of the border. | ||||
|
Draw the four corners.
|
||||||
| CA61 | LD HL,$4005 | Draw the top left corner at 4005 (in the screen buffer). | ||||
| CA64 | CALL PrintCharacterBlock | |||||
| CA67 | LD HL,$401D | Draw the top right corner at 401D (in the screen buffer). | ||||
| CA6A | CALL PrintCharacterBlock | |||||
| CA6D | LD HL,$5005 | Draw the bottom left corner at 5005 (in the screen buffer). | ||||
| CA70 | CALL PrintCharacterBlock | |||||
| CA73 | LD HL,$501D | Draw the bottom right corner at 501D (in the screen buffer). | ||||
| CA76 | CALL PrintCharacterBlock | |||||
|
Draw the top and bottom edges.
|
||||||
| CA79 | LD HL,$4007 | Draw the top edge, eleven blocks long, at 4007 (in the screen buffer). | ||||
| CA7C | LD B,$0B | |||||
| CA7E | CALL DrawHorizontalEdge | |||||
| CA81 | LD HL,$5007 | Draw the bottom edge, eleven blocks long, at 5007 (in the screen buffer). | ||||
| CA84 | LD B,$0B | |||||
| CA86 | CALL DrawHorizontalEdge | |||||
|
Draw the sides.
|
||||||
| CA89 | INC DE | Point at the characters of the sides. | ||||
| CA8A | INC DE | |||||
| CA8B | INC DE | |||||
| CA8C | INC DE | |||||
| CA8D | LD HL,$4045 | Draw the left edge, seven blocks long, at 4045 (in the screen buffer). | ||||
| CA90 | LD B,$07 | |||||
| CA92 | CALL DrawVerticalEdge | |||||
| CA95 | LD HL,$405D | Draw the right edge, seven blocks long, at 405D (in the screen buffer). | ||||
| CA98 | LD B,$07 | |||||
| CA9A | JP DrawVerticalEdge | |||||
| Prev: CA2B | Up: Map | Next: CA9D |