ISRO Electronics & Communication (ECE) 2015 - Question 56

All ISRO Electronics & Communication (ECE) papers | ISRO Electronics & Communication (ECE) 2015

Topic: Microprocessors and Microcontrollers

What will be the content of Accumulator, Register-B and Overflow Flag (OV) after execution of following 8051 micro-controller assembly code?
MOV A, #65h
MOV 0F0h, #14h
DIV AB
DIV AB

  • A. A = 00h, B = 00h, OV = 1
  • B. A = 05h, B = 00h, OV = 0
  • C. A = 00h, B = 05h, OV = 0
  • D. A = 05h, B = 00h, OV = 1

Answer: B. A = 05h, B = 00h, OV = 0

Explanation: Initially A = 65h (101) and B = 14h (20). First DIV AB yields quotient A = 05h and remainder B = 01h. Second DIV AB divides 05h by 01h, resulting in A = 05h, B = 00h, and OV = 0.

| | All questions of ISRO Electronics & Communication (ECE) 2015