Section 2 CPU
Rev. 2.00 Mar 09, 2006 page 81 of 906
REJ09B0292-0200
Instruction
Instruction Code
Operation
Cycles
T Bit
SUB
Rm,Rn
0011nnnnmmmm1000
Rn–Rm
→
Rn
1
—
SUBC
Rm,Rn
0011nnnnmmmm1010
Rn–Rm–T
→
Rn,
Borrow
→
T
1
Borrow
SUBV
Rm,Rn
0011nnnnmmmm1011
Rn–Rm
→
Rn,
Underflow
→
T
1
Underflow
Note:
*
The normal number of execution cycles. The number in parentheses is the number of
execution cycles in the case of contention with preceding or following instructions.
Table 2.22 Logic Operation Instructions
Instruction
Instruction Code
Operation
Cycles
T Bit
AND
Rm,Rn
0010nnnnmmmm1001
Rn & Rm
→
Rn
1
—
AND
#imm,R0
11001001iiiiiiii
R0 & imm
→
R0
1
—
AND.B
#imm,@(R0,GBR)
11001101iiiiiiii
(R0 + GBR) & imm
→
(R0 + GBR)
3
—
NOT
Rm,Rn
0110nnnnmmmm0111
~Rm
→
Rn
1
—
OR
Rm,Rn
0010nnnnmmmm1011
Rn | Rm
→
Rn
1
—
OR
#imm,R0
11001011iiiiiiii
R0 | imm
→
R0
1
—
OR.B
#imm,@(R0,GBR)
11001111iiiiiiii
(R0 + GBR) | imm
→
(R0 + GBR)
3
—
TAS.B
@Rn
0100nnnn00011011
If (Rn) is 0, 1
→
T,
1
→
MSB of (Rn)
4
Test
result
TST
Rm,Rn
0010nnnnmmmm1000
Rn & Rm, if the result is
0, 1
→
T
1
Test
result
TST
#imm,R0
11001000iiiiiiii
R0 & imm, if the result is
0, 1
→
T
1
Test
result
TST.B
#imm,@(R0,GBR)
11001100iiiiiiii
(R0 + GBR) & imm, if the
result is 0, 1
→
T
3
Test
result
XOR
Rm,Rn
0010nnnnmmmm1010
Rn ^ Rm
→
Rn
1
—
XOR
#imm,R0
11001010iiiiiiii
R0 ^ imm
→
R0
1
—
XOR.B
#imm,@(R0,GBR)
11001110iiiiiiii
(R0 + GBR) ^ imm
→
(R0 + GBR)
3
—
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...