APPENDIX B LIST OF INSTRUCTION SETS
User’s Manual U15109EJ3V0UD
731
Instruction Set List (4/4)
Flag
Instruction
Group
Mnemonic
Operand
Op Code
Operation
CY OV
S
Z SAT
regID = EIPC, FEPC
regID = EIPSW,
FEPSW
LDSR
reg2, regID
rrrrr111111RRRRR
0000000000100000
(
Note
)
SR [regID]
←
GR
[reg2]
regID = PSW
×
×
×
×
×
STSR
regID, reg2
rrrrr111111RRRRR
0000000001000000
GR [reg2]
←
SR [regID]
TRAP
vector
00000111111iiiii
0000000100000000
EIPC
←
PC + 4 (Restored PC)
EIPSW
←
PSW
ECR.EICC
←
Interrupt code
PSW.EP
←
1
PSW.ID
←
1
PC
←
00000040H (vector = 00H to 0FH)
00000050H (vector = 10H to 1FH)
RETI
0000011111100000
0000000101000000
if PSW.EP = 1
then PC
←
EIPC
PSW
←
EIPSW
else if PSW.NP = 1
then PC
←
FEPC
PSW
←
FEPSW
else PC
←
EIPC
PSW
←
EIPSW
R
R
R
R
R
HALT
0000011111100000
0000000100100000
Stops
DI
0000011111100000
0000000101100000
PSW.ID
←
1
(Maskable interrupt disabled)
EI
1000011111100000
0000000101100000
PSW.ID
←
0
(Maskable interrupt enabled)
Special
NOP
0000000000000000
Uses 1 clock cycle without doing anything
Note
The op code of the LDSR instruction uses the field of reg1 even though the source register is shown as
reg2 in the above table. Therefore, the meaning of the register specification for the mnemonic description
and op code differs to that of the other instructions.
rrrrr = regID specification
RRRRR = reg2 specification