Rev. 5.00, 09/03, page 44 of 760
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: ......
Страница 44: ...Rev 5 00 09 03 page xliv of xliv ...
Страница 62: ...Rev 5 00 09 03 page 18 of 760 ...
Страница 128: ...Rev 5 00 09 03 page 84 of 760 ...
Страница 146: ...Rev 5 00 09 03 page 102 of 760 ...
Страница 224: ...Rev 5 00 09 03 page 180 of 760 ...
Страница 246: ...Rev 5 00 09 03 page 202 of 760 ...
Страница 266: ...Rev 5 00 09 03 page 222 of 760 ...
Страница 370: ...Rev 5 00 09 03 page 326 of 760 ...
Страница 432: ...Rev 5 00 09 03 page 388 of 760 ...
Страница 532: ...Rev 5 00 09 03 page 488 of 760 ...
Страница 598: ...Rev 5 00 09 03 page 554 of 760 ...
Страница 630: ...Rev 5 00 09 03 page 586 of 760 ...
Страница 656: ...Rev 5 00 09 03 page 612 of 760 ...
Страница 684: ...Rev 5 00 09 03 page 640 of 760 ...
Страница 700: ...Rev 5 00 09 03 page 656 of 760 ...
Страница 758: ...Rev 5 00 09 03 page 714 of 760 ...
Страница 807: ...SH7709S Group Hardware Manual REJ09B0081 0500O ADE 602 250C ...