comparison lwasm/insn_rlist.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 00fced888c5d
children b20f14edda5a
comparison
equal deleted inserted replaced
375:71f507f404f1 376:35d4213e6657
80 80
81 EMITFUNC(insn_emit_rlist) 81 EMITFUNC(insn_emit_rlist)
82 { 82 {
83 lwasm_emitop(l, instab[l -> insn].ops[0]); 83 lwasm_emitop(l, instab[l -> insn].ops[0]);
84 lwasm_emit(l, l -> pb); 84 lwasm_emit(l, l -> pb);
85
86 l -> cycle_adj = lwasm_cycle_calc_rlist(l);
85 } 87 }