Carleton College CS 107, Explorations in Computer Science
Assignment:
Work through Laboratory 5, and turn in Exercises 1, 2, and 3. Make sure to take note of the following clarifications and modifications.
For Exercise 1:
- Question 3 should be corrected as follows: "The program is four
instructions long, in memory address 0, 1, 2, and 3. Write down the
four instructions or take a screenshot."
- Question 5 should be corrected as follows: "Decode the four
instructions. Look at the first four bits of each memory cell and find
those bit patterns in the opcodes key. Write down the corresponding
three-letter mnemonic. Accordingly, look at the remaining 12 bits in
each memory cell and convert that integer to decimal (base
10). Writing your program in this way is referred to as
disassembling it. Finally, next to each opcode/operand
combination, write down a short phrase in English in your own words
describing what happens."
For Exercise 2:
- Insert the following question in between questions 2 and 3:
2.5) In a similar fashion to Exercise 1, disassemble this
program. Write down each opcode/operand pair, and provide a short
phrase in English in your own words describing what happens.
For Exercise 3:
- There is a typo in question 1: you should press the Clear
mem button, not the Clear Menu button (which doesn't
exist).