Thanks Maarten, I=B4m using pic 16F series, I did not need a remainder and i=B4m using a 16bit number in format signed. Luis F. Dear Luis, > Hi, > > I=B4m looking for a fast asm routine to divide > a 16 bits number by constant decimal 100. For the benefit of those on this list that might want to help with your problem, please specify: 1) What format is the 16-bit number in: signed, unsigned, fixed point, floating point... 2) Do you need the remainder? To what accuracy do you need the result calculated? 3) Which microcontroller are you using? You mention fast... Are there any limitations to the size of the routine as well? (I could imagine a look-up table being the fastest solution...). And I'm sure there are other questions... A bit more context would go a long way. Greetings, Maarten Hofman. -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist