![]() |
Routines |
| Prev: 49406 | Up: Map | Next: 49448 |
|
Used by the routine at DrawDecorativeLine.
Blanks the screen before a new picture is drawn.
|
||||
| ClearScreen | 49423 | LD A,7 | Set border colour to WHITE. | |
| 49425 | OUT (254),A | |||
| 49427 | LD HL,16384 | Point at the start of the screen and the byte after it, ready to fill the pixels with zero. | ||
| 49430 | LD DE,16385 | |||
| 49433 | LD BC,6144 | Take the length of the screen bitmap. | ||
| 49436 | LD (HL),0 | Plant a zero at the start of the screen, ready for the fill. | ||
| 49438 | LDIR | Copy the 0 across the rest of the screen buffer bytes. | ||
| 49440 | LD BC,767 | Take the length of the attributes still to paint. | ||
| 49443 | LD (HL),56 | Paint this square black ink on white paper, ready to fill the rest of the screen. | ||
| 49445 | LDIR | Copy these bytes across. | ||
| 49447 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 49406 | Up: Map | Next: 49448 |