Prev: B4E0 Up: Map Next: B519
B513: Clear B bytes from DE
Used by the routines at TAKE_OR_LEAVE and BUILD_ROOM.
TAKE_OR_LEAVE and BUILD_ROOM clear parts of object records with it. The entry point FILL_BYTES fills with A instead: DRAW_LIVES colours the lives icon with it.
Input
DE the first byte
B how many
Output
DE just past the last
CLEAR_BYTES B513 XOR A zero
This entry point is used by the routine at DRAW_LIVES.
FILL_BYTES B514 LD (DE),A fill B bytes with A
B515 INC DE
B516 DJNZ FILL_BYTES
B518 RET
Prev: B4E0 Up: Map Next: B519