beautypg.com

Zilog Z8F0130 User Manual

Page 200

background image

eZ8

CPU Core

User Manual

UM012820-0810

LDX Instruction

185

The contents of Working Register Pair

RR10

, Register

0529h

, and Regis-

ter

0530h

are not affected.

If Working Register Pair

RR10

contains the value

0529h

, and Working

Register R2 contains the value

E8h

, the following statement loads the

value

E8h

into Register

0530h

(

0529h + 07h = 0530h

):

LDX 7(RR10), R2

Object Code: 89 A2 07

The contents of Working Register Pair

RR10

, Register

0529h

, and Work-

ing Register R2 are not affected.

If Working Register R6 contains the value

B4h

, the following statement

loads the value

B4h

into Register

700h

:

LDX 700h, R6

Object Code: 94 67 0

0

The contents of Working Register R6 are not affected.

If Working Register R6 contains the value

B4h

, and Register

B4h

contains

the value

6Ah

, the following statement loads the value

6Ah

into Register

700h

:

LDX 700h, @R6

Object Code: 95 67 00

The contents of Working Register R6 and Register

B4h

are not affected.

If Register Pair (

F0h, F1h

) contains the value

0296h

, and Register

21h

contains the value

78h

, the following statement loads the value

78h

into

Register

296h

:

LDX @F0h, 21h

Object Code: 96 21 F0

The contents of Register Pair (

F0h, F1h

) and Register

21h

are not

affected.