Rochester, 11 mei 2006. Dear Luis, 2006/5/11, antoniasse : > > 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