44
Table 2.8 lists the SH7709S logic operation instructions.
Table 2.8
Logic Operation Instructions
Instruction
Operation
Code
Privileged
Mode
Cycles T Bit
AND
Rm,Rn
Rn & Rm
→
Rn
0010nnnnmmmm1001
—
1
—
AND
#imm,R0
R0 & imm
→
R0
11001001iiiiiiii
—
1
—
AND.B #imm,@(R0,GBR)
(R0 + GBR) & imm
→
(R0 + GBR)
11001101iiiiiiii
—
3
—
NOT
Rm,Rn
~Rm
→
Rn
0110nnnnmmmm0111
—
1
—
OR
Rm,Rn
Rn | Rm
→
Rn
0010nnnnmmmm1011
—
1
—
OR
#imm,R0
R0 | imm
→
R0
11001011iiiiiiii
—
1
—
OR.B
#imm,@(R0,GBR)
(R0 + GBR) | imm
→
(R0 + GBR)
11001111iiiiiiii
—
3
—
TAS.B @Rn
If (Rn) is 0, 1
→
T;
1
→
MSB of (Rn)
0100nnnn00011011
—
3
Test
result
TST
Rm,Rn
Rn & Rm; if the result
is 0, 1
→
T
0010nnnnmmmm1000
—
1
Test
result
TST
#imm,R0
R0 & imm; if the result
is 0, 1
→
T
11001000iiiiiiii
—
1
Test
result
TST.B #imm,@(R0,GBR)
(R0 + GBR) & imm;
if the result is 0, 1
→
T
11001100iiiiiiii
—
3
Test
result
XOR
Rm,Rn
Rn ^ Rm
→
Rn
0010nnnnmmmm1010
—
1
—
XOR
#imm,R0
R0 ^ imm
→
R0
11001010iiiiiiii
—
1
—
XOR.B #imm,@(R0,GBR)
(R0 + GBR) ^ imm
→
(R0 + GBR)
11001110iiiiiiii
—
3
—
Содержание 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 ...