private short getByteRelativeOffset(Address address, Address dest) {
		if (!address.getAddressSpace().equals(dest.getAddressSpace())) {
			throw new IllegalArgumentException(
				"Instruction addr and targetAddr must be in same address space");
		}
		int relDest = (int) dest.subtract(address);
		if (relDest > Byte.MAX_VALUE || relDest < Byte.MIN_VALUE) {
			throw new IllegalArgumentException(
				"targetAddr is out of range for instruction: " + relDest);
		}
		return (short) (relDest & 0xff);
	}
Get address in default ram space
@param offset address offset
@return the address
Ghidra/Features/Base/src/main/java/ghidra/test/ToyProgramBuilder.java