IBM SA14-2339-04 Personal Computer User Manual


 
Instruction Set 9-119
mtspr
Move To Special Purpose Register
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” on
page 10-2 for a listing of SPR mnemonics and corresponding SPRN and SPRF 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 is a 1. See “Privileged SPRs” on
page 2-32 for more information.
The SPR number (SPRN) specified in the assembler language coding of the mtspr instruction refers
to an SPR number (see “Special Purpose Registers” on page 10-2 for a list of SPRN values). The
assembler handles the unusual register number encoding to generate the SPRF field.
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
mtspr SPRN, RS
31 RS SPRF 467
0 6 11 21 31