CHAPTER 18 INSTRUCTION SET
213
Example 2
Sets all the bits for address 0.03H:
MEM003
MEM
0.03H
OR
MEM003, #1111B
or,
MEM003
MEM
0.03H
MOV
MEM003, #0FH
(3)
AND r, m
AND between general register and data memory
<1> OP code
10
8 7
4 3
0
00100
m
R
m
C
r
<2> Function
(r)
←
(r) (m)
ANDs the general register contents with data memory contents and stores the result in general register.
<3> Example 1
ANDs the address 0.03H (1010B) contents and the address 0.2FH (0110B) contents. Stores the result
(0010B) in address 0.03H:
(0.03H)
←
(0.03H) (0.2FH)
MEM003
MEM
0.03H
MEM02F
MEM
0.2FH
MOV
MEM003, #1010B
MOV
MEM02F, #0110B
AND
MEM003, MEM02F
1
0
1
0
Address 03H
0
1
1
0
Address 2FH
0
0
1
0
Address 03H
AND
Summary of Contents for mPD17120 Subseries
Page 15: ... x MEMO ...
Page 23: ... MEMO 8 ...
Page 45: ... MEMO 30 ...
Page 49: ... MEMO 34 ...
Page 55: ... MEMO 40 ...
Page 93: ... MEMO 78 ...
Page 99: ... MEMO 84 ...
Page 102: ...CHAPTER 11 ARITHMETIC AND LOGIC UNIT 87 MEMO ...
Page 119: ... MEMO 104 ...
Page 175: ... MEMO 160 ...
Page 199: ... MEMO 184 ...
Page 265: ... MEMO 250 ...
Page 281: ...266 MEMO ...
Page 285: ... MEMO 270 ...
Page 289: ... MEMO 274 ...