हिंदी

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

Advertisements
Advertisements

प्रश्न

Explain the following instruction of 8085 MPU:

XCHG

Explain the following instruction of 8085 Micro-processor:

XCHG

स्पष्ट कीजिए
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2014-2015 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×