APPENDIX C INSTRUCTION SET LIST
682
User’s Manual U15195EJ5V0UD
(5/5)
Execution Clock
Flags
Mnemonic Operands
Opcode
Operation
i r I
CY
OV
S Z
SAT
SLD.HU disp5[ep],
reg2
r r r r r 0 0 0 0 1 1 1 d d d d
adr
←
ep + zero-extend (disp5)
GR[reg2]
←
zero-extend (Load-memory (adr,
Halfword)
1
1
Note 9
SLD.W disp8[ep],
reg2
r r r r r 1 0 1 0 d d d d d d 0
adr
←
ep + zero-extend (disp8)
GR[reg2]
←
Load-memory (adr, Word)
1
1
Note 9
SST.B reg2,
disp7[ep]
r r r r r 0 1 1 1 d d d d d d d
adr
←
ep + zero-extend (disp7)
Store-memory (adr, GR[reg2], Byte)
1
1
1
SST.H reg2,
disp8[ep]
r r r r r 1 0 0 1 d d d d d d d
adr
←
ep + zero-extend (disp8)
Store-memory (adr, GR[reg2], Halfword)
1
1
1
SST.W reg2,
disp8[ep]
r r r r r 1 0 1 0 d d d d d d 1
adr
←
ep + zero-extend (disp8)
Store-memory (adr, GR[reg2], Word)
1
1
1
r r r r r 1 1 1 0 1 0 R R R R R
ST.B reg2,
disp16
[reg1]
d d d d d d d d d d d d d d d d
adr
←
GR[reg1] + sign-extend (disp16)
Store-memory (adr, GR[reg2], Byte)
1
1
1
r r r r r 1 1 1 0 1 1 R R R R R
ST.H reg2,
disp16
[reg1]
d d d d d d d d d d d d d d d 0
adr
←
GR[reg1] + sign-extend (disp16)
Store-memory (adr, GR[reg2], Halfword)
1
1
1
r r r r r 1 1 1 0 1 1 R R R R R
ST.W reg2,
disp16
[reg1]
d d d d d d d d d d d d d d d 1
adr
←
GR[reg1] + sign-extend (disp16)
Store-memory (adr, GR[reg2], Word)
1
1
1
r r r r r 1 1 1 1 1 1 R R R R R
STSR regID,
reg2
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
GR[reg2]
←
SR[regID]
1
1
1
SUB reg1,
reg2
r r r r r 0 0 1 1 0 1 R R R R R
GR[reg2]
←
GR[reg2]
−
GR[reg1]
1
1
1
×
×
×
×
SUBR reg1,
reg2
r r r r r 0 0 1 1 0 0 R R R R R
GR[reg2]
←
GR[reg1]
−
GR[reg2]
1
1
1
×
×
×
×
SWITCH reg1
0 0 0 0 0 0 0 0 0 1 0 R R R R R
adr
←
(PC + 2) + GR[reg1] logically shift left by 1)
PC
←
(PC + 2) + (sign-extend
(Load-memory (adr, Halfword)) logically shift left by 1
5
5
5
SXB reg1
0 0 0 0 0 0 0 0 1 0 1 R R R R R
GR[reg1]
←
sign-extend (GR[reg1] (7:0))
1
1
1
SXH reg1
0 0 0 0 0 0 0 0 1 1 1 R R R R R
GR[reg1]
←
sign-extend (GR[reg1] (15:0))
1
1
1
0 0 0 0 0 1 1 1 1 1 1 i i i i i
TRAP vector
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
EIPC
←
PC + 4 (return PC)
EIPSW
←
PSW
ECR.EICC
←
exception code
(40H to 4FH, 50H to 5FH)
PSW.EP
←
1
PSW.ID
←
1
PC
←
00000040H (when vector is 00H to 0FH
(exception code: 40H to 4FH))
00000050H (when vector is 10H to 1FH
(exception code: 50H to 5FH))
4
4
4
TST reg1,
reg2
r r r r r 0 0 1 0 1 1 R R R R R
result
←
GR[reg2] AND GR[reg1]
1
1
1
0
×
×
1 1 b b b 1 1 1 1 1 0 R R R R R
bit#3, disp16
[reg1]
d d d d d d d d d d d d d d d d
adr
←
GR[reg1] + sign-extend (disp16)
Z flag
←
Not(Load-memory-bit(adr,bit#3))
3
Note 3
3
Note 3
3
Note 3
×
r r r r r 1 1 1 1 1 1 R R R R R
TST1
reg2, [reg1]
0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 0
adr
←
GR[reg1]
Z flag
←
Not(Load-memory-bit(adr,reg2))
3
Note 3
3
Note 3
3
Note 3
×
XOR reg1,
reg2
r r r r r 0 0 1 0 0 1 R R R R R
GR[reg2]
←
GR[reg2] XOR GR[reg1]
1
1
1
0
×
×
r r r r r 1 1 0 1 0 1 R R R R R
XORI imm16,
reg1,
reg2
i i i i i i i i i i i i i i i i
GR[reg2]
←
GR[reg1] XOR zero-extend (imm16)
1
1
1
0
×
×
ZXB reg1
0 0 0 0 0 0 0 0 1 0 0 R R R R R
GR[reg1]
←
zero-extend (GR[reg1] (7:0))
1
1
1
ZXH reg1
0 0 0 0 0 0 0 0 1 1 0 R R R R R
GR[reg1]
←
zero-extend (GR[reg1] (15:0))
1
1
1
Notes 18, 20
Note 21
Note 19
Note 21
Note 8
Note 8
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...