Rev. 5.00, 09/03, page 41 of 760
Table 2.7 lists the SH7709S arithmetic instructions.
Table 2.7
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
Содержание SH7709S
Страница 2: ......
Страница 44: ...Rev 5 00 09 03 page xliv of xliv ...
Страница 62: ...Rev 5 00 09 03 page 18 of 760 ...
Страница 128: ...Rev 5 00 09 03 page 84 of 760 ...
Страница 146: ...Rev 5 00 09 03 page 102 of 760 ...
Страница 224: ...Rev 5 00 09 03 page 180 of 760 ...
Страница 246: ...Rev 5 00 09 03 page 202 of 760 ...
Страница 266: ...Rev 5 00 09 03 page 222 of 760 ...
Страница 370: ...Rev 5 00 09 03 page 326 of 760 ...
Страница 432: ...Rev 5 00 09 03 page 388 of 760 ...
Страница 532: ...Rev 5 00 09 03 page 488 of 760 ...
Страница 598: ...Rev 5 00 09 03 page 554 of 760 ...
Страница 630: ...Rev 5 00 09 03 page 586 of 760 ...
Страница 656: ...Rev 5 00 09 03 page 612 of 760 ...
Страница 684: ...Rev 5 00 09 03 page 640 of 760 ...
Страница 700: ...Rev 5 00 09 03 page 656 of 760 ...
Страница 758: ...Rev 5 00 09 03 page 714 of 760 ...
Страница 807: ...SH7709S Group Hardware Manual REJ09B0081 0500O ADE 602 250C ...