beautypg.com

7 conditional keywords, 1 if, 2 when – Avago Technologies LSI53C1010 User Manual

Page 134: 8 logical keywords, Conditional keywords, When, Logical keywords

background image

4-14

Using the LSI Logic Assembler NASM™

4.7 Conditional Keywords

Conditional keywords test for conditions such as an expected phase or
data byte.

4.7.1 IF

The IF keyword indicates that a comparison is to be done immediately.
Usage:

JUMP address, IF phase

4.7.2 WHEN

The WHEN keyword causes the chip, as an initiator, to wait for a phase
to become valid. A valid phase is indicated by REQ/ being asserted on
the SCSI bus. Since WHEN waits for the SCSI REQ/ signal when making
a comparison, it may not work when comparing for conditions that are
not related to the SCSI bus. Usage:

CALL address, WHEN data

4.8 Logical Keywords

Logical keywords are used in conjunction with conditional keywords to
add detail or additional comparisons to the conditions being tested.

Notes

The TABLE keyword defines the table entries, each of which
can be accessed by a descriptive name, but no storage is
allocated. It is up to the programmer to provide the data
definition and allocation for the SCRIPTS table in the driver
program and load the DSA prior to execution of SCRIPTS
routines.
Currently, only one TABLE keyword per SCRIPTS routine is
allowed. An error message will be generated if multiple TABLEs
are used.
The ID parameter in the data specifier allows initialization of the
table entries for use with the FROM keyword of the SELECT
and RESELECT instructions on the LSI53C8XX family chips.

This manual is related to the following products: