![NEC mPD17120 Subseries User Manual Download Page 221](http://html.mh-extra.com/html/nec/mpd17120-subseries/mpd17120-subseries_user-manual_249259221.webp)
CHAPTER 18 INSTRUCTION SET
206
(0.6FH)
←
(0.6FH) – 5
Address obtained as a result of ORing index register contents,
0.40H, and data memory address 0.2FH
MEM02F
MEM
0.2FH
MOV
BANK, #00H
; Data memory bank 0
MOV
IXH, #00H
; IX
←
00001000000B (0.40H)
MOV
IXM, #04H
;
MOV
IXL, #00H
;
SET1
IXE
; IXE flag
←
1
SUB
MEM02F, #05H
; IX
00001000000B (0.40H)
; Bank operand OR) 00000101111B (0.2FH)
; Specified address 00001101111B (0.6FH)
Example 3
Subtracts 5 from the address 0.2FH contents and stores the result in address 0.2FH. At this time, data
memory address 0.2FH can be specified by selecting data memory address 2FH, if IXE=1, IXH=0, IXM=0,
and IXL=0, i.e., IX=0.00H.
(0.2FH)
←
(0.2FH) – 5
Address obtained as a result of ORing index register contents,
0.00H, and data memory address 0.2FH
MEM02F
MEM
0.2FH
MOV
BANK0, #00H
; Data memory bank 0
MOV
IXH, #00H
; IX
←
00000000000B (0.00H)
MOV
IXM, #00H
;
MOV
IXL, #00H
;
SET1
IXE
; IXE flag
←
1
SUB
MEM02F, #05H
; IX
00000000000B (0.00H)
; Bank operand OR) 00000101111B (0.2FH)
; Specified address 00000101111B (0.2FH)
<4> Note
When the CMP flag=1, the subtraction result is not stored.
When the BCD flag=1, the BCD result is stored.
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 ...