Datasheet
V850ES/JG3 APPENDIX D INSTRUCTION SET LIST
R01UH0015EJ0300 Rev.3.00 Page 830 of 870
Sep 30, 2010
(4/6)
Execution
Clock
Flags Mnemonic Operand Opcode Operation
i r l CY OV S Z SAT
OR reg1,reg2 rr rrr 00 100 0RRRRR GR[reg2]←GR[reg2]OR GR[reg1] 1 1 1 0 × ×
ORI imm16,reg1,reg2 rr rr r11 0100R RRRR
iiiiiiiiiiiiiiii
GR[reg2]←GR[reg1]OR zero-extend(imm16) 1 1 1 0 × ×
list12,imm5 0000011110iiiiiL
LLLLLLLLLLL00001
Store-memory(sp–4,GR[reg in list12],Word)
sp←sp–4
repeat 1 step above until all regs in list12 is stored
sp←sp-zero-extend(imm5)
n+1
Note 4
n+1
Note 4
n+1
Note 4
PREPARE
list12,imm5,
sp/imm
Note 15
0000011110iiiiiL
LLLLLLLLLLLff011
imm16/imm32
Note 16
Store-memory(sp–4,GR[reg in list12],Word)
sp←sp+4
repeat 1 step above until all regs in list12 is stored
sp←sp-zero-extend (imm5)
ep←sp/imm
n+2
Note 4
Note 17
n+2
Note 4
Note 17
n+2
Note 4
Note 17
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
3 3 3 R R R R R
reg1,reg2 rr rr r1 11111 RRRR R
0000000010100000
GR[reg2]←GR[reg2]arithmetically shift right
by GR[reg1]
11 1 × 0 × ×SAR
imm5,reg2 rrrrr010101iiiii
GR[reg2]←GR[reg2]arithmetically shift right
by zero-extend (imm5)
11 1 × 0 × ×
SASF cccc,reg2 rrrrr1111110cccc
0000001000000000
if conditions are satisfied
then GR[reg2]←(GR[reg2]Logically shift left by 1)
OR 00000001H
else GR[reg2]←(GR[reg2]Logically shift left by 1)
OR 00000000H
11 1
reg1,reg2 rr rr r0 001 10 R RRR R GR[reg2]←saturated(GR[reg2]+GR[reg1]) 1 1 1 × × × × ×SATADD
imm5,reg2 rrrrr010001iiiii GR[reg2]←saturated(GR[reg2]+sign-extend(imm5) 1 1 1 × × × × ×
SATSUB reg1,reg2 rr rrr 000 10 1RRRRR GR[reg2]←saturated(GR[reg2]–GR[reg1]) 1 1 1 × × × × ×
SATSUBI imm16,reg1,reg2 rrr rr1 10 01 1 RR RR R
iiiiiiiiiiiiiiii
GR[reg2]←saturated(GR[reg1]–sign-extend(imm16) 1 1 1 × × × × ×
SATSUBR reg1,reg2 r r rr r0 001 00R RRRR GR[reg2]←saturated(GR[reg1]–GR[reg2]) 1 1 1 × × × × ×
SETF cccc,reg2 rrrrr1111110cccc
0000000000000000
If conditions are satisfied
then GR[reg2]←00000001H
else GR[reg2]←00000000H
11 1