
119
APPENDIX A INSTRUCTION MNEMONIC (IN ALPHABETICAL ORDER)
Table A-1. Instruction Mnemonic (in alphabetical order) (4/7)
Instruction
Mnemonic
Operand
Format
CY
OV
S
Z
SAT
Instruction Function
ORI
imm16, reg1, reg2
VI
–
0
*
*
–
Logical sum. ORs the word data of reg1 with the
16-bit immediate data, zero-extended to word
length, and stores the result to reg2.
RETI
–
X
*
*
*
*
*
Returns from exception or interrupt routine.
Restores the return PC and PSW from the
appropriate system register, and returns from
exception or interrupt routine.
SAR
reg1, reg2
IX
*
0
*
*
–
Arithmetic right shift. Arithmetically shifts the word
data of reg2 to the right by ‘n’ positions, where ‘n’
is specified by the lower 5 bits of reg1 (the MSB
prior to shift execution is copied and set as the
new MSB), and then writes the result to reg2.
SAR
imm5, reg2
II
*
0
*
*
–
Arithmetic right shift. Arithmetically shifts the word
data of reg2 to the right by ‘n’ positions specified
by the 5-bit immediate data, zero-extended to
word length (the MSB prior to shift execution is
copied and set as the new MSB), and then writes
the result to reg2.
SATADD
reg1, reg2
I
*
*
*
*
*
Saturated add. Adds the word data of reg1 to the
word data of reg2, and stores the result to reg2.
However, if the result exceeds the maximum
positive value, the maximum positive value is
stored to reg2; if the result exceeds the maximum
negative value, the maximum negative value is
stored to reg2. The SAT flag is set to 1.
SATADD
imm5, reg2
II
*
*
*
*
*
Saturated add. Adds the 5-bit immediate data,
sign-extended to word length, to the word data of
reg2, and stores the result to general register
reg2. However, if the result exceeds the positive
maximum value, the maximum positive value is
stored to reg2; if the result exceeds the maximum
negative value, the maximum negative value is
stored to reg2. The SAT flag is set to 1.
SATSUB
reg1, reg2
I
*
*
*
*
*
Saturated subtract. Subtracts the word data of
reg1 from the word data of reg2, and stores the
result to reg2. However, if the result exceeds the
maximum positive value, the maximum positive
value is stored to reg2; if the result exceeds the
maximum negative value, the maximum negative
value is stored to reg2. The SAT flag is set to 1.