mtc0

Operands

$reg, regnum

Move to Coprocessor 0 : Writes the value of general-purpose register $t1 into a Coprocessor 0 (CP0) control register. Used by exception handlers to modify the Status and Cause registers or to clear the EPC.

Variants

  • Move to Coprocessor 0 : Writes the value of general-purpose register $t1 into a Coprocessor 0 (CP0) control register. Used by exception handlers to modify the Status and Cause registers or to clear the EPC. mtc0 $t1,$8
# Write 0x1234 to CP0 vaddr register 8. Inspect CP0 $8: 0x1234.
li $t0, 0x1234
mtc0 $t0, $8