Prev: 46304 Up: Map Next: 46361
46355: Clear Bytes
Used by the routines at DropObject and BuildRoomScenery.
Fills a number of bytes with zero. The entry point at ClearBytes_FillBytes fills them with the byte in A.
Input
B Number of bytes
DE Address of the first byte
ClearBytes 46355 XOR A Set A to 0.
This entry point is used by the routine at DrawLives.
ClearBytes_FillBytes 46356 LD (DE),A Write A.
46357 INC DE Increment DE.
46358 DJNZ ClearBytes_FillBytes Decrease the counter and loop until all the bytes have been written.
46360 RET Return.
View the equivalent code in;
Prev: 46304 Up: Map Next: 46361