Motorola CPU32 Reference Manual page 156

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

Advertisement

MOVEC
Move Control Register
(Privileged Instruction)
Operation:
Assembler
Syntax:
Attributes:
If supervisor state
then
Rc~
Rn or Rn
~
Rc
else TRAP
MOVEC Rc, Rn
MOVEC Rn, Rc
Size
=
(Long)
MOVEC
Description:
Moves the contents of the specified control register (Rc) to the specified general
register (Rn), or copies the contents of the specified general register to the specified control
register. MOVEC is always a 32-bit transfer even though the control register may be implemented
with fewer bits. Unimplemented bits are read as zeros.
Condition Codes:
Not affected.
Instruction Format:
14
13
12
10
8
Instruction Fields:
dr field - Specifies the direction of the transfer:
0-
Control register to general register.
1 - General register to control register.
AID
field - Specifies the type of general register:
o -
Data register.
1 - Address register.
7
Register field - Specifies the register number.
Control Register field - Specifies the control register.
Hex
Control Register
000
Source Function Code (SFC)
001
Destination Function Code (DFC)
800
User Stack Pointer (USP)
801
Vector Base Register (VBR)
Any other code causes an illegal instruction exception.
CPU32 REFERENCE MANUAL
INSTRUCTION SET
6
5
4
3
2
o
MOTOROLA
4-103
III

Advertisement

Table of Contents
loading

Table of Contents