![NEC mPD17120 Subseries Скачать руководство пользователя страница 206](http://html.mh-extra.com/html/nec/mpd17120-subseries/mpd17120-subseries_user-manual_249259206.webp)
CHAPTER 18 INSTRUCTION SET
191
RP (general register pointer) is assigned in the system register, as shown above.
Therefore, to set bank 0 and row address 2 in a general register, 00H must be stored in RPH and 04H,
in RPL.
In this case, the subsequent arithmetic operation is executed in binary 4-bit operation, because the BCD
flag is reset.
Example 3
Adds the address 0.6FH contents to the address 0.03H contents and stores the result in address 0.03H. At
this time, data memory address 0.6FH can be specified, by selecting data memory address 2FH, if IXE=1,
IXH=0, IXM=4, and IXL=0, i.e., IX=0.40H.
(0.03H)
←
(0.03H) + (0.6FH)
Address obtained as result of ORing index register con-
tents, 0.40H, and data memory address 0.2FH
MEM003
MEM
0.03H
MEM02F
MEM
0.2FH
MOV
RPH, #00H
; General register bank 0
MOV
RPL, #00H
; General register row address 0
MOV
IXH, #00H
; IX
←
00001000000B
MOV
IXM, #04H
;
MOV
IXL, #00H
;
SET1
IXE
; IXE flag
←
1
ADD
MEM003, MEM02F ; IX
00001000000B (0.40H)
; Bank operand OR) 00000101111B (0.2FH)
; Specified address 00001101111B (0.6FH)
Example 4
Adds the address 0.3FH contents to the address 0.03H contents and stores the result in address 0.03H. At
this time, data memory address 0.3FH can be specified by specifying data memory address 2FH, if IXE=1,
IXH=0, IXM=1, and IXL=0, i.e., IX=0.10H.
(0.03H)
←
(0.03H) + (0.3FH)
Address obtained as result of ORing index register contents,
0.10H, and data memory address 0.2FH
MEM003
MEM
0.03H
MEM02F
MEM
0.2FH
Содержание mPD17120 Subseries
Страница 15: ... x MEMO ...
Страница 23: ... MEMO 8 ...
Страница 45: ... MEMO 30 ...
Страница 49: ... MEMO 34 ...
Страница 55: ... MEMO 40 ...
Страница 93: ... MEMO 78 ...
Страница 99: ... MEMO 84 ...
Страница 102: ...CHAPTER 11 ARITHMETIC AND LOGIC UNIT 87 MEMO ...
Страница 119: ... MEMO 104 ...
Страница 175: ... MEMO 160 ...
Страница 199: ... MEMO 184 ...
Страница 265: ... MEMO 250 ...
Страница 281: ...266 MEMO ...
Страница 285: ... MEMO 270 ...
Страница 289: ... MEMO 274 ...