Prev: E801 Up: Map Next: E84E
E820: Clear the screen to cyan ink / black paper
Used by the routines at CBBD and CDD3.
E820 LD HL,$4000 Clear the screen from 4000 - 5000.
E823 LD BC,$1000
E826 LD (HL),L
E827 LD D,H
E828 LD E,$01
E82A LDIR
E82C XOR A
E82D LD B,$08
E82F PUSH BC
E830 PUSH HL
E831 PUSH DE
E832 LD (HL),A
E833 LD BC,$007F
E836 LDIR
E838 POP DE
E839 POP HL
E83A INC D
E83B INC H
E83C POP BC
E83D DJNZ $E82F
E83F LD HL,$5800 Fill the attributes to cyan on black.
E842 LD D,H
E843 LD E,$01
E845 LD A,$45
E847 LD (HL),A
E848 LD BC,$027F
E84B LDIR
E84D RET Return.
Prev: E801 Up: Map Next: E84E