Prev: BB81 Up: Map Next: BB8F
BB88: 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 BB88 LD (HL),C Write C to the target address.
BB89 INC HL Increment the target address by one.
BB8A LD A,H Are we finished yet? Check the MSB of the target vs. B.
BB8B CP B
BB8C JR NZ,ResetCopier Keep looping back to ResetCopier until there is no carry-over.
BB8E RET Return.
View the equivalent code in;
Prev: BB81 Up: Map Next: BB8F