beautypg.com

Zilog Z8F0130 User Manual

Page 219

background image

eZ8

CPU Core

User Manual

UM012820-0810

PUSHX Instruction

204

Attributes

Escaped Mode Addressing

Using Escaped Mode Addressing, address mode ER can specify a work-
ing 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 the Stack Pointer contains D24h, the following statement stores the
contents of Register

FCAh

in location

D23h

:

PUSHX FCAh

Object Code: C8 FC A0

After the PUSHX operation, the Stack Pointer contains the value

D23h

.

Mnemonic

Source

Op Code
(Hex)

Operand 1 Operand 2 Operand 3

PUSHX

ER2

C8

ER2[11:4]

{ER2[3:0],
0h}