Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 6 (Q.No. 26)
26.
Consider the following program for 8085

MOV A, D
RAL
MOV D, A

If initial contents of register D is decimal number 20, the final content of register D is
decimal 20
decimal 40
decimal 10
none of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

San said:   1 decade ago
RAL means multiply by 2. Therefore 20*2 = 40.

Haritha said:   1 decade ago
Execution of first instruction.

A = 20 (the value of D move to A).

After RAL instruction.

A = 0100 0000 = 40H.

A value move to D.

Post your comments here:

Your comments will be displayed after verification.