Prev: 33965 Up: Map Next: 33979
33972: Fill Memory
Writes C from the target address up to the page in B.
Input
HL Target address
B End-address MSB (the LSB is always 0)
C Value to write
ResetCopier 33972 LD (HL),C Write the fill value to the target address.
33973 INC HL Move onto the next byte.
33974 LD A,H Compare the target page with the end page.
33975 CP B
33976 JR NZ,ResetCopier Jump back to ResetCopier until the end page is reached.
33978 RET Return.
View the equivalent code in;
Prev: 33965 Up: Map Next: 33979