mtsrr1
Move to SRR1 - 7C 00 03 A6
mtsrr1
Instruction Syntax
Mnemonic | Format | Flags |
mtsrr1 | SRR1, rS | None |
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
Field | Bits | Description |
Primary Opcode | 0-5 | 011111 (0x1F) |
rS | 6-10 | Source register |
rA | 11-15 | 00000 (unused) |
rB | 16-20 | 00000 (unused) |
XO | 22-29 | 01101110 (0x6E) |
Operation
SRR1 ← rS
MTSRR1 copies the contents of the source register rS into the Save/Restore Register 1 (SRR1).
- Reads the value from the source register rS
- Copies it to the SRR1 register
Note: SRR1 contains the machine state information that was saved when the exception occurred.
Affected Registers
- SRR1 (Save/Restore Register 1) - Loaded with value from rS
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)