Question 8Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)

The content of the accumulator after the execution of the following 8085 assembly language program, is :

The content of the accumulator after the execution of the following 8085 assembly language program, is : MVI A, 35H MOV B, A STC CMC RAR XRA B
  1. A00H
  2. B35H
  3. CEFH
  4. D2FH
Show answerHide answer

Correct answer: (D) 2FH

Explanation

MVI A, 35H: A = 35H. MOV B, A: B = 35H. STC: carry = 1. CMC: carry = 0. RAR: rotate A right through carry, A = 0001 1010 (1AH). XRA B: (0001 1010) XOR (0011 0101) = 0010 1111 = 2FH.

From UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions)

This is question 8 of UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.