Section 3 Instruction Set
Rev.1.00 Dec. 13, 2005 Page 61 of 1286
REJ09B0158-0100
Table 3.5
Arithmetic Operation Instructions
Instruction Operation
Instruction Code
Privileged T Bit
New
ADD
Rm,Rn
Rn + Rm
→
Rn
0011nnnnmmmm1100
— — —
ADD
#imm,Rn Rn + imm
→
Rn
0111nnnniiiiiiii
— — —
ADDC
Rm,Rn
Rn + Rm + T
→
Rn,
carry
→
T
0011nnnnmmmm1110
— Carry
—
ADDV
Rm,Rn
Rn + Rm
→
Rn,
overflow
→
T
0011nnnnmmmm1111
— Overflow
—
CMP/EQ
#imm,R0 When R0 = imm, 1
→
T
Otherwise, 0
→
T
10001000iiiiiiii
— Comparison
result
—
CMP/EQ
Rm,Rn
When Rn = Rm, 1
→
T
Otherwise, 0
→
T
0011nnnnmmmm0000
— Comparison
result
—
CMP/HS Rm,Rn When
Rn
≥
Rm (unsigned),
1
→
T
Otherwise, 0
→
T
0011nnnnmmmm0010
— Comparison
result
—
CMP/GE Rm,Rn When
Rn
≥
Rm (signed),
1
→
T
Otherwise, 0
→
T
0011nnnnmmmm0011
— Comparison
result
—
CMP/HI
Rm,Rn
When Rn > Rm (unsigned),
1
→
T
Otherwise, 0
→
T
0011nnnnmmmm0110
— Comparison
result
—
CMP/GT
Rm,Rn
When Rn > Rm (signed),
1
→
T
Otherwise, 0
→
T
0011nnnnmmmm0111
— Comparison
result
—
CMP/PZ Rn
When
Rn
≥
0, 1
→
T
Otherwise, 0
→
T
0100nnnn00010001
— Comparison
result
—
CMP/PL
Rn
When Rn > 0, 1
→
T
Otherwise, 0
→
T
0100nnnn00010101
— Comparison
result
—
CMP/STR
Rm,Rn
When any bytes are equal,
1
→
T
Otherwise, 0
→
T
0010nnnnmmmm1100
— Comparison
result
—
DIV1 Rm,Rn
1-step
division
(Rn
÷
Rm)
0011nnnnmmmm0100
— Calculation
result
—
DIV0S
Rm,Rn
MSB of Rn
→
Q,
MSB of Rm
→
M, M^Q
→
T
0010nnnnmmmm0111
— Calculation
result
—
DIV0U
0
→
M/Q/T
0000000000011001
— 0
—
DMULS.L Rm,Rn Signed,
Rn
×
Rm
→
MAC,
32
×
32
→
64 bits
0011nnnnmmmm1101
— — —
Summary of Contents for SH7780 Series
Page 2: ...Rev 1 00 Dec 13 2005 Page ii of l ...
Page 28: ...Rev 1 00 Dec 13 2005 Page xxviii of l ...
Page 50: ...Rev 1 00 Dec 13 2005 Page l of l ...
Page 82: ...Section 1 Overview Rev 1 00 Dec 13 2005 Page 32 of 1286 REJ09B0158 0100 ...
Page 122: ...Section 3 Instruction Set Rev 1 00 Dec 13 2005 Page 72 of 1286 REJ09B0158 0100 ...
Page 146: ...Section 4 Pipelining Rev 1 00 Dec 13 2005 Page 96 of 1286 REJ09B0158 0100 ...
Page 196: ...Section 6 Floating Point Unit FPU Rev 1 00 Dec 13 2005 Page 146 of 1286 REJ09B0158 0100 ...
Page 292: ...Section 9 L Memory Rev 1 00 Dec 13 2005 Page 242 of 1286 REJ09B0158 0100 ...
Page 492: ...Section 12 DDR SDRAM Interface DDRIF Rev 1 00 Dec 13 2005 Page 442 of 1286 REJ09B0158 0100 ...
Page 674: ...Section 15 Clock Pulse Generator CPG Rev 1 00 Dec 13 2005 Page 624 of 1286 REJ09B0158 0100 ...
Page 692: ...Section 16 Watchdog Timer and Reset Rev 1 00 Dec 13 2005 Page 642 of 1286 REJ09B0158 0100 ...
Page 726: ...Section 18 Timer Unit TMU Rev 1 00 Dec 13 2005 Page 676 of 1286 REJ09B0158 0100 ...
Page 1032: ...Section 25 Audio Codec Interface HAC Rev 1 00 Dec 13 2005 Page 982 of 1286 REJ09B0158 0100 ...
Page 1150: ...Section 28 General Purpose I O GPIO Rev 1 00 Dec 13 2005 Page 1100 of 1286 REJ09B0158 0100 ...
Page 1184: ...Section 29 User Break Controller UBC Rev 1 00 Dec 13 2005 Page 1134 of 1286 REJ09B0158 0100 ...
Page 1266: ...Section 31 Electrical Characteristics Rev 1 00 Dec 13 2005 Page 1216 of 1286 REJ09B0158 0100 ...
Page 1328: ...Appendix Rev 1 00 Dec 13 2005 Page 1278 of 1286 REJ09B0158 0100 ...
Page 1336: ...Rev 1 00 Dec 13 2005 Page 1286 of 1286 REJ09B0158 0100 ...
Page 1339: ......
Page 1340: ...SH7780 Hardware Manual ...