.org $4000 LD A, $02 ; 1st chip. Third 16KB block starting with $8000. LD C, $C0 OUT (C), A ; OUT $C0, 02 LD HL, $8000 ; HL = start address of block. LD DE, $8001 ; DE destination address of block. DE= HL + 1. LD BC, $4000 -1 ; BC = byte counter. Subtract 1 to not exceed destination count. LD (HL),$AA LDIR ; Fill BC bytes of memory starting at location HL to destination DE. .end