Usage: z80asm -ofile -f[b|m|h] -l[file] -s[n|a] -v -dsymbol ... file ... A maximum of 512 source files is allowed. If the filename of a source doesn't have an extension the default extension ".asm" will be concated. Source file names may have a path, the maximum length of a full qualified filename is 128 characters. If one use relative paths, the extension must be given, because all after a "." would be used as extension! Option o: To override the default name of the output file. Without this option the name of the output file becomes the name of the input file, but with the extension ".bin". The output file may have a path, the maximum length is limited to 128 characters. Option f: Format of the output file: -fb -> binary file -fm -> binary file with Mostek header -fh -> Intel hex Option l: Without this option no list file will be generated. With -l a list file with the name of the source file but extension ".lis" will be generated. An optional file name with path (128 characters maximum) may be added to this option. Option s: This option writes the unsorted symbol table (-s), sorted by name (-sn) or sorted by address (-sa) into the list file. This options works only, if option -l was given. Option v: Verbose operation of the assembler. Option d: With this option one can predefine symbols with a value of 0. The number of this option is not limited in the command line. Pseudo Operations: Definition of symbols and allocation of memory: ORG - set program address EQU - define constant symbol DEFL - define variable symbol DEFB - write bytes in memory DEFW - write words (16 bits) in memory DEFM <'string'> - write character string in memory DEFS - reserve space in memory Conditional assembly: IFDEF - assemble if symbol defined IFNDEF - assemble if symbol not defined IFEQ - assemble if equal IFNEQ - assemble if not equal ELSE - else for all conditionals ENDIF - end of conditional assembly Manipulation of list file: PAGE - number of lines/page EJECT - skip to new page LIST - listing on NOLIST - listing off TITLE <'string'> - define title for page header Others: INCLUDE - include another source file PRINT <'string'> - print string to stdout in pass one