118 www.xilinx.com MicroBlaze Processor Reference Guide
1-800-255-7778 UG081 (v6.0) June 1, 2006
Chapter 4: MicroBlaze Instruction Set Architecture
R
mts
Move To Special Purpose Register
Description
Copies the contents of register rD into the MSR or FSR.
Pseudocode
(rS) (rA)
Registers Altered
rS
Latency
1 cycle
Notes
When writing MSR using MTS, some bits take effect immediately (e.g. Carry) while the
remaining bits takes effect one cycle after the instruction has been executed.
To refer to special purpose registers in assembly language, use rmsr for MSR and rfsr for
FSR.
The PC, ESR and EAR cannot be written by the MTS instruction.
The FSR is only valid as a destination if the MicroBlaze parameter C_USE_FPU is set to 1.
mts rS, rA
1 0 0 1 0 1 0 0 0 0 0 rA 1 1 0 0 0 0 0 0 0 0 0 0 0 rS
0 6 11 16 29 31