APPENDIX B INSTRUCTION SET LIST
User’s Manual U13850EJ4V0UM
507
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 this instruction uses the field of reg1 through the source register is shown as reg2 in the
above table. Therefore, the meaning of register specification for mnemonic description and op code is
different from that of the other instructions.
rrr = regID specification
RRRRR = reg2 specification