English
Language : 

SAB80515 Datasheet, PDF (202/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
SWAP A
Function:
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.
Example:
The accumulator holds the value 0C5H (11000101B). The instruction
SWAP A
Operation:
leaves the accumulator holding the value 5CH (01011100B).
SWAP
(A3-0) ←→ (A7-4), (A7-4) ← (A3-0)
Encoding:
Bytes:
Cycles:
1100 0100
1
1
Semiconductor Group
202