public static void dumpContextValue(RegisterValue value, String indent, StringBuilder buf) {
		if (indent == null) {
			indent = "";
		}
		Register baseReg = value.getRegister();
		int baseRegSize = baseReg.getMinimumByteSize() * 8;
		for (Register reg : baseReg.getChildRegisters()) {
			RegisterValue childValue = value.getRegisterValue(reg);
			if (childValue.hasAnyValue()) {
				BigInteger v = childValue.getUnsignedValueIgnoreMask();
				int msb = baseRegSize - reg.getLeastSignificantBitInBaseRegister() - 1;
				int lsb = msb - reg.getBitLength() + 1;
				if (buf.length() != 0) {
					buf.append("\n");
				}
				buf.append(indent + reg.getName() + "(" + lsb + "," + msb + ") = 0x" +
					Long.toHexString(v.longValue()));
				if (reg.hasChildren()) {
					dumpContextValue(childValue, indent + "   ", buf);
				}
			}
		}
	}
Returns true if a value is defined for the given register.
@param register the register to check for a value.
@return true if the given register has a value.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/ProcessorContextView.java