You will find many examples of arithmetic routines in the Embedded Contro= ller Handbook from Microchip. Most of the 16bit versions can be download= ed from Microchips WWW site, but they should be tested before use: I have= tried the 32/16 bit division routine and it goes a bit mad under certain= conditions (anyone else seen this behaviour?). In the UK you can buy the Embedded Controller Handbook from Maplin or RS.= Andy Errington (still hanging head in shame for perpetuating the last SPA= M) ---------- From: Geoff Wootton[SMTP:WOOTTONG@vms1.bham.AC.UK] Sent: 28 November 1995 14:16 To: Multiple recipients of list PICLIST Subject: Arithmetic routines Does anyone know where I might be able to download some basic multi-byte arithmetic routines. For example, code for 16 bit subtraction etc. Geoff.