mtsrr1
Move to SRR1 - 7C 00 03 A6
mtsrr1

Instruction Syntax

MnemonicFormatFlags
mtsrr1SRR1, rSNone

Instruction Encoding

0
1
1
1
1
1
S
S
S
S
S
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
FieldBitsDescription
Primary Opcode0-5011111 (0x1F)
rS6-10Source register
rA11-1500000 (unused)
rB16-2000000 (unused)
XO22-2901101110 (0x6E)

Operation

SRR1 ← rS

MTSRR1 copies the contents of the source register rS into the Save/Restore Register 1 (SRR1).

  1. Reads the value from the source register rS
  2. Copies it to the SRR1 register

Note: SRR1 contains the machine state information that was saved when the exception occurred.

Affected Registers

Examples

# Restore machine state
mtsrr1 r3

# Set SRR1 for exception return
mtsrr1 r10

Related Instructions

mfsrr1 (Move from SRR1), mtsrr0 (Move to SRR0), mfsrr0 (Move from SRR0), mfdar (Move from DAR)

Back to Index