comparison lwasm/insn_gen.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 8e25147c2aa8
children 17fcd0c3ee45
comparison
equal deleted inserted replaced
375:71f507f404f1 376:35d4213e6657
278 if (i < -128 || i > 127) 278 if (i < -128 || i > 127)
279 lwasm_register_error(as, l, E_BYTE_OVERFLOW); 279 lwasm_register_error(as, l, E_BYTE_OVERFLOW);
280 } 280 }
281 lwasm_emitexpr(l, e, l -> lint); 281 lwasm_emitexpr(l, e, l -> lint);
282 } 282 }
283
284 l -> cycle_adj = lwasm_cycle_calc_ind(l);
283 return; 285 return;
284 } 286 }
285 287
286 if (l -> lint2 == 2) 288 if (l -> lint2 == 2)
287 lwasm_emitexpr(l, e, 2); 289 lwasm_emitexpr(l, e, 2);