protected boolean getPatchCopyOp(Language language,
			Map<AddressSpace, SemisparseByteArray> result, PcodeOp op) {
		Varnode output = op.getOutput();
		if (!output.isAddress() && !output.isRegister()) {
			return false;
		}
		Varnode input = op.getInput(0);
		if (!input.isConstant()) {
			return false;
		}
		Address address = output.getAddress();
		SemisparseByteArray array = result.computeIfAbsent(address.getAddressSpace(),
			as -> new SemisparseByteArray());
		array.putData(address.getOffset(),
			Utils.longToBytes(input.getOffset(), input.getSize(),
				language.isBigEndian()));
		return true;
	}
Generate multiple lines of Sleigh, all to set a single variable

@param language the target language
@param address the (start) address of the variable
@param data the bytes to write to the variable
@return the lines of Sleigh code
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/time/schedule/PatchStep.java