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
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.