CHAPTER 18 INSTRUCTION SET
230
Stores the program memory contents, addressed by address register AR, to data buffer DBF.
Since this instruction temporarily uses one stack level, pay attention to nesting such as subroutines and
interrupts.
<3> Example
To transfer 16 bits of table data, specified by the values for address registers AR3, AR2, AR1, and AR0 in
the system register, to data buffers DBF3, DBF2, DBF1, and DBF0:
; *
; ** Table data
; *
Address
ORG
0010H
0010H
DW
0000000000000000B ; (0000H)
0011H
DW
1010101111001101B ; (0ABCDH)
; *
; ** Table reference program
; *
MOV
AR3, #00H
; AR3
←
00H
Sets 0011H in address register
MOV
AR2, #00H
; AR2
←
00H
MOV
AR1, #01H
; AR1
←
01H
MOV
AR0, #01H
; AR0
←
01H
MOVT DBF, @AR
; Transfers address 0011H data to DBF
In this case, the data are stored in DBF, as follows:
DBF3=0AH
DBF2=0BH
DBF1=0CH
DBF0=0DH
(7)
PUSH AR
Push address register
<1> OP code
00111
000
1101
0000
…………
Содержание 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 ...