Prev: 33965 Up: Map Next: 33979
33972: 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 33972 LD (HL),C Write C to the target address.
33973 INC HL Increment the target address by one.
33974 LD A,H Are we finished yet? Check the MSB of the target vs. B.
33975 CP B
33976 JR NZ,ResetCopier Keep looping back to ResetCopier until the comparison is zero.
33978 RET Return.
View the equivalent code in;
View the equivalent code in Atic Atac.
Prev: 33965 Up: Map Next: 33979