Prev: CE4E Up: Map Next: CE60
CE56: Fill Memory
Used by the routines at StartGame, RestartGame, ClearObjects and ClearScreenBitmap.
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 CE56 LD E,$00 Set E to 00.
This entry point is used by the routines at ClearAttributes and ClearScreenBuffer.
FillMemory_WithValue CE58 LD (HL),E Write E.
CE59 INC HL Increment HL.
CE5A DEC BC Decrement BC.
CE5B LD A,B Jump to FillMemory_WithValue if BC is not zero.
CE5C OR C
CE5D JR NZ,FillMemory_WithValue
CE5F RET Return.
Prev: CE4E Up: Map Next: CE60