Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->MOVEC
MOVEC Move Control Register
Compatibility: 68010, 68020 and CPU32 families.
This is a privileged instruction.
If supervisor state
RC -> Rn or Rn -> Rc
else
TRAP
Assembler syntax: | MOVEC Rc, Rn |
| MOVEC Rn, Rc |
|
Size: Long
Moves the contents of the specified control register (Rc) to the specified general register (Rn) or visa versa. This is always a 32 bit transfer even if the control register has fewer bits. Unimplemented bits are read as zeros.
Condition codes: not affected
Rc can be:
SFC (Source function code)
DFC (Destination function code)
CACR (Cache control register 68020 only)
USP (User stack pointer)
VBR (Vector base register)
CAAR (Cache address register 68020 only)
MSP (Master stack pointer 68020 only)
ISP (Interrupt stack pointer 68020 only)
Unsupported codes cause an illegal instruction exception.