Prev: 42276 Up: Map Next: 42515
42501: ClearDisplay
Fills the entire ZX Spectrum display file with zero bytes, blanking all pixel data. The display file occupies 16384-$57FF (6144 bytes). Uses a single LDIR from 16384 into $4001 after priming the first byte to 0.
Input
Used by the routines at 42581, 42821, 43610 and 44561.
42501 LD HL,16384 HL = 16384 (start of display file)
42504 LD DE,16385 DE = $4001 (destination = source+1)
42507 LD BC,6143 BC = 6143 bytes to copy
42510 LD (HL),0 prime first byte = 0
42512 LDIR propagate zero across entire display file
42514 RET
Prev: 42276 Up: Map Next: 42515