English

Explain the following instruction of 8085 Micro-processor: RAR (Consider cy = 0) - Computer Science 2

Advertisements
Advertisements

Question

Explain the following instruction of 8085 Micro-processor:

RAR (Consider cy = 0)

Explain
Advertisements

Solution

RAR: [ROTATE ACCUMULATOR RIGHT THROUGH CARRY]

Format: [An] ← [An+1], [A7] ← [Cy], [Cy] ← [A0]

Addressing: Implied addressing

Group: Logical group

Bytes: 1 byte

Flag: Cy

Comment: The contents of the accumulator are rotated one bit to the right through the carry flag. Since CY = 0 is assumed initially, the carry flag value (0) is moved to bit A7 of the accumulator, and bit A0 of the accumulator is transferred to the carry flag. Only the carry flag is affected.

The function of RAR is shown in the following figure.

Thus [A] = 1D H
         [Cy] = 0 

shaalaa.com
  Is there an error in this question or solution?

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×