Rev. 2.00, 09/03, page 56 of 690
Table 2.8
Logic Operation Instructions
Instruction
Instruction
Code
Operation
Privileged
Mode
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
–
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...