beautypg.com

Zilog Z8F0130 User Manual

Page 272

background image

eZ8

CPU Core

User Manual

UM012820-0810

XORX Instruction

257

Attributes

Escaped Mode Addressing

Using Escaped Mode Addressing, address mode ER for the source or des-
tination specifies a working register with 4-bit addressing.

If the high byte of the source or destination address is

EEh

(

11101110b

),

a working register is inferred. For example, the operand

EE3h

selects

Working Register R3. The full 12-bit address is provided by

{RP[3:0],

RP[7:4], 3h}

.

To access registers on Page

Eh

(addresses

E00h

to

EFFh

), set the Page

Pointer, RP[3:0], to

Eh

and set the Working Group Pointer,

RP[7:4]

, to

the preferred Working Group.

Sample Usage

If Register

93Ah

contains the value

F5h

(

11110101b

) and Register

142h

contains the value

6Ah

(

01101010b

), the following statement leaves the

value

9Fh

(

10011111b

) in Register

93Ah

, sets the S flag, and clears the

Z and V flags:

XORX 93Ah, 142h

Object Code: B8 14 29 3A

If Register

D7Ah

contains the value

07h

(

00000111b

), the following

statement leaves the value

61h

(

01100001b

) in Register

7Ah

and clears

the S, Z and V flags:

XORX D7Ah, #01100110b

Object Code: B9 66 0D 7A

Mnemonic

Destination,
Source

Op Code
(Hex)

Operand 1

Operand 2

Operand 3

XORX

ER1, ER2

B8

ER2[11:4]

{ER2[3:0],
ER1[11:8]}

ER1[7:0]

XORX

ER1, IM

B9

IM

{0h,
ER1[11:8]}

ER1[7:0]