Motorola CPU32 Reference Manual page 136

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

Advertisement

EXG
Operation:
Assembler
Syntax:
Attributes:
Rx
¢:>
Ry
EXG Dx, Dy
EXGAx,Ay
EXG DX,Ay
EXGAy, Dx
Size
=
(Long)
Exchange Registers
EXG
Description:
Exchanges the contents of two 32-bit registers. The instruction performs three types
of exchanges:
1. Exchange data registers.
2. Exchange address registers.
3. Exchange a data register and an address register.
Condition Codes:
Not affected.
Instruction Format:
15
14
13
12
11
10
9
8
7
6 5 4
3
2
0
1
0
o
REGISTER
Rx
OPMODE
REGISTER Ry
Instruction Fields:
Register Rx field -
Specifies either a data register or an address register depending on the
mode. If the exchange is between data and address registers, this field always specifies the
data register.
Opmode field -
Specifies the type of exchange:
01000 -
Data registers.
01001 - Address registers.
10001 - Data register and address register.
Register Ry field -
Specifies either a data register or an address register depending on the
mode. If the exchange is between data and address registers, this field always specifies the
address register.
CPU32 REFERENCE MANUAL
INSTRUCTION SET
MOTOROLA
4-83
III

Advertisement

Table of Contents
loading

Table of Contents