Section 2 CPU
Rev. 3.00 Sep. 27, 2007 Page 39 of 758
REJ09B0243-0300
2.5.3
Arithmetic Operation Instructions
Table 2.12 Arithmetic Operation Instructions
Instruction Operation Code
Execution
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
DMULS.L Rm,Rn
Signed operation of
Rn
×
Rm
→
MACH,
MACL 32
×
32
→
64 bits
0011nnnnmmmm1101
2 to 5
*
Содержание SH7124 R5F7124
Страница 2: ...Rev 3 00 Sep 27 2007 Page ii of xx ...
Страница 8: ...Rev 3 00 Sep 27 2007 Page viii of xx ...
Страница 36: ...Section 1 Overview Rev 3 00 Sep 27 2007 Page 16 of 758 REJ09B0243 0300 ...
Страница 68: ...Section 2 CPU Rev 3 00 Sep 27 2007 Page 48 of 758 REJ09B0243 0300 ...
Страница 108: ...Section 5 Exception Handling Rev 3 00 Sep 27 2007 Page 88 of 758 REJ09B0243 0300 ...
Страница 166: ...Section 7 User Break Controller UBC Rev 3 00 Sep 27 2007 Page 146 of 758 REJ09B0243 0300 ...
Страница 400: ...Section 9 Multi Function Timer Pulse Unit 2 MTU2 Rev 3 00 Sep 27 2007 Page 380 of 758 REJ09B0243 0300 ...
Страница 724: ...Section 20 List of Registers Rev 3 00 Sep 27 2007 Page 704 of 758 REJ09B0243 0300 ...
Страница 772: ...Rev 3 00 Sep 27 2007 Page 752 of 758 REJ09B0243 0300 ...
Страница 778: ...Rev 3 00 Sep 27 2007 Page 758 of 758 REJ09B0243 0300 ...
Страница 781: ......
Страница 782: ...SH7125 Group SH7124 Group Hardware Manual ...