public static void copyBytesInRanges(Program toProgram, Program fromProgram, Address minAddr,
			Address maxAddr) throws MemoryAccessException {
		Memory toMem = toProgram.getMemory();
		Memory fromMem = fromProgram.getMemory();
		AddressRange range = new AddressRangeImpl(minAddr, maxAddr);
		copyByteRange(toMem, fromMem, range);
	}
Copies the bytes to one program from another for the specified address 
range.
@param toProgram program that the bytes are copied to.
@param fromProgram program the bytes are copied from.
@param minAddr the minimum address of the range to be copied.
This address should be derived from the toProgram.
@param maxAddr the maximum address of the range to be copied.
This address should be derived from the toProgram.

@throws MemoryAccessException if bytes can't be copied.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java