Prev: 54542 Up: Map Next: 54596
54586: Fill Memory
Used by the routines at StartGame, RestartGame, ClearScreenBitmap and ClearScreenBuffer.
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 54586 LD E,0 Set E to 0.
This entry point is used by the routines at ClearAttributes and FillAttributes.
FillMemory_WithValue 54588 LD (HL),E Write E.
54589 INC HL Increment HL.
54590 DEC BC Decrement BC.
54591 LD A,B Jump to FillMemory_WithValue if BC is not zero.
54592 OR C
54593 JR NZ,FillMemory_WithValue
54595 RET Return.
Prev: 54542 Up: Map Next: 54596