beautypg.com

Mtc0, Move to coprocessor0 – NEC Network Controller uPD98502 User Manual

Page 530

background image

APPENDIX A MIPS III INSTRUCTION SET DETAILS

530

Preliminary User’s Manual S15543EJ1V0UM

MTC0

Move To Coprocessor0

MTC0

0

0 0 0 0 0 0 0 0 0 0 0

COP0

0 1 0 0 0 0

31

26 25

11 10

16 15

0

6

11

5

5

rt

rd

MT

0 0 1 0 0

5

21 20

Format:

MTC0 rt, rd

Description:

The contents of general register

rt are loaded into coprocessor register rd of coprocessor 0.

Because the state of the virtual address translation system may be altered by this instruction, the operation of load

instructions, store instructions, and TLB operations immediately prior to and after this instruction are undefined.

When using a register used by the MTC0 by means of instructions before and after it, refer to APPENDIX B

V

R

4120A COPROCESSOR 0 HAZARDS and place the instructions in the appropriate location.

Operation:

32, 64 T:

data

← GPR [rt]

CPR [0, rd]

← data

T+1:

Exceptions:

Coprocessor unusable exception (in 64-bit/32-bit user and supervisor mode if CP0 not enabled)