Prev: D6DB Up: Map Next: D6EB
D6E1: Fill Memory
Fills an area of memory with zero. The entry point at FillMemory_WithValue fills it with the byte in E.
Input
BC Number of bytes
HL Address of the first byte
FillMemory D6E1 LD E,$00 Set E to 00.
This entry point is used by the routine at SetAttributes.
FillMemory_WithValue D6E3 LD (HL),E Write E.
D6E4 INC HL Increment HL.
D6E5 DEC BC Decrement BC.
D6E6 LD A,B Jump to FillMemory_WithValue if BC is not zero.
D6E7 OR C
D6E8 JR NZ,FillMemory_WithValue
D6EA RET Return.
Prev: D6DB Up: Map Next: D6EB