On Sun, 3 May 1998, Paul B. Webster VK2BZC wrote: > If you are using fixed subtractions rather than shifts, and since each > "IF" is coded () > then the one-instruction-less optimisation of the above is: > > > FWIW! about 33 instructions. However, to up the 1-byte less ante, there's a trick that allows you to use binary comparisons for a 28-cycle conversion. I divulge those tricks tomorrow... However for the decimal version, this little trick works well: MOVF bin,W ADDLW -200 RLF tens_and_ones,F ;Get the (inverted) carry BTFSS tens_and_ones,0 ;If there was no carry ADDLW 200 ;put back the 200 . . . Followed later by a COMF (or some other bit inverting trick) to get the proper polarity. Scott