Prev: 55003 Up: Map Next: 55019
55009: 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 55009 LD E,0 Set E to 0.
This entry point is used by the routine at SetAttributes.
FillMemory_WithValue 55011 LD (HL),E Write E.
55012 INC HL Increment HL.
55013 DEC BC Decrement BC.
55014 LD A,B Jump to FillMemory_WithValue if BC is not zero.
55015 OR C
55016 JR NZ,FillMemory_WithValue
55018 RET Return.
Prev: 55003 Up: Map Next: 55019