XCHG Instruction in Detail

The XCHG is an instruction used to exchange the values of HL register pair with DE register pair. The content in the H register is exchanged with D register and the content in the L register is exchanged with E register. Consider the data in HL register is 3259H and the data in DE is E3F2H. After executing the XCHG instruction the HL register contains E3F2H and DE register contains 3259H.

Content Training Table

The content training table for above instruction is given below.

Register

Before Executing XCHG

After Executing XCHG

HL register

3259H

E3F2H

DE register

E3F2H

3259H

Address

Hexadecimal Opcode

Instruction

Description

3002

EB

XCHG

It swaps the content of HL and DE registers.

Timing Diagram of XCHG Instruction

The timing diagram below shows the XCHG instruction.

XCHG Instructions

Implied Addressing Mode in 8085 Microprocessor

In the implied addressing mode in the 8085 microprocessors, the operand is provided implicitly within the instruction. As the operand is provided implicitly the operand fetch is not required in this addressing mode. In this article, we will explore the implied addressing mode in 8085 microprocessors and discuss operations and examples of implied addressing mode. We will also discuss the advantages, disadvantages and applications of implied mode in 8085.

Table of Content

  • Implied Addressing Mode
  • Representation of Instruction
  • Examples
  • XCHG Instruction
  • Advantages and Disadvantages
  • Applications

Similar Reads

Implied Addressing Mode in 8085 Microprocessor

The addressing mode in which the operand is given implicitly within the instruction opcode is called implicit addressing mode. In other words, the implicit addressing mode is the mode in which the operand is specified within the instruction opcode. The implied addressing mode is also called the implicit addressing mode because the operand is provided implicitly....

Representation of Instruction in 8085 with Implied Addressing Mode

The below format specifies the instruction of the 8085 microprocessor with implied addressing mode....

Examples of Implied Addressing Mode in 8085 Microprocessor

Some of the examples of implied addressing mode in 8085 microprocessor is given below....

XCHG Instruction in Detail

The XCHG is an instruction used to exchange the values of HL register pair with DE register pair. The content in the H register is exchanged with D register and the content in the L register is exchanged with E register. Consider the data in HL register is 3259H and the data in DE is E3F2H. After executing the XCHG instruction the HL register contains E3F2H and DE register contains 3259H....

Advantages and Disadvantages of Implied Addressing Mode

Some of the advantages and disadvantages of implied addressing mode are listed below....

Applications of Implied Addressing Mode in 8085 Microprocessors

Some of the applications of implied addressing mode are listed below....

Conclusion

From the above discussion we can conclude that in the implied addressing mode the operand is specifies=d within the instruction opcode and no operand fetch is required in the instructions using the implied addressing mode. It also shortens the length of the instruction....

Implied Addressing Mode in 8085 Microprocessor – FAQs

What are Addressing Modes?...