beautypg.com

Vector – Zilog Z8F0130 User Manual

Page 333

background image

UM013037-1212

VECTOR

Zilog Developer Studio II – Z8 Encore!

User Manual

309

Syntax

<label> VAR <expression>

Example

A 6

SEGMENT NEAR_DATA

A 7

ALIGN 2

000000FF A 8 STRVAR

VAR FFH

000000 FF A 9

DB

STRVAR

A 10

SEGMENT TEXT

000000 A 11 L__0:

000000 4641494C 4544 A 12

DB

"FAILED"

000006 00 A 13

DB

0

A 14

SEGMENT NEAR_DATA

A 15

ALIGN 2

00000000 A 16 STRVAR VAR L__0

A 17

000002 A 18 _fail_str:

000002 00 A 19

DB

STRVAR

A 20

SEGMENT TEXT

000007 A 21 L__1:

000007 50415353 4544 A 22

DB

"PASSED"

00000D 00 A 23

DB

0

00000007 A 24 STRVAR VAR L__1

A 25

SEGMENT NEAR_DATA

A 26

ALIGN 2

000004 A 27 _pass_str:

000004 07 A 28

DB

STRVAR

VECTOR

Initializes an interrupt or reset vector to a program address. <vector name> specifies
which vector is being selected. Except for Z8 Encore! MC or 16 K XP parts, which are
covered in the succeeding tables, <vector name> must be represented by one of the fol-
lowing terms: