mtsrr0
Move to SRR0 - 7C 00 03 A6
mtsrr0
Instruction Syntax
Mnemonic | Format | Flags |
mtsrr0 | SRR0, 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 | 01100110 (0x66) |
Operation
SRR0 ← rS
MTSRR0 copies the contents of the source register rS into the Save/Restore Register 0 (SRR0).
- Reads the value from the source register rS
- Copies it to the SRR0 register
Note: SRR0 contains the address of the instruction that caused the exception.
Affected Registers
- SRR0 (Save/Restore Register 0) - Loaded with value from rS
Examples
# Restore exception address mtsrr0 r3 # Set SRR0 for exception return mtsrr0 r10
Related Instructions
mfsrr0 (Move from SRR0), mtsrr1 (Move to SRR1), mfsrr1 (Move from SRR1), mfdar (Move from DAR)