beautypg.com

Zilog Z8F0130 User Manual

Page 265

background image

eZ8

CPU Core

User Manual

UM012820-0810

TRAP Instruction

250

Flags

Attributes

Sample Usage

If Register

68h

contains the value

A0h

, and Register

69h

contains the

value

2Fh

, the following statement pushes the Flags and Program Counter

onto the stack. The Program Counter loads the value

A02Fh

. Program

execution resumes at address

A02Fh

:

TRAP #%34

Object Code: F2 34

C

Unaffected

Z

Unaffected

S

Unaffected

V

Unaffected

D

Unaffected

H

Unaffected

Mnemonic Destination

Op
Code
(Hex) Operand 1 Operand 2 Operand 3

TRAP

Vector

F2

Vector