APPENDIX A MIPS III INSTRUCTION SET DETAILS
Preliminary Users Manual S15543EJ1V0UM 585
TNEI Trap If Not Equal Immediate TNEI
rs
REGIMM
0 0 0 0 0 1

TNEI

0 1 1 1 0 immediate

31 26 25 21 20 16 15 0
655 16
Format:
TNEI rs, immediate
Description:
The 16-bit
immediate
is sign-extended and compared to the contents of general register
rs
. If the contents of
general register
rs
are not equal to the sign-extended
immediate
, a trap exception occurs.
Operation:

32 T: if GPR [rs] (imm ediate15)16 || immediate15...0 then

TrapException
endif

64 T: if GPR [rs] (imm ediate15)48 || immediate15...0 then

TrapException
endif
Exceptions:
Trap exception