Motorola CPU32 Reference Manual page 211

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

SWAP
Swap Register Halves
Operation:
Register [31 :16] <=> Register [15:0]
Assembler
Syntax:
SWAP On
Attributes:
Size
=
(Word)
D escrl ptlo n:
Exchange the 16-bit words (halves) of a data register.
Condition Codes:
x
N
z
v
c
o
0
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:
15
14
13
12
11
10
9
8
7
6
5
4
3
0
I
1
0
I
0
I
1
I
0
I
0
I
0
I
0
I
1
I
0
I
0
I
0
Instruction Fields:
Register field - Specifies the data register to swap.
SWAP
2
0
I
REGISTER
MOTOROLA
4-158
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents