beautypg.com

Zilog Z16F2810 User Manual

Page 123

background image

UM018809-0611

ILL Instruction

ZNEO

®

CPU Core

User Manual

107

An IRET instruction must not be used to end an Illegal Instruction exception service rou-
tine. Because the stack contains the Program Counter value of the illegal instruction, an
IRET instruction returns code execution to this illegal instruction.

Flags

Flags are not affected by this instruction.

Syntax and Opcodes

Example

Before:

PC=00FD_044EH, SP=FFFF_DB22H, 0000_0008H=0000_FE00H

ILL

;Object Code: FFFF

After:

PC=0000_FE00H, SP=FFFF_DB1CH, FFFF_DB1CH=00FD_044EH,

FFFF_DB20H=00H, FFFF_DB21H=Flags[7:0]

Instruction, Operands

Word 0

Word 1

Word 2

ILL

FFFFH

Caution:

This manual is related to the following products: