beautypg.com

Zilog Z8F0130 User Manual

Page 169

background image

eZ8

CPU Core

User Manual

UM012820-0810

IRET Instruction

154

Attributes

Sample Usage

If Stack Pointer High register,

FFEh

, contains the value

EFh

, Stack

Pointer Low register

FFFh

contains the value

45h

, Register

45h

contains

the value

00h

, Register

46h

contains

6Fh

, and Register

47h

contains

E4h

, the following statement restores the Flags Register

FCh

with the

value

00h

, restores the PC with the value

6FE4h

, re-enables the inter-

rupts, and sets the Stack Pointer Low to the value

48h

. The Stack Pointer

High register remains unchanged with the value

EFh

. The next instruction

to be executed is at

6FE4h

.

IRET

Object Code: BF

Mnemonic

Destination,
Source

Op
Code
(Hex)

Operand 1 Operand 2 Operand 3

IRET

BF