Hello, I would like to find a source code in C (or assembler for microcontroller 8051) in order to execute some long division ( 32 bits by 32 bits). Do you know where i can find this function? Thank you kaoru
Thank you, the problem with this: it calls the library of the compiler and i don't want to call it. So i need another possibility. Do you have another idea? Kaoru
it calls the library of the compiler and i don't want to call it. If so do not use "C". Compiler library calls are inherent to C I know of no compiler without. Erik
Kaoru, Code a long division in 'C', set a breakpoint on the that line and trace into the library function. You will then be able to see how it is done in assembler by professional programmers, either copy the assembler (if your license permits it) or translate it into 'C'. Stefan
Take a look at: http://www.8052.com/codelib/math8051.asm for some example arithmetic routines, if you want a source other than just peeking at the disassembled code from the compiler.