Martin, have a look at the application notes - there are routines for both the 16cxx and 17cxxx families. AN544 - 17Cxxx Math utility routines AN526 - 16C5x/16Cxxx Math utility routines Cheers Roland -----Original Message----- From: Martin Callanan To: PICLIST@MITVMA.MIT.EDU Date: 14 June 1999 14:54 Subject: Divide 32 bits by 16 bits >Sorry about the confusion and the resend, but the routine i am looking for is to divide a 32 bit number by a 16 bit number. >Does anyone have a routine to do this? I am not interested in the remainder. >I am looking for code which is optimised for code space and not speed. > >Thanks in advance. >Martin >