On Wed, 20 Oct 2004, Scott Dattalo wrote: > For the Decrements, I see a few optimizations: > >> Decrement: >> >> ;; 16bit word >> clrf WREG >> bcf STATUS, C >> subwfb reg, F >> subwfb reg + 1, F > > tstfsz reg > decf reg+1 > decf reg,F That one's wrong! I should've used the tstfsnz, but that mnemonic has too many letters and therefore it's invalid :). Here, this is still 3 instructions and works decf reg, F skpc decf reg+1,F Or: decf reg, F bc _out decf reg+1,F _out: Scott _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist