English
Language : 

UPD703100 Datasheet, PDF (169/185 Pages) NEC – 32-Bit Single-Chip Microcontrollers
APPENDIX A INSTRUCTION MNEMONICS (IN ALPHABETICAL ORDER)
Table A-1. Instruction Mnemonics (in Alphabetical Order) (11/12)
Instruction
Mnemonic
Operand
Format CY OV S Z SAT
Instruction Function
ST.W
reg2, disp16 [reg1]
VII − − − − − Word Store. Adds the 16-bit displacement, sign-
extended to word length, to the data of reg1 to
generate a 32-bit address, and stores the word
data of reg2 in the generated 32-bit address
with bits 0 and 1 masked by 0.
STSR
regID, reg2
IX
− − − − − Store Contents of System Register. Stores the
contents of the system register specified by
regID in reg2.
SUB
reg1, reg2
SUBR
reg1, reg2
I
* * * * − Subtract. Subtracts the word data of reg1 from
the word data of reg2, and stores the result in
reg2.
I
* * * * − Subtract Reverse. Subtracts the word data of
reg2 from the word data of reg1, and stores the
result in reg2.
SWITCH
reg1
SXB
reg1
I
− − − − − Jump with Table Look Up. Adds the table entry
address (address following the SWITCH
instruction) and data of reg1 logically shifted to
the left by 1 bit, and loads the halfword entry
data specified by the table entry address. Next,
logically shifts to the left by 1 bit the loaded
data, and after sign-extending it to word length,
branches to the target address added to the
table entry address (instruction following the
SWITCH instruction).
I
− − − − − Sign Extend Byte. Sign-extends the lowermost
byte of reg1 to word length.
SXH
reg1
I
− − − − − Sign Extend Halfword. Sign-extends lower
halfword of reg1 to word length.
TRAP
vector
X
− − − − − Trap. Saves the restore PC and PSW to EIPC
and EIPSW, respectively; sets the exception
code (EICC and ECR) and the flags of the PSW
(EP and ID flags); jumps to the address of the
trap handler corresponding to the trap vector
specified by vector number (0 to 31), and starts
exception processing.
TST
reg1, reg2
I
− 0 * * − Test. ANDs the word data of reg2 with the word
data of reg1. The result is not stored, and only
the flags are changed.
User’s Manual U12197EJ6V0UM
169