next up previous
Next: Floating Point Instructions Up: Description of the MIPS Previous: Store Instructions

Data Movement Instructions

move Rdest, Rsrc Move tex2html_wrap_inline1278
Move the contents of Rsrc to Rdest.

The multiply and divide unit produces its result in two additional registers, hi and lo. These instructions move values to and from these registers. The multiply, divide, and remainder instructions described above are pseudoinstructions that make it appear as if this unit operates on the general registers and detect error conditions such as divide by zero or overflow.

mfhi Rdest Move From hi
mflo Rdest Move From lo
Move the contents of the hi (lo) register to register Rdest.

mthi Rdest Move To hi
mtlo Rdest Move To lo
Move the contents register Rdest to the hi (lo) register.

Coprocessors have their own register sets. These instructions move values between these registers and the CPU's registers.

mfcz Rdest, CPsrc Move From Coprocessor z
Move the contents of coprocessor z's register CPsrc to CPU register Rdest.

mfc1.d Rdest, FRsrc1 Move Double From Coprocessor 1 tex2html_wrap_inline1278
Move the contents of floating point registers FRsrc1 and FRsrc1 + 1 to CPU registers Rdest and Rdest + 1.

mtcz Rsrc, CPdest Move To Coprocessor z
Move the contents of CPU register Rsrc to coprocessor z's register CPdest.



Antony Hosking
Fri Apr 12 10:48:03 EST 1996