@Override
	public MaskedLong valueForResolution(TokenField tf, Map<String, Long> vals,
			AssemblyResolvedPatterns rc) {
		int size = tf.getByteEnd() - tf.getByteStart() + 1;
		MaskedLong res = rc.readInstruction(tf.getByteStart(), size);
		if (!tf.isBigEndian()) {
			res = res.byteSwap(size);
		}
		res = res.shiftRight(tf.getShift());
		if (tf.hasSignbit()) {
			res = res.signExtend(tf.getBitEnd() - tf.getBitStart() + 1);
		}
		else {
			res = res.zeroExtend(tf.getBitEnd() - tf.getBitStart() + 1);
		}
		return res;
	}
Solves expressions of a token (instruction encoding) field

<p>
Essentially, this just encodes the goal into the field, if it can be represented in the given
space and format. Otherwise, there is no solution.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/expr/TokenFieldSolver.java