That's probably it. I use MPLAB's standard environment.It doesn't matter now, this morning I found out I only need 8 bits, and I'd written a fast one (31-cycles max) sometime back. --Bob Olin Lathrop wrote: >Bob Axtell wrote: > > >>>Oops! The "17th bit" from the last iteration should actually be the >>>high bit of the remainder, which becomes a digit value. >>> >>>Fortunately the fix was as simple as changing the mask for the valid >>>remainder bits to not throw out the high bit. All the statistics are >>>therefore still the same: 847 cycles and 30 program memory locations >>>if REG0 - REG3 are trashed, 879 cycles and 65 program memory >>>locations if all registers are restored by the subroutine. I have >>>attached the updated code, which includes test cases with 8s and 9s >>>in the result. >>> >>> >>Even after this change, I never got this to work, Olin.Its a great >>idea. >>Is there a later version? >> >> > >It works fine for me, including all the test cases in the source code. In >what way could you not get it to work? Is it a problem of building my >source code because it needs my PIC development environment? > > >***************************************************************** >Embed Inc, embedded system specialists in Littleton Massachusetts >(978) 742-9014, http://www.embedinc.com >_______________________________________________ >http://www.piclist.com >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist > > > > -- Note: Attachments must be sent to attach@engineer.cotse.net, and MAY delay replies to this message. 520-219-2363 _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist