Section 2 CPU
Rev. 5.00 May 29, 2006 page 36 of 698
REJ09B0146-0500
Table 2.6 lists the arithmetic instructions.
Table 2.6
Arithmetic Instructions
Instruction
Operation
Code
Privileged
Mode
Cycles
T Bit
ADD
Rm,Rn
Rn + Rm
→
Rn
0011nnnnmmmm1100
—
1
—
ADD
#imm,Rn
Rn + imm
→
Rn
0111nnnniiiiiiii
—
1
—
ADDC
Rm,Rn
Rn + Rm + T
→
Rn,
Carry
→
T
0011nnnnmmmm1110
—
1
Carry
ADDV
Rm,Rn
Rn + Rm
→
Rn,
Overflow
→
T
0011nnnnmmmm1111
—
1
Overflow
CMP/EQ
#imm,R0
If R0
=
imm, 1
→
T
10001000iiiiiiii
—
1
Comparison
result
CMP/EQ
Rm,Rn
If Rn
=
Rm, 1
→
T
0011nnnnmmmm0000
—
1
Comparison
result
CMP/HS
Rm,Rn
If Rn
≥
Rm with
unsigned data, 1
→
T
0011nnnnmmmm0010
—
1
Comparison
result
CMP/GE
Rm,Rn
If Rn
≥
Rm with signed
data, 1
→
T
0011nnnnmmmm0011
—
1
Comparison
result
CMP/HI
Rm,Rn
If Rn > Rm with
unsigned data, 1
→
T
0011nnnnmmmm0110
—
1
Comparison
result
CMP/GT
Rm,Rn
If Rn > Rm with signed
data, 1
→
T
0011nnnnmmmm0111
—
1
Comparison
result
CMP/PZ
Rn
If Rn
≥
0, 1
→
T
0100nnnn00010001
—
1
Comparison
result
CMP/PL
Rn
If Rn > 0, 1
→
T
0100nnnn00010101
—
1
Comparison
result
CMP/STR Rm,Rn
If Rn and Rm have an
equivalent byte, 1
→
T
0010nnnnmmmm1100
—
1
Comparison
result
DIV1
Rm,Rn
Single-step division
(Rn/Rm)
0011nnnnmmmm0100
—
1
Calculation
result
DIV0S
Rm,Rn
MSB of Rn
→
Q, MSB
of Rm
→
M, M ^ Q
→
T
0010nnnnmmmm0111
—
1
Calculation
result
DIV0U
0
→
M/Q/T
0000000000011001
—
1
0
Содержание SH7706 Series
Страница 8: ...Rev 5 00 May 29 2006 page viii of xlviii ...
Страница 160: ...Section 5 Cache Rev 5 00 May 29 2006 page 112 of 698 REJ09B0146 0500 ...
Страница 370: ...Section 11 Watchdog Timer WDT Rev 5 00 May 29 2006 page 322 of 698 REJ09B0146 0500 ...
Страница 532: ...Section 16 Serial Communication Interface with FIFO SCIF Rev 5 00 May 29 2006 page 484 of 698 REJ09B0146 0500 ...
Страница 554: ...Section 17 Pin Function Controller PFC Rev 5 00 May 29 2006 page 506 of 698 REJ09B0146 0500 ...
Страница 576: ...Section 18 I O Ports Rev 5 00 May 29 2006 page 528 of 698 REJ09B0146 0500 ...
Страница 614: ...Section 21 User Debugging Interface H UDI Rev 5 00 May 29 2006 page 566 of 698 REJ09B0146 0500 ...
Страница 746: ...Index Rev 5 00 May 29 2006 page 698 of 698 REJ09B0146 0500 ...
Страница 749: ...SH7706 Group Hardware Manual ...