IBM SA14-2339-04 Personal Computer User Manual


 
9-112 PPC405 Core User’s Manual
mfspr
Move From Special Purpose Register
mfspr
Move From Special Purpose Register
SPRN SPRF
5:9
|| SPRF
0:4
(RT) (SPR(SPRN))
The contents of the SPR specified by the SPRF field 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
•RT
Invalid Instruction Forms
Reserved fields
Invalid SPRF values
Programming Note
Execution of this instruction is privileged if instruction bit 11 contains 1. See “Privileged Mode
Operation” on page 2-30.
The SPR number (SPRN) specified in the assembler language coding of mfspr 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. Also, see “Privileged
SPRs” on page 2-32 for information about privileged SPRs.
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
mfspr RT, SPRN
31 RT SPRF 339
0 6 11 21 31