Prev: D4F9 Up: Map Next: D50E
D508: Clear Bytes
Fills a number of bytes with zero. The entry point at FillBytes fills them with the byte in A.
Input
B Number of bytes
DE Address of the first byte
ClearBytes D508 XOR A Set A to 00.
This entry point is used by the routine at PrintLivesGraphic.
FillBytes D509 LD (DE),A Write A.
D50A INC DE Increment DE.
D50B DJNZ FillBytes Jump to FillBytes until all of the bytes are filled.
D50D RET Return.
View the equivalent code in;
Prev: D4F9 Up: Map Next: D50E