Rev. 3.0, 04/02, page 178 of 1064
Table 7.5
Logic Operation Instructions
Instruction
Operation
Instruction Code
Privileged
T Bit
AND
Rm,Rn
Rn & Rm
Rn
0010nnnnmmmm1001
—
—
AND
#imm,R0
R0 & imm
R0
11001001iiiiiiii
—
—
AND.B
#imm,@(R0,GBR)
(R0 + GBR) & imm
(R0 +
GBR)
11001101iiiiiiii
—
—
NOT
Rm,Rn
~Rm
Rn
0110nnnnmmmm0111
—
—
OR
Rm,Rn
Rn | Rm
Rn
0010nnnnmmmm1011
—
—
OR
#imm,R0
R0 | imm
R0
11001011iiiiiiii
—
—
OR.B
#imm,@(R0,GBR)
(R0 + GBR) | imm
(R0 +
GBR)
11001111iiiiiiii
—
TAS.B
@Rn
When (Rn) = 0, 1
T
Otherwise, 0
T
In both cases, 1
MSB of (Rn)
0100nnnn00011011
—
Test result
TST
Rm,Rn
Rn & Rm; when result = 0,
1
T
Otherwise, 0
T
0010nnnnmmmm1000
—
Test result
TST
#imm,R0
R0 & imm; when result = 0,
1
T
Otherwise, 0
T
11001000iiiiiiii
—
Test result
TST.B
#imm,@(R0,GBR)
(R0 + GBR) & imm; when result
= 0, 1
T
Otherwise, 0
T
11001100iiiiiiii
—
Test result
XOR
Rm,Rn
Rn
Rm
Rn
0010nnnnmmmm1010
—
—
XOR
#imm,R0
R0
imm
R0
11001010iiiiiiii
—
—
XOR.B #imm,@(R0,GBR)
(R0 + GBR)
imm
(R0 +
GBR)
11001110iiiiiiii
—
—
Summary of Contents for SH7751
Page 39: ...Rev 3 0 04 02 page xxxviii of xxxviii ...
Page 89: ...Rev 3 0 04 02 page 50 of 1064 ...
Page 157: ...Rev 3 0 04 02 page 118 of 1064 ...
Page 193: ...Rev 3 0 04 02 page 154 of 1064 ...
Page 225: ...Rev 3 0 04 02 page 186 of 1064 ...
Page 253: ...Rev 3 0 04 02 page 214 of 1064 ...
Page 301: ...Rev 3 0 04 02 page 262 of 1064 ...
Page 343: ...Rev 3 0 04 02 page 304 of 1064 ...
Page 607: ...Rev 3 0 04 02 page 568 of 1064 ...
Page 671: ...Rev 3 0 04 02 page 632 of 1064 ...
Page 745: ...Rev 3 0 04 02 page 706 of 1064 ...
Page 767: ...Rev 3 0 04 02 page 728 of 1064 ...
Page 1061: ...Rev 3 0 04 02 page 1022 of 1064 NMI tNMIL tNMIH Figure 23 69 NMI Input Timing ...
Page 1069: ...Rev 3 0 04 02 page 1030 of 1064 ...
Page 1103: ...Rev 3 0 04 02 page 1064 of 1064 ...