This instruction exchanges the value of the Accumulator with the value contained in register.
Syntax : XCH A,register
Example : XCH A,R0
It exchanges the contents of accumulator and register R0.
Syntax : XCH A,register
Example : XCH A,R0
It exchanges the contents of accumulator and register R0.
- Instruction
- Opcode
- Bytes
- Flags
- XCH A,iram_addr
- 0xC5
- 1
- None
- XCH A,@R0
- 0xC6
- 1
- None
- XCH A,@R1
- 0xC7
- 1
- None
- XCH A,R0
- 0xC8
- 1
- None
- XCH A,R1
- 0xC9
- 1
- None
- XCH A,R2
- 0xCA
- 1
- None
- XCH A,R3
- 0xCB
- 1
- None
- XCH A,R4
- 0xCC
- 1
- None
- XCH A,R5
- 0xCD
- 1
- None
- XCH A,R6
- 0xCE
- 1
- None
- XCH A,R7
- 0xCF
- 1
- None