Skip to content
Solved Examples · Example 13

Q.Divide 0EDH by 01EH

Karnataka PUCTextbookLongImportance★★★★★est
57% · 66/115 Questions
🔒 Locked · start free trial →

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]

0EDH=2370EDH = 237, 01EH=3001EH = 30; 237=7×30+27237 = 7\times30 + 27, so after DIV AB the quotient is A=07HA = 07H and the remainder is B=1BHB = 1BH (27).

This II PUC Electronics microcontroller example uses the 8051 unsigned-division instruction DIVABDIV AB. 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 (0EDH=2370EDH = 237, 01EH=3001EH = 30):

237÷30=7 remainder 27,7×30=210,237−210=27.237 \div 30 = 7 \text{ remainder } 27, \quad 7\times30 = 210, \quad 237 - 210 = 27. …

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.