comparison lwasm/insn_inh.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 507f442dc71e
children 4fd16faa4d93
comparison
equal deleted inserted replaced
375:71f507f404f1 376:35d4213e6657
45 { 45 {
46 // there may be two operations here so check for both 46 // there may be two operations here so check for both
47 lwasm_emitop(l, instab[l -> insn].ops[0]); 47 lwasm_emitop(l, instab[l -> insn].ops[0]);
48 if (instab[l -> insn].ops[1] >= 0) 48 if (instab[l -> insn].ops[1] >= 0)
49 lwasm_emitop(l, instab[l -> insn].ops[1]); 49 lwasm_emitop(l, instab[l -> insn].ops[1]);
50
51 l -> cycle_adj = instab[l -> insn].ops[3];
50 } 52 }