Prev: 84AD Up: Map Next: 84BB
84B4: 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 84B4 LD (HL),C Write C to the target address.
84B5 INC HL Increment the target address by one.
84B6 LD A,H Are we finished yet? Check the MSB of the target vs. B.
84B7 CP B
84B8 JR NZ,ResetCopier Keep looping back to ResetCopier until the comparison is zero.
84BA RET Return.
View the equivalent code in;
View the equivalent code in Atic Atac.
Prev: 84AD Up: Map Next: 84BB