beautypg.com

3 table indirect addressing – NEC 78K/0 Series User Manual

Page 22

background image

22

CHAPTER 3 ADDRESSING

User's Manual U12326EJ4V0UM

15

1

15

0

PC

7

0

Low addr.

High addr.

Memory (Table)

Effective address+1

Effective address

0

1

0

0

0

0

0

0

0

0

8

7

8

7

6

5

0

0

1

1

1

7

6

5

1

0

ta

4–0

Instruction code

3.1.3 Table indirect addressing

[Function]

Table contents (branch destination address) of the particular location to be addressed by the lower-5-bit

immediate data of an instruction code from bit 1 to bit 5 are transferred to the program counter (PC) and

branched.

When the “CALLT [addr5]” instruction is executed, table indirect addressing is performed. Executing this

instruction enables the value to be branched to all memory spaces referencing the address stored in the

memory table of 40H to 7FH.

[Illustration]