Exercise · Volume 1 · 1.3.1-3
Exercise 1.3.1-3
not stated yet in Lean solution written
| Rating | 02 |
|---|---|
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.3.1 of Volume 1. Companion chapter: Description of MIX |
The task
Give the field specifications of the four parts of a MIX instruction word.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Write the layout of an instruction word, from the sign to byte 5 (formula (3) of Section 1.3.1).
Solution
Show the solution
The word has the form . The sign and bytes 1 and 2 hold the address . Byte 3 holds the index . Byte 4 holds the field . Byte 5 holds the operation code . So the specifications are:
- address: ;
- index: ;
- field: ;
- operation code: .
Check
The four fields do not overlap and together they cover : bytes , , , are positions, which are the sign and the five bytes.
Remarks
This is why STJ has the normal field : it replaces the address part of an instruction (Section 1.3.1).
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.