APPENDIX B INSTRUCTION SET LIST
User’s Manual U12688EJ4V0UM00
434
B.2 Instruction Set (in Alphabetical Order)
(1/6)
Execution
Clock
Flags
Mnemonic
Operand
Op Code
Operation
i
r
l
CY OV
S
Z SAT
reg1,reg2
r r r r r 0 0 1 1 1 0 R R R R R
GR[reg2]
←
GR[reg2]+GR[reg1]
1
1
1
×
×
×
×
ADD
imm5,reg2
r r r r r 0 1 0 0 1 0 i i i i i
GR[reg2]
←
GR[reg2]+sign-extend(imm5)
1
1
1
×
×
×
×
ADDI
imm16,reg1,reg2
r r r r r 1 1 0 0 0 0 R R R R R
i i i i i i i i i i i i i i i i
GR[reg2]
←
GR[reg1]+sign-extend(imm16)
1
1
1
×
×
×
×
AND
reg1,reg2
r r r r r 0 0 1 0 1 0 R R R R R
GR[reg2]
←
GR[reg2]AND GR[reg1]
1
1
1
0
×
×
ANDI
imm16,reg1,reg2
r r r r r 1 1 0 1 1 0 R R R R R
i i i i i i i i i i i i i i i i
GR[reg2]
←
GR[reg1]AND zero-extend(imm16)
1
1
1
0
0
×
When conditions
are satisfied
2
Note 2
2
Note 2
2
Note 2
Bcond
disp9
ddd dd 101 1d ddc ccc
Note 1
if conditions are satisfied
then PC
←
PC+sign-extend(disp9)
When conditions
are not satisfied
1
1
1
BSH
reg2,reg3
r r r r r 1 1 1 1 1 1 0 0 0 0 0
wwwww01101000010
GR[reg3]
←
GR[reg2] (23 : 16) ll GR[reg2] (31 : 24) ll
GR[reg2] (7 : 0) ll GR[reg2] (15 : 8)
1
1
1
×
0
×
×
BSW
reg2,reg3
r r r r r 1 1 1 1 1 1 0 0 0 0 0
wwwww01101000000
GR[reg3]
←
GR[reg2] (7 : 0) ll GR[reg2] (15 : 8) ll GR
[reg2] (23 : 16) ll GR[reg2] (31 : 24)
1
1
1
×
0
×
×
CALLT
imm6
0 0 0 0 0 0 1 0 0 0 i i i i i i
CTPC
←
PC+2(return PC)
CTPSW
←
PSW
adr
←
CTBP+zero-extend(imm6 logically shift left by 1)
PC
←
CTBP+zero-extend(Load-memory(adr,Half-word))
4
4
4
bit#3, disp16[reg1]
10bbb111110RRRRR
dddddddddddddddd
adr
←
GR[reg1]+sign-extend(disp16)
Z flag
←
Not(Load-memory-bit(adr,bit#3))
Store-memory-bit(adr,bit#3,0)
3
Note 3
3
Note 3
3
Note 3
×
CLR1
reg2,[reg1]
r r r r r 1 1 1 1 1 1 R R R R R
0000000011100100
adr
←
GR[reg1]
Z flag
←
Not(Load-memory-bit(adr,reg2))
Store-memory-bit(adr,reg2,0)
3
Note 3
3
Note 3
3
Note 3
×
cccc,imm5,reg2,reg3
r r r r r 1 1 1 1 1 1 i i i i i
wwwww011000cccc0
if conditions are satisfied
then GR[reg3]
←
sign-extended(imm5)
else GR[reg3]
←
GR[reg2]
1
1
1
CMOV
cccc,reg1,reg2,reg3
r r r r r 1 1 1 1 1 1 R R R R R
wwwww011001cccc0
if conditions are satisfied
then GR[reg3]
←
GR[reg1]
else GR[reg3]
←
GR[reg2]
1
1
1
reg1,reg2
r r r r r 0 0 1 1 1 1 R R R R R
result
←
GR[reg2]–GR[reg1]
1
1
1
×
×
×
×
CMP
imm5,reg2
r r r r r 0 1 0 0 1 1 i i i i i
result
←
GR[reg2]–sign-extend(imm5)
1
1
1
×
×
×
×
CTRET
0000011111100000
0000000101000100
PC
←
CTPC
PSW
←
CTPSW
3
3
3
R
R
R
R
R
DI
0000011111100000
0000000101100000
PSW.ID
←
1
1
1
1
Summary of Contents for V850E/MS1 UPD703100
Page 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Page 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Page 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Page 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Page 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Page 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Page 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Page 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Page 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...