MIX Assembler and Simulator |
Sergey Poznyakoff, Douglas Laing |
MIX Manual (split by node): | ? |
mixrun
The MIX package provides a utility for assembling and executing a
MIXAL file in one run. The utility is called mixrun
. In its
simplest form, it is called with the name of MIXAL source file as
an argument, e.g.:
$ mixrun hello.mix HELLO, WORLD Registers A/X +00000000000 +00041363636 + 0 + 8775582 Index Registers +00000 +00000 +05670 +00000 +00000 +00000 + 0 + 0 + 3000 + 0 + 0 + 0 … |
By default, a dump of the machine state is produced at the standard error. To
direct it to another file, use ‘--dump’ (‘-d’) command
line option, e.g.: mixrun --dump=hello.dump hello.mix
.
To suppress the dump, use ‘--no-dump’ command line option.
You can also request producing a listing file. To do so, use ‘--list’ (‘-l’) option. By default, the name of the listing file is constructed by appending ‘.lst’ suffix to the base name of the input file. To use another file, give its name as an argument to ‘--list’, as in the example below:
$ mixrun --list=my.list ‘input’
# or:
$ mixrun -lmy.list ‘input’
|
Notice, that an argument to ‘--list’ option must be separated from it by an equals sign, with no whitespace on any side of it. Similarly, when a short form, ‘-l’, is used, its argument must follow the option immediately.
As any other MIX program, mixrun
understands two
informational options. The option ‘--version’ (‘-V’)
displays the program version and a short licensing information, and
the option ‘--help’ (‘-h’) shows a short usage summary.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.