Homework 4

  1. Please do problem 8, page 194
  2. Please do problem 15, page 195-196
  3. Please do problem 21, page 196
  4. Add a multiply instruction to MARIE
    1. Design a new ALU for MARIE that supports multiplication.
    2. Design a instruction to perform multiplication. Describe it.
    3. Give RTN notation to accomplish the multiply
    4. Show any modifications necessary to the state chart to accomplish this multiply instruction.
    5. Describe how this instruction will impact the performance of the chip.
  5. Repeat the previous exercise for an add immediate instruction, an instruction where the operand is added to the accumulator.
  6. Repeat the previous exercise for an jump relative instruction. This instruction will store the sum of the value of the program counter and the value of the operand in the program counter. Please note, I believe that there will be some issues with hardware that you must overcome to solve this problem.
  7. Implement in C/C++ a two pass assembler for the MARIE assembly language. This program counts as 50% of the grade for this homework.