Command-Line Invocation

C:\>Brass source.ext [binary.ext [export.ext]] [-switch [-switch [-...]]]

Brass only needs one command-line argument - the filename of the source file you are assembling. You can optionally pass a filename for the binary to be output - it defaults to the filename of the source file with .bin on the end.

You can also specify a file name for the label export table (generate with the .export directive).This defaults to the source filename with _labels.inc tacked on the end.

Switches can be passed as a - dash followed by a single character. The available switches are:

SwitchDescription
dDebug mode - write a debug log file for Latenite.
eStrict error mode.
lWrite list file (followed by filename).
oDo not write headers on XML error log.
sForce case sensitivity on macros and labels.
tUse external table file (followed by filename).
xExport XML error log.

As far as the error log is concerned, it will write to the file name referenced in the environment variable. Latenite sets this for you, or you can manually set it with the command (on the Windows command-line):

SET ERROR_LOG=filename

Strict error mode stops after a single error. The default is to leave this off, so the assembler will skip over errors -this produces a useless binary, but it's easier to debug when you have a large list of errors to fix rather fixing than one at a time, recompiling, repeating.

Some examples:

ExampleDescription
Brass file.asmAssembles file.asm as file.bin
Brass file.asm "out file.com"Assembles file.asm as out file.com
Brass file.asm -s hello.exeAssembles file.asm as hello.exe (case sensitive).
Brass file.asm -l hello.lstAssembles file.asm as file.bin and writes listing to hello.lst.
Brass -t tasm80.tab file.asmAssembles file.asm as file.bin using tasm80.tab.