Download Print this page

Siemens SAB 80515 Series User Manual page 202

8-bit single-chip microcontroller family

Advertisement

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 0C5 H (11000101B). The instruction
SWAP
leaves the accumulator holding the value 5C H (01011100B).
Operation:
SWAP
(A3-0)
Encoding:
1 1 0 0
Bytes:
1
Cycles:
1
Semiconductor Group
A
(A7-4), (A7-4) ← (A3-0)
← →
0 1 0 0
*
202
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k