Prev: E5B0 Up: Map Next: E5C4
E5BA: Fill Memory
Used by the routines at StartGame and ClearPixels.
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 E5BA LD E,$00 Set E to 00.
This entry point is used by the routine at ClearAttributes.
Fill the memory, and loop back until all of the bytes have been filled.
FillMemory_WithValue E5BC LD (HL),E Write E.
E5BD INC HL Increment HL.
E5BE DEC BC Decrement BC.
E5BF LD A,B Jump to FillMemory_WithValue if BC is not zero.
E5C0 OR C
E5C1 JR NZ,FillMemory_WithValue
E5C3 RET Return.
Prev: E5B0 Up: Map Next: E5C4