On Jan 9, 8:54 am, Oliver Seitz <[email protected]> wrote: > > If you want to compare, PMP's STR(0xFFFF : 4, SX) takes 263 > > cycles on > > a PIC18, a little more on a smaller one. No multiply, no > > division. > > There's always some optimizations to do... > > Oh. 263 cycles? To convert 16 bit values to decimal? That *is* fast.
Yeah, it varies a bit depending on the value, naturally. And by the way: the routine is less than 150 instructions for PIC18. Another routine for bytes (PIC18) is less than 70 instructions - 70 cycles (no loops), using MULLW instructions to compute 100 and 10 divide/modulus. All these routines are fully documented in the PMP's assembler output. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
