Example #1
0
 /**
  * Returns the signed numeric decimal value stored in this register.
  *
  * @return signed numerical value stored in this register
  */
 public long getValue() {
   try {
     return Converter.binToLong(this.getBinString(), false);
   } catch (IrregularStringOfBitsException e) {
     e.printStackTrace();
     this.reset(false); // azzeriamo il registro
     return 0;
   }
 }
Example #2
0
  public String toString() {
    String s = new String();

    try {
      s = getHexString();
    } catch (IrregularStringOfBitsException e) {
      e.printStackTrace();
    } // Impossibile che si verifichi

    return s;
  }