zasm - Z80 Assembler

Command line options

When invoking zasm you can append options to it on the command line, most notably the file name of the assembler Source filessource file.

zasm  [-vwbx12]  [[-i] inputfile]  [-o outfile]  [-l listfile]

Typical invocations

zasm speccirom.src
zasm romsources/* -o Target files: #target romroms/
zasm -vw2 -i speccirom.src -o rom_v2.0.1.Target files: #target romrom

zasm -buggy arguments

display help

zasm [-vwbx12] ...

all options start with '-'
-1  enable Listings and Errorslisting in pass 1
-2  enable Listings and Errorslisting in pass 2
-v  Listings and Errors: Listing with object codeinclude object code in Listings and Errorslisting
-w  append Listings and Errors: Label listinglabel listing to Listings and Errorslisting
-b  write output as binary Pseudo instructions: datadata (default except for TTY)
-x  write output in intel hex format (enforced for TTY)

zasm ... [[-i] filenames|dirname] ...

specify input file(s):
if no input file is given, zasm reads from stdin (BUGGY!).
if one or multiple files are given, zasm runs once for each file.
if input is a tty, then zasm runs in command line mode (BUGGY!).
note: '-i' is optional (for most filenames).

zasm ... [-o filename|""|dirname] ...

specify Target filesoutput file(s):
-o <filename>     => output is written to that file.
-o ""             => output is written to stdout.
-o <directory>:
    input = file  => output to regular files with derived filenames.
    input = stdin => default filenames are used.
if no output is specified:
    input = file  => output to regular file with a derived filename.
    input = stdin => output is written to stdout.

if output is not a TTY and no option '-x' is given,
    then the object code is stored as binary Pseudo instructions: datadata,
else if output is a TTY or option '-x' is given,
    then the object code ist written in the General rules: Intel hex file formatintel hex file format.

zasm ... [-l filename|""|dirname] ...

specify list file(s):
same rules as for Target filesoutput files except use of stderr.

Valid HTML   Valid CSS