CHAPTER 7 SYSTEM REGISTER (SYSREG)
50
7.5.3 MPE=0 and IXE=0 (No Data Memory Modification)
As shown in Figure 7-8, data memory addresses are not affected by the index register and the data memory row
address pointer.
(1) Data memory manipulation instructions
Example 1. General register is in row address 0
R003
MEM
0.03H
M061
MEM
0.61H
ADD
R003, M061
As shown in Figure 7-9, when the above instructions are executed, the data in general register
address R003 and data memory address M061 are added together and the result is stored
in general address R003.
(2) Indirect transfer of data in the general register (horizontal indirect transfer)
Example 2. General register is in row address 0
R005
MEM
0.05H
M034
MEM
0.34H
MOV
R005, #8
; R005
←
8
MOV
@R005, M034
; Indirect transfer of data in the register
As shown in Figure 7-9, when the above instructions are executed, the data stored in data
memory address M034 is transferred to data memory location 38H.
In other words, the MOV @r, m instruction causes the contents in the data memory address
specified by m to be transferred to the data memory location specified by @r (which by
definition has the same row address as m).
The indirect data transfer address has the same row address as m (example above uses row
address 3) and the column address is the value contained in the general register address
specified by r (example above uses column address 8). Therefore the address in the above
example is 38H.
Содержание 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 ...