Siemens C500 User Manual page 101

Microcontroller family
Table of Contents

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 (11000101 B ). The instruction
SWAP
leaves the accumulator holding the value 5C H (01011100 B ).
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
4-75
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents