Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 3 (Q.No. 15)
15.
Let the initial contents of ACC and CY in 8085 be
  1. CY = 1
  2. ACC = 10000001
After the instruction RAL is executed twice the contents of CY and ACC respectively will be
1 and 00000011
0 and 00000111
1 and 00000111
0 and 00000011
Answer: Option
Explanation:

RAL means 'rotate left through carry'.

Discussion:
5 comments Page 1 of 1.

Jennifer said:   3 years ago
Thanks for explaining @Masss.

MASSS said:   8 years ago
Two times ral.

cy d7 d6 d5 d4 d3 d2 d1 d0
1 1 0 0 0 0 0 0 1 ======> given
1 0 0 0 0 0 0 1 1 =========> RAL 1
0 0 0 0 0 0 1 1 1 =============> RAL 2.

Hence, the answer is CY=0 ,00000111.

Pkn said:   8 years ago
Yes, A is correct.

Shy@m said:   9 years ago
I think the answer is A.

Julia said:   1 decade ago
Isn't the answer option A? D7 is placed in carry and carry contents placed in D0

Post your comments here:

Your comments will be displayed after verification.