Encoding:

RR

11101

rx

0

000

MFHI

10000

5

3

3

5

Format:

MFHI rx

MIPS16e

Move From HI Register

Purpose:

Move From HI Register

To copy the special purpose HI register to a GPR.

Description:

GPR[rx] = HI

The contents of special register HI are loaded into GPR rx.

Restrictions:

None

Operation:

GPR[Xlat(rx)] = HI

Exceptions:

None

Historical Information:

In the MIPS I, II, and III architectures, the two instructions which follow the MFHI must not moodify the HI register.

If this restriction is violated,the result of the MFHI is UNPREDICTABLE. This restriction was removed in MIPS

IV and MIPS32, and all subsequent levels of the architecture.