Encoding:

COP0

0100 00

WRPGPR

01 110

rt

rd

0

000 0000 0000

6

5

5

5

11

Format:

WRPGPR rd, rt

MIPS32 Release 2

Write to GPR in Previous Shadow Set

Purpose:

Write to GPR in Previous Shadow Set

To move the contents of a current GPR to a GPR in the previous shadow set.

Description:

 SGPR[SRSCtlPSS, rd] = GPR[rt]

The contents of the current GPR rt is moved to the shadow GPR register specified by SRSCtlPSS (signifying the previous shadow set number) and rd (specifying the register number within that set).

Restrictions:

In implementations prior to Release 2 of the Architecture, this instruction resulted in a Reserved Instruction exception.

Operation:

SGPR[SRSCtlPSS, rd] = GPR[rt]

Exceptions:

Coprocessor Unusable, Reserved Instruction