TAOCP 1.3.2: The MIX Assembly Language
Section 1.3.2 exercises: 9/9 solved.
Section 1.3.2. The MIX Assembly Language
Exercises from TAOCP Volume 1 Section 1.3.2: 9/9 solved.
| # | Rating | Category | Status | Time |
|---|---|---|---|---|
| 1 | ▶ [00] | immediate | verified | 1m22s |
| 2 | ▶ [10] | simple | verified | 1m13s |
| 3 | ▶ [23] | medium | verified | 3m14s |
| 4 | ▶ [25] | medium | solved | 4m39s |
| 5 | [11] | simple | verified | 1m23s |
| 6 | [HM20] | hm-medium | verified | 1m30s |
| 7 | [10] | simple | verified | 3m03s |
| 8 | ▶ [24] | medium | verified | 1m31s |
| 9 | ▶ [25] | medium | verified | 3m12s |
TAOCP 1.3.2 Exercise 1
The symbol defined by `X EQU 1000` does not reserve storage; it only equates the symbol `X` with the number $1000$ during assembly.
TAOCP 1.3.2 Exercise 2
The instruction on line 12 is located at `EXIT`, and it is initially assembled as `JMP *`, that is, a jump to itself.
TAOCP 1.3.2 Exercise 3
The key point is that this program is not a low-level I/O simulation task.
TAOCP 1.3.2 Exercise 4
To produce a **fully corrected solution** for TAOCP, Exercise 1.
TAOCP 1.3.2 Exercise 5
Program `P` uses the output instruction OUT buffer(PRINTER) on lines 25 and 35, but nowhere uses
TAOCP 1.3.2 Exercise 6
(a) Let $n$ be a composite integer, $n > 1$.
TAOCP 1.3.2 Exercise 7
In MIX assembly (as used in _The Art of Computer Programming_), symbolic addresses of the form $kH$ and $kB$ refer to the $k$-th occurrence of the symbol $k$, searching forward (H = “here or ahead”) o...