public final short getDNibble() {
    int d = getD();

    if ((d & ~0xf) != 0) {
      throw new DexException("Register D out of range: " + Hex.u8(d));
    }

    return (short) d;
  }
Gets the D register number, as a nibble. This will throw if the value is out of the range of an
unsigned nibble.
android/android_framework/dex-maker/src/main/java/com/android/dx/io/instructions/DecodedInstruction.java