back | Last regenerated: 2010-09-08 15:25:13 kio |
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) default output format if no option '-b' or '-x' is used: intel hex format for TTYs binary for regular files and other non-TTYs 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.
zasm ... [-l filename|""|dirname] ... specify list file(s):
same rules as for Target filesoutput files except use of stderr.
|