Prev: CE0D Up: Map Next: CE22
CE1C: Clear B bytes from DE
DE is left just past the last byte, which is how the room builder (BUILD_ROOM) moves on to the next record. The entry point FILL_DE fills with A instead: COLOUR_PANEL colours parts of the panel with it. As Knight Lore's zero_DE and fill_DE.
Input
DE the first byte
B how many
Output
DE just past the last
ZERO_DE CE1C XOR A Zero
This entry point is used by the routine at COLOUR_PANEL.
FILL_DE CE1D LD (DE),A Fill B bytes with A
CE1E INC DE
CE1F DJNZ FILL_DE
CE21 RET
Prev: CE0D Up: Map Next: CE22