Breaks if index is higher than disassembly count.
Calculates how many instructions to disassemble.