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
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.