![NEC mPD17120 Subseries User Manual Download Page 227](http://html.mh-extra.com/html/nec/mpd17120-subseries/mpd17120-subseries_user-manual_249259227.webp)
CHAPTER 18 INSTRUCTION SET
212
<3> Example 1
To OR the address 0.03H contents (1010B) and the address 0.2FH contents (0111B) and store the result
(1111B) in address 0.03H:
(0.03H)
←
(0.03H) (0.2FH)
1
0
1
0
Address 03H
0
1
1
1
Address 2FH
1
1
1
1
Address 03H
OR
MEM003
MEM
0.03H
MEM02F
MEM
0.2FH
MOV
MEM003, #1010B
MOV
MEM02F, #0111B
OR
MEM003, MEM02F
(2)
OR m, #n4
OR between data memory and immediate data
<1> OP code
10
8 7
4 3
0
10110
m
R
m
C
n4
<2> Function
(m)
←
(m) n4
ORs the data memory contents and immediate data. Stores the result in data memory.
<3> Example 1
To set bit 3 (MSB) for address 0.03H:
(0.03H)
←
(0.03H) 1000B
Address 0.03
1
×
×
×
×
: don't care
MEM003
MEM
0.03H
OR
MEM003, #1000B
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 ...