code: public static List<Jsr> findJsrs(Code code) {
          List<Jsr> result;
          int idx;
          int max;
          Instruction instr;
          Jsr jsr;
          int start;
  
          result = new ArrayList<Jsr>();
          max = code.instructions.size();
          for (idx = 0; idx < max; idx++) {
              instr = (Instruction) code.instructions.get(idx);
              if (instr.type.opcode == JSR) {
                  start = code.resolveLabel(((Integer)
                                             instr.arguments[0]).intValue());
                  jsr = findJsr(result, start);
                  if (jsr == null) {
                      jsr = new Jsr(start, code);
                      result.add(jsr);
                  }
                  jsr.caller.add(idx);
              }
          }
          return result;
      }
docs: --