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.
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