beautypg.com

Indirect register addressing, Cpu core user manual – Zilog Z8F0130 User Manual

Page 54

background image

eZ8

CPU Core

User Manual

UM012820-0810

Addressing Modes

32

Indirect Register Addressing

In Indirect Register Addressing Mode, symbol IR, the contents of the
specified Register provide an address as displayed in

Figure 11

and

Figure 12

. Depending on the instruction selected, the specified Register

contents point to a register File, Program Memory, or an Data Memory
location. When accessing Program Memory or Data Memory, Register
Pairs or Working Register Pairs hold the 16-bit addresses.

Figure 11. Indirect Register Addressing to Register File

One 8-bit

Program Memory

Address

(dst)

One Operand

Instruction
(Example)

Op Code

dst[7:0]

Destination

Register File

Register

12-bit address is

{RP[3:0], dst[7:0]}

Value used

in execution

Register

contains 8-bit

address (addr[7:0])

1

2

-b

it

addr

ess is

{R

P

[3

:0

], ad

d

r[7

:0

]}