Teqi, Trap if equal immediate – NEC Network Controller uPD98502 User Manual
Page 571
APPENDIX A MIPS III INSTRUCTION SET DETAILS
Preliminary User’s Manual S15543EJ1V0UM
571
TEQI
Trap If Equal Immediate
TEQI
rs
REGIMM
0 0 0 0 0 1
TEQI
0 1 1 0 0
immediate
31
26 25
21 20
16 15
0
6
5
5
16
Format:
TEQI 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 equal to the sign-extended immediate, a trap exception occurs.
Operation:
32
T:
if GPR [rs] = (immediate
15
)
16
|| immediate
15...0
then
TrapException
endif
64
T:
if GPR [rs] = (immediate
15
)
48
|| immediate
15...0
then
TrapException
endif
Exceptions:
Trap exception