41
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: ...Hitachi SuperH RISC engine SH7709S Hardware Manual ADE 602 250 Rev 1 0 09 21 01 Hitachi Ltd ...
Страница 75: ...56 ...
Страница 107: ...88 ...
Страница 125: ...106 ...
Страница 139: ...120 ...
Страница 203: ...184 ...
Страница 245: ...226 ...
Страница 292: ...273 T1 CKIO A25 to A0 CSn RD WR RD D31 to D0 WEn D31 to D0 BS T2 Read Write Figure 10 6 Basic Timing of Basic Interface ...
Страница 323: ...304 Tp TRr TRrw TRrw CKIO CKE CSn RAS3U RAS3L CASU CASL RD WR Figure 10 28 Synchronous DRAM Auto Refresh Timing ...
Страница 411: ...392 ...
Страница 609: ...590 ...
Страница 635: ...616 ...
Страница 663: ...644 ...
Страница 679: ...660 ...