andrew: >(16bit.htm) which does fine if both numbers are 16 bits long, but if you try >to divide a 16 bit number by an 8 bit (zeros in the upper byte), it gives >completely wrong results. Could it be that you should be putting your 8 bit number in the upper byte, and zeroing the lower byte? Regards, Simon -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu