![]() |
Routines |
| Prev: 66D7 | Up: Map | Next: 66EB |
|
Used by the routine at WaitForKey.
Paints the top twelve character rows black ink on white paper, which is the area the illustration occupies.
|
||||
| ClearPictureAttributes | 66D8 | PUSH AF | Stash AF and HL on the stack. | |
| 66D9 | PUSH HL | |||
| 66DA | LD HL,$5800 | Point HL at 5800 (attribute buffer). | ||
| 66DD | LD BC,$0180 | 0180 bytes, the top twelve rows. | ||
|
Paint one attribute byte.
|
||||
| ClearPicture_Byte | 66E0 | LD (HL),$38 | Paint one attribute INK: BLACK, PAPER: WHITE . | |
| 66E2 | INC HL | Step on. | ||
| 66E3 | DEC BC | |||
| 66E4 | LD A,B | Continue until the block is done. | ||
| 66E5 | OR C | |||
| 66E6 | JR NZ,ClearPicture_Byte | |||
| 66E8 | POP HL | Restore HL and AF from the stack. | ||
| 66E9 | POP AF | |||
| 66EA | RET | Return. | ||
| Prev: 66D7 | Up: Map | Next: 66EB |