English

Explain the following instruction of 8085 MPU: XCHG - Computer Science 2

Advertisements
Advertisements

Questions

Explain the following instruction of 8085 MPU:

XCHG

Explain the following instruction of 8085 Micro-processor:

XCHG

Explain
Advertisements

Solution

XCHG: [EXCHANGE H AND L WITH D AND E]

Format: [H] ← [D]
               [L] ← [E]

Addressing: Register

Group: Data transfer group

Bytes: 1 byte

Flag: None

Comment: The data in register H is swapped with the data in register D, and the data in register L is swapped with the data in register E.

Example: Let [H] = 23 H, [L] = 32 H, [D] = 53 H and [E] = 55 H

Instruction: XCHG

After execution: [H] = 53 H and [L] = 55 H,
                            [D] = 23 H and [E] = 32 H

shaalaa.com
  Is there an error in this question or solution?
2014-2015 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×