static boolean isBranchAndLink(int inst)
public static boolean isBranchAndLink(int inst)
  static boolean isBranchAndLink(int inst)  {    int opcode, ext_op;    int link;        opcode = bits(inst,0,5);    link = bits(inst,31,31);    switch (opcode) {    case 16: /* unconditional branch */    case 18: /* conditional branch */      break;    case 19: /* possibly branch register */      ext_op = bits(inst,21,30);      if ((ext_op != 16) && (ext_op != 528)) {	link = 0;      }       break;    default: /* definitely not a branch */      link = 0;    }        if (link==0)      return false;    else      return true;  }