Zilog Z86193 User Manual

Page 201

Advertising
background image

Z8

®

CPU

User Manual

UM001604-0108

Instruction Description

194

Example 11

If Working Register R0 contains the value

08h

and Register

2Ch

(

24h

+

08h

=

2Ch

) con-

tains the value

4Fh

, the statement:

LD R10, 24h(R0)

Op Code: C7 A0 24

loads Working Register R10 with the value

4Fh

. The contents of Working Register R0 and

Register

2Ch

are not affected.

Example 12

If Working Register R0 contains the value

0Bh

and Working Register R10 contains

83h

the statement:

LD F0h(R0), R10

Op Code: D7 A0 F0

loads the value

83h

into Register

FBh

(

F0h

+

0Bh

=

FBh

). Because this is the Interrupt

Mask Register, the LOAD statement has the effect of enabling IRQ0 and IRQ1. The con-
tents of Working Registers R0 and R10 are unaffected by the load.

Advertising