Avago Technologies LSI53C1010 User Manual
Page 34

2-4
Programming with SCRIPTS
compatible with all standard “C” compilers, as well as a cross-reference
list file (
.lis
) that includes the source instruction and the assembled
output on the same line. The
.lis
file is useful for debugging code. All
instructions and data are represented as hexadecimal numbers in C style
array declarations. The
.out
file can be included in the “C” program and
linked together with other system support object files to form the final
executable code.
When the executable is run, areas of host memory are reserved for SCSI
data transfer buffers and the SCRIPTS instructions. The instructions,
which look like 32-bit integer arrays to the “C” program, are loaded into
the appropriate area of memory by the “C” code. The driver program
loads the address of the first instruction into the SCRIPTS processor to
begin the SCRIPTS execution.
illustrates an overview of assembling the SCSI SCRIPTS.