![NEC mPD17120 Subseries User Manual Download Page 226](http://html.mh-extra.com/html/nec/mpd17120-subseries/mpd17120-subseries_user-manual_249259226.webp)
CHAPTER 18 INSTRUCTION SET
211
Example 3
Compares the 12-bit contents for addresses 0.00H through 0.03H with immediate data 0A3FH.
Jumps to LAB1, if the contents are the same; if not, jumps to LAB2:
MEM000
MEM
0.00H
MEM001
MEM
0.01H
MEM002
MEM
0.02H
MEM003
MEM
0.03H
SET2
CMP, Z
; CMP flag
←
1, Z flag
←
1
SUB
MEM000, #0H
; Contents for addresses 0.00H–0.03H do not
SUBC
MEM001, #0AH
; change, because CMP flag is set
SUBC
MEM002, #3H
;
SUBC
MEM003, #0FH
;
SKF1
Z
; Z flag=1, if contents are the same; if not, Z flag=0
BR
LAB1
;
BR
LAB2
LAB1:
LAB2:
18.5.3 Logical Operation Instructions
(1)
OR r, m
OR between general register and data memory
<1> OP code
10
8 7
4 3
0
00110
m
R
m
C
r
<2> Function
(r)
←
(r) (m)
ORs the general register contents with data memory contents. Stores the result in general register.
…………………………
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 ...