Prev: 7439 Up: Map Next: 7447
7440: Reset Routine
Used by the routine at ResetAttributes.
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 7440 LD (HL),C Write C to the target address.
7441 INC HL Increment the target address by one.
7442 LD A,H Are we finished yet? Check the MSB of the target vs. B.
7443 CP B
7444 JR C,ResetCopier Keep looping back to ResetCopier until there is no carry-over.
7446 RET Return.
View the equivalent code in;
Prev: 7439 Up: Map Next: 7447