On Wed, 18 Mar 1998 01:08:31 +1000 Ron Kreymborg writes: >I think the rlf statements at the end should reverse the way the >buffers >are left shifted. ie: > > rlf bin+2,f > rlf bin+1,f > rlf bin+0,f > rlf bcd+3,f > rlf bcd+2,f > rlf bcd+1,f > rlf bcd+0,f > The only consequence of this change is to put the bytes in opposite order, i.e. MSB lowest. In any case, the bit that comes out of the MSB of bin needs to go into the LSB of bcd. I try to consistently work everything in MSB highest (little-endian) format, so my original routine would output bcd+3 first to put it on the left end of the displayed number. It is strictly a matter of programmer preference, but curiously supplies material for many flame-wars. With this modified routine, output bcd+0 first. In either case, the high nibble (bits 4-7) of the bcd numbers is the leftmost (MS) digit of the byte. _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]