beautypg.com

Zilog Z8F0130 User Manual

Page 213

background image

eZ8

CPU Core

User Manual

UM012820-0810

POP Instruction

198

Escaped Mode Addressing

Using Escaped Mode Addressing, address modes R or IR specifies a
working register. If the destination address is prefixed by

Eh

(

1110b

), a

working register is inferred. For example, if Working Register R12 (

Ch

) is

the preferred destination operand, use

ECh

as the destination operand in

the Op Code. To access registers with addresses

E0h

to

EFh

, either set the

Working Group Pointer,

RP[7:4]

, to

Eh

or use indirect addressing.

Sample Usage

If the Stack Pointer (control Registers

FFEh

and

FFFh

) contains the value

70h

and Register

70h

contains the value

44h

, the following statement

loads the value

44h

into Register

34h

. After the POP operation, the Stack

Pointer contains

71h

:

POP 34h

Object Code: 50 34

The contents of Register

70h

are not affected.

If the Stack Pointer (control Registers

FFEh

and

FFFh

) contains the value

0080h

, memory location

0080h

contains the value

55h

, and Working

Register R6 contains the value

22h

, the following statement loads the

value

55h

into Register

22h

:

POP @R6

Object Code: 51 E6

After the POP operation, the Stack Pointer contains the value

0081h

. The

contents of Working Register R6 are not affected.