private void count(File f) throws FileNotFoundException, IOException { ProgramTokenizer tokenizer = new ProgramTokenizer(new FileReader(f)); AgillaAssembler.getAssembler().expandMode(tokenizer); while (tokenizer.hasMoreInstructions()) { Instruction instr = tokenizer.nextInstruction(); Integer count = (Integer) table.remove(instr); if (count == null) table.put(instr.opcode(), new Integer(1)); else table.put(instr.opcode(), new Integer(count.intValue() + 1)); } }