mtspr
Move To Special Purpose Register
PPC440x5 CPU Core User’s Manual Preliminary
Page 370 of 589
instrset.fm.
September 12, 2002
mtspr
Move To Special Purpose Register
SPRN ← SPRF
5:9
|| SPRF
0:4
(SPR(SPRN)) ← (RS)
The contents of register RS are placed into register RT. See Special Purpose Registers Sorted by SPR
Number on page 454 for a listing of SPR mnemonics and corresponding SPRN values.
If instruction bit 31 contains 1, the contents of CR[CR0] are undefined.
Registers Altered
• SPR(SPRN)
Invalid Instruction Forms
• Reserved fields
• Invalid SPRF values
Programming Note
Execution of this instruction is privileged if instruction bit 11 contains 1. See Privileged SPRs on page 81 for a
list of privileged SPRs.
The SPR number (SPRN) specified in the assembler language coding of the mtspr instruction refers to an
SPR number. The assembler handles the unusual register number encoding to generate the SPRF field.
mtspr SPRN, RS
31 RS SPRF 467
0 6 11 21 31