Prev: 32948 Up: Map Next: 32962
32955: 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 32955 LD (HL),C Write C to the target address.
32956 INC HL Increment the target address by one.
32957 LD A,H Are we finished yet? Check the MSB of the target vs. B.
32958 CP B
32959 JR NZ,ResetCopier Keep looping back to ResetCopier until the comparison is zero.
32961 RET Return.
View the equivalent code in;
Prev: 32948 Up: Map Next: 32962