Prev: 74D4 Up: Map Next: 74E2
74DB: Fill Memory
Used by the routine at ResetAttributes.
Writes the same byte to every address from the target address up to the end address.
Input
HL Target address
B Single byte representing the MSB of the end address (will always end on LSB 00)
C Value to write
ResetCopier 74DB LD (HL),C Write the byte to the buffer.
74DC INC HL Move on to the next address.
74DD LD A,H Are we finished yet? Check the MSB of the target vs. B.
74DE CP B
74DF JR C,ResetCopier Keep looping back to ResetCopier until there is no carry-over.
74E1 RET Return.
View the equivalent code in;
Prev: 74D4 Up: Map Next: 74E2