beautypg.com

2 using nasm, Using nasm – Avago Technologies LSI53C1010 User Manual

Page 122

background image

4-2

Using the LSI Logic Assembler NASM™

To assure portability, NASM does not provide support for directory paths.
The resulting output file and the optional listing file will be placed in the
directory where NASM is executed. Since the assembler is written in “C”,
it can easily be ported to any non-DOS based development environment
that offers a “C” compiler.

4.2 Using NASM

Before running the assembler, you must copy the assembler executable
file directly into the directory from which the assembly will be performed.
Entering

NASM

on the command line with no arguments produces a short

description of all the valid switches. The NASM command line recognizes
DOS wild card characters(“*”, “?”) in filenames. Usage:

NASM filename [options]

where:

filename

Name of the file you generated that is being assembled. Files
should be specified in the standard DOS format:

[d:]

[path] name.ext

The file name is the root file name of the

.ss

file unless

otherwise indicated.

options

A series of options, listed in brief below, that modify the
NASM output. The option is always preceded by a hyphen (-)

a [architecture]

Specifies SCSI architecture.

b

Generates binary cross reference values.

c

Changes from little endian to big endian. Not supported by
all chips.

e [filename[.err]] Saves error messages (filename optional).

l [filename[.lis]]

Generates cross reference (filename optional).

o [filename[out]] Generates “C” source output (filename optional).

p [filename[.out]] Generates partial “C” header (filename optional).

s [filename[.bin]] Generates

.bin

format output (filename optional).

u

Excludes module termination record.

This manual is related to the following products: