← 9667 Draw a top/bottom border strip Map 969C → Draw the side border wall
9695: Copy a run of bytes
Copies a run of bytes.
Input
HL address of the first byte written
DE address of the first byte read
B number of bytes to copy (0 copies 256)
Output
DE address after the last byte read
copy_bytes 9695 LD A,(DE) Copy one byte and advance both pointers, B times.
9696 LD (HL),A
9697 INC DE
9698 INC HL
9699 DJNZ copy_bytes
969B RET
← 9667 Draw a top/bottom border strip Map 969C → Draw the side border wall
Fork me on GitHub