mtsrr0
Move to SRR0 - 7C 00 03 A6
mtsrr0

Instruction Syntax

MnemonicFormatFlags
mtsrr0SRR0, 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-2901100110 (0x66)

Operation

SRR0 ← rS

MTSRR0 copies the contents of the source register rS into the Save/Restore Register 0 (SRR0).

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

Note: SRR0 contains the address of the instruction that caused the exception.

Affected Registers

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)

Back to Index