public static int valueOf(String name){
  for (int opcode=0; opcode < nameArray.length; ++opcode) {
    if (name.equalsIgnoreCase(nameArray[opcode])) {
      return opcode;
    }
  }
  throw new IllegalArgumentException("No opcode for " + name);
}

public static int valueOf ( String name ) { for ( int opcode = 0 ; opcode < nameArray . length ; ++ opcode ) { if ( name . equalsIgnoreCase ( nameArray [ opcode ] ) ) { return opcode ; } } throw new IllegalArgumentException ( "No opcode for " + name ) ; }
gets the opcode corresponding to a given mnemonic .
