comparison lwasm/insn_indexed.c @ 376:35d4213e6657

Add cycle counting to listing Add option to include instruction cycle counts to the listing. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 20:47:30 -0600
parents 8764142b3192
children b20f14edda5a
comparison
equal deleted inserted replaced
375:71f507f404f1 376:35d4213e6657
592 } 592 }
593 } 593 }
594 594
595 lwasm_emitop(l, instab[l -> insn].ops[0]); 595 lwasm_emitop(l, instab[l -> insn].ops[0]);
596 lwasm_emitop(l, l -> pb); 596 lwasm_emitop(l, l -> pb);
597
598 l -> cycle_adj = lwasm_cycle_calc_ind(l);
599
597 if (l -> lint > 0) 600 if (l -> lint > 0)
598 { 601 {
599 e = lwasm_fetch_expr(l, 0); 602 e = lwasm_fetch_expr(l, 0);
600 lwasm_emitexpr(l, e, l -> lint); 603 lwasm_emitexpr(l, e, l -> lint);
601 } 604 }