!pr1
Improving the Single-Byte Converter................Bruce Love
                                                  New Zealand

Bob's single byte converter (see Jan 85 issue, pages 31-32) can be shortened by one byte.  The left column is from Bob's code, the right a shorter version:

       1040 .1  LDX #"0"               .1  LDX #"0"-1
       1050 .2  CMP DECTBL,Y               SEC
       1060     BCC .3                 .2  SBC DECTBL,Y
       1070     SBC DECTBL,Y               INX
       1080     INX                        BCS .2
       1090     BNE .2                     ADC DECTBL,Y

I also tried a different approach, using the decimal mode to count tens, then printing the tens as a hex value with the monitor routine at $FDDA and the remainder (units digit) with $FDED.  This routine takes longer time, but does not need to use the X-register.
