Learn · Volume 1 · in the Volume 1 course
Section 1.3.2. The MIX assembly language
9 exercises: 9 with a written solution, 0 stated in Lean, 0 proved in Lean.
1. Read first
The companion chapter builds on these. Read the ones you do not know yet.
- P1. Proof, induction and invariants
- P2. Concrete mathematics
- C1, Section 1.1. Algorithms draft
- C1, Section 1.2.4. Integer functions and elementary number theory draft
2. Read the section
Read Section 1.3.2 in your copy of the book. Then read the companion chapter The MIX assembly language (a draft): it explains each item in the words of the handbook, with examples and proofs. The items of the section and their status.
3. Work the exercises
The exercises of this section train reading and writing MIXAL: the meaning of the symbols and of local labels, assembling a program by hand, tracing a short program, and building a table-driven check of a machine word. A good order by rating is 1, 2, 7, 5, 6, 3, 8, 4 and 9.
From the Solutions volume of the handbook. The source.
The list starts with the lowest rating. Try each exercise on paper first. Its page has the hints one at a time, the solution behind a click, and the Lean status.
| Exercise | Rating | Kind | Solution | Lean |
|---|---|---|---|---|
| 1.3.2-1 recommended | 00 | K6 | written | not stated yet |
| 1.3.2-2 recommended | 10 | K7 | written | not stated yet |
| 1.3.2-7 | 10 | K7 | written | not stated yet |
| 1.3.2-5 | 11 | K7 | written | not stated yet |
| 1.3.2-6 | HM20 | K1 | written | not stated yet |
| 1.3.2-3 recommended | 23 | K7 | written | not stated yet |
| 1.3.2-8 recommended | 24 | K7 | written | not stated yet |
| 1.3.2-4 recommended | 25 | K8 | written | not stated yet |
| 1.3.2-9 recommended | 25 | K6 | written | not stated yet |
Something is wrong? Report it.