# `mfc0`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/mfc0

**Move from coprocessor 0**

Category: System

Reads the second register, a Coprocessor 0 (CP0) control register, and places its value in the first, a general-purpose register.

Used in: [Exceptions and coprocessor 0](https://asm-editor.specy.app/learn/courses/mips/talking-to-the-outside-world/exceptions-and-coprocessor-0.md) (MIPS assembly)

## Forms

- `mfc0 $t1, $8`

## Operands

- `$t1`: Any general-purpose register, `$0` to `$31`, using its numeric or named spelling, such as `$8` or `$t0` (`$zero` is `$0`; `$ra` is `$31`).
- `$8`: A coprocessor 0 register, written by number: `$8` (`vaddr`), `$12` (`status`), `$13` (`cause`) or `$14` (`epc`).

## Description

CP0 registers hold exception, interrupt and timer state: register 8 (BadVAddr), 9 (Count), 11 (Compare), 12 (Status), 13 (Cause) and 14 (EPC).

## Example

```mips
# Set CP0 vaddr register 8 to 0x1234, then read it. Inspect $t0: 0x1234.
li $t1, 0x1234
mtc0 $t1, $8
mfc0 $t0, $8
```
