Instruction Set
63
XCN
( Exchange nibbles within the accumulator )
Function
: A
7
~A
4
A
3
~A
0
Description : Exchange the upper 4bit with the lower 4bit of the accumulator..
Flag
:
Mnemonic
OP Code
Bytes
Cycles
XCN
CE
1
5
Example
:
533 C1C2 C4F0
LDA
#11110000B
534 C1C4 CE
XCN
XMA
( Exchange memory with accumulator )
Function
: ( M )
A
Description : Exchange the accumulator with the contents of memory.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
XMA dp
BC
2
5
XMA dp+X
AD
2
6
XMA { X }
BB
1
5
Example
:
539 C1C5 E4F008
LDM
TEMP,#11110000B
540 C1C8 C40F
LDA
#00001111B
541 C1CA BC08
XMA
TEMP
XYX
( Exchange Y-register with X-register )
Function
: X
Y
Description : Exchange the Y-Register with the X-Register.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
XYX
FE
1
4
Example
:
546 C1CC 3EAA
LDY
#10101010B
547 C1CE 1E55
LDX
#01010101B
548 C1D0 FE
XYX