Forum: Off Topic How to understand "divide two 16 bits number in 8051 microcontroller"?

von Lernend B. (Company: KAI Electro Semiconductor Inc.) (lernend05)

Rate this post
not useful
Hi all,
I have this project to code in 8051: "Division of two 16 bit unsigned 
integers being in the internal memory, quotient and remainder should be 
I find a way to do it but there is a part of the program that i don't 
understand, I attach it.
I've noted which part i don't understand. By "don't understand", means 
that i'm not understanding why do we have to do all those calculations 
to find the quotient and the remainder.

Is there anyone have ideas of it? Or any advice?


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig