Motorola CPU32 Reference Manual page 126

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

EXG
Operation:
Assembler:
Syntax:
Attributes:
Description:
forms 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
1
1
0
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.
MOTOROLA
4-78
Exchange Registers
Rx ↔ Ry
EXG Dx, Dy
EXG Ax, Ay
EXG Dx, Ay
EXG Ay, Dx
Size = (Long)
Exchanges the contents of two 32-bit registers. The instruction per-
12
11
10
9
0
REGISTER Rx
INSTRUCTION SET
8
7
6
5
1
OPMODE
EXG
4
3
2
1
REGISTER Ry
CPU32
REFERENCE MANUAL
0

Advertisement

Table of Contents
loading

Table of Contents