beautypg.com

4 using scsi scripts, 1 scripts data sizes, Table 2.2 data sizes – Avago Technologies LSI53C1010 User Manual

Page 36: 2 scsi scripts language elements, Table 2.3 scsi scripts language elements, Using scsi scripts, Scripts data sizes, Scsi scripts language elements, Data sizes, Index mapping

background image

2-6

Programming with SCRIPTS

2.4 Using SCSI SCRIPTS

The following section of the chapter describes various aspects of SCSI
SCRIPTS.

2.4.1 SCRIPTS Data Sizes

Table 2.2

describes SCSI SCRIPTS data sizes.

2.4.2 SCSI SCRIPTS Language Elements

Table 2.3

describes the SCSI SCRIPTS language elements.

Table 2.2

Data Sizes

Address

a 32-bit number

Value

a 32-bit number

Count

a 24-bit number

Data

an 8-bit number

ID

a 4-bit encoded SCSI ID

Table 2.3

SCSI SCRIPTS Language Elements

Term

Definition

name

A name is a string of one or more consecutive characters. It may consist of letters,
numbers, underscores, and dollar signs, but must begin with an alphabetic character.
When used for labels, externals, and variables in the relative data area, names are
passed on to the host development system and are subject to the host's syntactic
restrictions. Names cannot be reserved words in the host language. For example,
Turbo C, which is used as the host development system for NASM, does not allow names
to begin with a digit or to contain a dollar sign ($). Therefore, the SCSI SCRIPTS writer
for DOS and Turbo C should avoid names of this form.

label

A label is a name followed by a colon. Labels are symbolic addresses that can be used
as transfer control destination points, such as jump or call destinations. Labels are case
sensitive.

comment

Comments are used to notate the SCRIPTS. They are optional and are ignored by the
compiler. Comments begin with a semicolon and continue to the end of a line.

This manual is related to the following products: