NEC PD17062 Uživatelský manuál Strana 45

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 296
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 44
45
µ
PD17062
Example 3 shows a program that transfers eight words of data from BANK2 to BANK0 data memory in units
of four words, as shown in Fig. 6-4. If the general-purpose register is allocated in a fixed row address, for
example, only in row address 0 of BANK0, instructions are needed to transfer all of the eight words to the
register and then store them into data memory. In contrast, if the row address of the general-purpose register
is changed using the general-purpose register pointer as shown in example 3, the operation can be completed
simply by executing a storage instruction.
Fig. 6-4 Execution of Instructions in Example 3
012 3456789ABCDEF
0
2
3
4
5
6
7
1
RP
BANK0
0
2
3
4
5
6
7
1
BANK1
0
2
3
4
5
6
7
1
BANK2
RP = 0000000B
RP = 0000100B
System register
Column address
Row address
System register
System register
Zobrazit stránku 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 295 296

Komentáře k této Příručce

Žádné komentáře