Prev: 80B4 Up: Map Next: 80C2
80BB: 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 80BB LD (HL),C Write C to the target address.
80BC INC HL Increment the target address by one.
80BD LD A,H Are we finished yet? Check the MSB of the target vs. B.
80BE CP B
80BF JR NZ,ResetCopier Keep looping back to ResetCopier until the comparison is zero.
80C1 RET Return.
View the equivalent code in;
Prev: 80B4 Up: Map Next: 80C2