DP805x Instructions set details
- 74 -
3.41. SWAP
Instruction:
Function:
SWAP A
Swap nibbles within the accumulator
Description: SWAP A interchanges the low and high-order nibbles (four-bit fields) of
the accumulator (bits 3-0 and bits 7-4). The operation can also be
thought of as a four-bit rotate instruction. No flags are affected.
Operation:
(PC) ← (PC) + 1
(A3-0) ↔ (A7-4),
(A7-4) ↔ (A3-0)
Bytes:
Cycles:
1
1
Encoding:
1
1
0
0
0
1
0
0
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.