XCHD exchanges bits 0-3 of the Accumulator with bits 0-3 of the Internal RAM address pointed to indirectly by R0 or R1. Bits 4-7 of each register are unaffected.
Syntax : XCHD A,[@R0 or @R1]
Example : XCHD A,@R1
It will exchange lower order bits of accumulator with lower bits of memory address specified by R1 register.
Syntax : XCHD A,[@R0 or @R1]
Example : XCHD A,@R1
It will exchange lower order bits of accumulator with lower bits of memory address specified by R1 register.
- Instruction
- Opcode
- Bytes
- Flags
- XCHD A,@R0
- 0xD6
- 1
- None
- XCHD A,@R1
- 0xD7
- 1
- None