beautypg.com

NEC PD17062 User Manual

Page 45

background image

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

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

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