Chapter 3. LWASM

The LWTOOLS assembler is called LWASM. This chapter documents the various features of the assembler. It is not, however, a tutorial on 6x09 assembly language programming.

3.1. Command Line Options

The binary for LWASM is called "lwasm". Note that the binary is in lower case. lwasm takes the following command line arguments.

--decb, -b

Select the DECB output format target. Equivalent to --format=decb.

--format=type, -f type

Select the output format. Valid values are obj for the object file target, decb for the DECB LOADM format, and raw for a raw binary.

--list[=file], -l[file]

Cause LWASM to generate a listing. If file is specified, the listing will go to that file. Otherwise it will go to the standard output stream. By default, no listing is generated.

--obj

Select the proprietary object file format as the output target.

--output=FILE, -o FILE

This option specifies the name of the output file. If not specified, the default is a.out.

--pragma=pragma, -p pragma

Specify assembler pragmas. Multiple pragmas are separated by commas. The pragmas accepted are the same as for the PRAGMA assembler directive described below.

--raw, -r

Select raw binary as the output target.

--help, -?

Present a help screen describing the command line options.

--usage

Provide a summary of the command line options.

--version, -V

Display the software version.

--debug, -d

Increase the debugging level. Only really useful to people hacking on the LWASM source code itself.