Solved Examples · Example 13
Q.Divide 0EDH by 01EH
Karnataka PUCTextbookLongImportance★★★★★est
57% · 66/115 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
, ; , so after DIV AB the quotient is and the remainder is (27).
This II PUC Electronics microcontroller example uses the 8051 unsigned-division instruction . Before the instruction the numerator must be in the accumulator A and the denominator in register B; after it, A holds the quotient and B holds the remainder.
8051 program:
MOV A, #0EDH ; load EDH (237) into A (numerator)
MOV B, #01EH ; load 1EH (30) into B (denominator)
DIV AB ; now A = quotient, B = remainder
Working out the division in decimal (, ):
…
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.