Chapter5 the nasm output file, 1 nasm output overview, Chapter 5, the nasm output file – Avago Technologies LSI53C1010 User Manual
Page 139: Chapter 5, The nasm output file, Nasm output overview, Chapter 5 the nasm output file
SCSI SCRIPTS Processors
5-1
Chapter 5
The NASM Output File
This chapter describes the output from NASM assembler and contains
the following sections:
•
Section 5.1, “NASM Output Overview,” page 5-1
•
Section 5.2, “NASM Output File Examples,” page 5-2
5.1 NASM Output Overview
The NASM assembler produces an output file containing all the
necessary data structures and information needed by a programmer
writing a driver program to load and run a SCSI SCRIPTS program. The
assembler produces data structures compatible with ANSI “C”. The
structures are included in a “C” program and compiled without any
modifications.
Three command line parameters determine whether certain structures
will be produced in the output file. The
-o
option allows NASM to
generate all of the structures described in this chapter. The
-p
option
allows generation of only some of the structures; please refer to the
documentation for each section to see effects of the options. Finally, the
-u
option only affects the Termination Record which is detailed later in
this chapter. The
-o
and
-p
options should not be used together. If they
are used together in the command line, the
-p
option takes precedence.
The
-u
option must be used in conjunction with either the
-o
or the
-p
option.
The example SCRIPTS program in
demonstrates the various
types of structures produced by the NASM assembler.