SWAP

SWAP

Operation:
Register [31:16] \s-->; Register [15:0]

Compatibility: 68000 Family

Assembler Syntax:
SWAP Dn

Attributes: Size = (Word)

Description: Exchange the 16-bit words (halves) of a
data register.

Condition Codes:
\c32200
X Not affected.
N Set if the most significant bit of the 32-bit result is
set. Cleared otherwise.
Z Set if the 32-bit result is zero. Cleared otherwise.
V Always cleared.
C Always cleared.

Instruction Format:
\i1-+--+----+---3Reg,

Instruction Fields:
Register field -- Specifies the data register to swap.
.490492