At 10:10 AM 3/17/97 -0500, you wrote: >At 10:04 PM 3/16/97 -0600, you wrote: >> First let me say " THANK YOU " to all that have helped me in the >past. >> I'm in the middle of making a routine that reads a resistor value and >>wanted to use more than 8 bits for the value. Is there a way to use 2 >>registers to make a 16 bit variable ?? Can the variable be sent via RS232 >>as decimal ?? At this point in time I have the routine working great except >>that I would like to use bigger values. > >Assembly, I presume. The C compilers all handle this built-in. > >You have to use two registers, and do all the carry handling in software. >The PIC doesn't know anything more than 8 bits and a carry. > >What functions do you need? Add, Subtract, Multiply, Divide, print as >decimal or hex? Hi Andy, I've made a little progress on the 16 bit variable front. I found the wa y to declare two registers under one name and have the msb and lsb a subset of the name. \-----------------------------\ cblock twobytename:0, msbname, lsbname endc \-----------------------------\ The function I need is to transmit the twobyte to an ascii terminal as a number. I've tried some binary to BCD routines but could only transmit 0 - 99. Any pointers would be appreciated. ---------------------- James and Iliana Austin Texas Automotive Technician Electronics Hobbyist Software Engineer ----------------------