English
Language : 

UPD30102 Datasheet, PDF (657/701 Pages) NEC – 64/32-bit Microprocessor
CHAPTER 27 CPU INSTRUCTION SET DETAILS
TEQI
Trap If Equal Immediate
31
26 25
21 20
16 15
REGIMM
000001
rs
TEQI
01100
6
5
5
immediate
16
TEQI
0
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] = (immediate15)16 || immediate15...0 then
TrapException
endif
64 T:
if GPR [rs] = (immediate15)48 || immediate15...0 then
TrapException
endif
Exceptions:
Trap exception
657