38
Table 2.14
Logic Operation Instructions
Instruction
Instruction Code
Operation
Execution
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 HD6417032
Page 21: ......
Page 35: ...xiv ...
Page 85: ...50 ...
Page 101: ...66 ...
Page 129: ...94 ...
Page 135: ...100 ...
Page 343: ...308 ...
Page 369: ...334 ...
Page 383: ...348 ...
Page 475: ...440 ...
Page 525: ...490 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 18 Self Refresh ...
Page 578: ...543 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 62 Self Refresh ...
Page 689: ...654 ...