![]()  | 
Routines | 
| Prev: 28118 | Up: Map | Next: 28658 | 
| 
 
Used by the routine at SquiggleLine.
 
 | 
||||
| ClearScreen | 28627 | PUSH HL | Stash HL, DE and BC on the stack. | |
| 28628 | PUSH DE | |||
| 28629 | PUSH BC | |||
| 28630 | LD A,7 | Set the border colour to WHITE. | ||
| 28632 | OUT (254),A | |||
| 28634 | LD HL,16384 | Write 0 to 6144 memory locations (clearing the screen buffer). | ||
| 28637 | LD DE,16385 | |||
| 28640 | LD BC,6144 | |||
| 28643 | LD (HL),0 | |||
| 28645 | LDIR | |||
| 28647 | LD BC,768 | Write INK: BLACK, PAPER: WHITE to the following 768 memory locations (the attribute buffer). | ||
| 28650 | LD (HL),56 | |||
| 28652 | LDIR | |||
| 28654 | POP BC | Restore BC, DE and HL from the stack. | ||
| 28655 | POP DE | |||
| 28656 | POP HL | |||
| 28657 | RET | Return. | ||
| Prev: 28118 | Up: Map | Next: 28658 |