![]() |
Routines |
| Prev: C0FE | Up: Map | Next: C128 |
|
Used by the routine at DrawDecorativeLine.
Blanks the screen before a new picture is drawn.
|
||||
| ClearScreen | C10F | LD A,$07 | Set border colour to WHITE. | |
| C111 | OUT ($FE),A | |||
| C113 | LD HL,$4000 | Point at the start of the screen and the byte after it, ready to fill the pixels with zero. | ||
| C116 | LD DE,$4001 | |||
| C119 | LD BC,$1800 | Take the length of the screen bitmap. | ||
| C11C | LD (HL),$00 | Plant a zero at the start of the screen, ready for the fill. | ||
| C11E | LDIR | Copy the 00 across the rest of the screen buffer bytes. | ||
| C120 | LD BC,$02FF | Take the length of the attributes still to paint. | ||
| C123 | LD (HL),$38 | Paint this square black ink on white paper, ready to fill the rest of the screen. | ||
| C125 | LDIR | Copy these bytes across. | ||
| C127 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: C0FE | Up: Map | Next: C128 |