Rev. 1.50, 10/04, page 33 of 448
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
— — —
DMULU.L Rm,Rn Unsigned,
Rn
×
Rm
→
MAC,
32
×
32
→
64 bits
0011nnnnmmmm0101
— — —
Содержание SuperH SH-4A
Страница 2: ...Rev 1 50 10 04 page ii of xx ...
Страница 8: ...Rev 1 50 10 04 page viii of xx ...
Страница 116: ...Rev 1 50 10 04 page 96 of 448 ...
Страница 178: ...Rev 1 50 10 04 page 158 of 448 ...
Страница 206: ...Rev 1 50 10 04 page 186 of 448 ...
Страница 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Страница 445: ...Rev 1 50 10 04 page 425 of 448 Possible Exceptions Invalid operation Overflow Underflow Inexact ...
Страница 446: ...Rev 1 50 10 04 page 426 of 448 ...
Страница 468: ...Rev 1 50 10 04 page 448 of 448 ...
Страница 471: ......
Страница 472: ...SH 4A Software Manual ...