Prev: 29201 Up: Map Next: 29215
29208: 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 0)
C Value to write
ResetCopier 29208 LD (HL),C Write C to the target address.
29209 INC HL Increment the target address by one.
29210 LD A,H Are we finished yet? Check the MSB of the target vs. B.
29211 CP B
29212 JR C,ResetCopier Keep looping back to ResetCopier until there is no carry-over.
29214 RET Return.
View the equivalent code in;
Prev: 29201 Up: Map Next: 29215