private boolean markupAddressAsScalar(Instruction instr, Reference primaryRef,
			List<Object> representationList, int addressIndex) {
		Address addr = (Address) representationList.get(addressIndex);
		AddressSpace space = addr.getAddressSpace();
		long offset = addr.getOffset();
		int unitSize = space.getAddressableUnitSize();
		if (unitSize != 1) {
			if (MathUtilities.unsignedModulo(offset, unitSize) == 0) {
				offset = MathUtilities.unsignedDivide(offset, unitSize);
			}
			else {
				return false;
			}
		}
		else {
			offset = MathUtilities.unsignedDivide(offset, unitSize);
		}

		Scalar scalar = new Scalar(space.getSize(), offset, false);
		if (markupScalarWithMemoryReference(instr, scalar, addressIndex, primaryRef,
			representationList)) {
			return true;
		}
		return primaryRef == null;
	}
Attempt to markup any or all Scalars contained within the
representationList.

@param inst instruction
@param opIndex operand index
@param function function containing instruction
@param primaryRef primary reference
@param referencedVariable optional variable associated with reference
@param regIndexMap register index map
@param representations
@return true if primaryRef was included in scalar mark-up
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java