3 entry, 4 extern, Entry – Avago Technologies LSI53C1010 User Manual
Page 129: Extern
![background image](https://www.manualsdir.com/files/864554/content/doc129.png)
Assembler Declarative Keywords
4-9
4.6.3 ENTRY
ENTRY informs the driver program of the starting location of callable
routines contained in a given SCRIPTS instruction. ENTRY allows the
declaration of variables as entry points into the SCSI SCRIPTS
instruction array. It defines the names and values of the variables,
making them also available to the host development system.
4.6.4 EXTERN
EXTERN informs the assembler that a symbol should be resolved at link
time. This keyword allows the declaration of variables that are defined
external to the SCRIPTS program. EXTERN causes the assembler to
keep an array of offsets into the SCRIPTS array that the driver can use
to patch SCRIPTS instructions into the driver program.
Example
ARCH 810A
ARCH 875
Notes
If used, this keyword should be placed before any executable
statements so that the assembler knows which chip to generate
code for. The chip architecture may also be specified on the
assembler command line for the assembler using the
-A
chip_number
option. ARCH takes precedence over the
-A
option
in the NASM command line. The chip number entries should use
the last three digits of the product number, as indicated in the
example above.
Syntax
ENTRY label [, label ...]
Example
ENTRY start, Data_Out_Entry
Description
The ENTRY keyword indicates which SCRIPTS entry points
should be made visible to the driver code. Only those entry points
named in the ENTRY keyword will generate information in the
assembler output file.
Notes
All entries must be used as a label somewhere in the SCRIPTS
code, otherwise an error message will be reported.