16 is an assembler and emulator for Donald Knuth's
19 architecture. The command assembles the named
21 files into memory and then presents a command
22 prompt to control an emulated
26 option causes the emulator immediately to run a complete assembled
28 program and exits when the emulator halts.
30 The following commands are accepted:
35 An optional field specification is given by
39 Start the MIXAL assembler. The assembler will begin
40 assembling at the address after the last assembled
41 instruction. If no file is given, the assembler will
42 accept instructions from the console.
45 Set or unset a breakpoint at
51 machine to a fresh state by clearing all memory
55 Disassemble the instruction at
59 Print the alphanumeric
67 alphanumeric mix words starting at
71 Print the value in register
73 where * is one of a, x, ax, j, or 1-6. An optional
74 field specification is given by
78 Step through one instruction of the emulated
85 machine at the instruction specified by the
90 Quit the emulator/assembler.
94 field of the above instructions must be an integer between 0 and 3999
95 inclusive. A number-sign (#) or an asterisk (*) at the beginning of
96 a line starts a comment which extends to the end
102 Donald Knuth, ``The Art of Computer Programming'', Volume 1. Section 1.3
104 .B /sys/src/games/mix/examples
106 As opposed to Knuth's specification,
109 pseudo-instruction takes as argument five
111 characters surrounded by quotation marks.
112 Unresolved forward references are assembled
113 to 0 instead of to a location determined by
118 The magnetic tapes and drum units are not
121 Comments are handled as described above and not
122 exactly as Knuth specifies.