Assignment title: Information
[This task requires you to use the MARIE simulator for Question 1. Prior to starting this task, you must ensure that the simulator is running correctly by completing the tutorial provided with the simulator, located under Resources within the Interact site.] 1. Write a MARIE program using a loop that multiplies two nonnegative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times (e.g. 3 + 3 + 3 + 3 + 3 + 3) or add 6 three times (e.g. 6+6+6). You should write and run the program using MARIE simulator. Also write the code with Address, Instruction, and Comments . [5 marks] 2. You are designing an instruction set for your computer. All the instructions are of same size (11 bits long). The size of an address field is 4 bits. You have already designed five 2address instructions and 40 1address instructions. How many 0address instructions can still you can fit? Justify your answer. [5 marks] 3. Write code to implement the expression: A= (B + C) * (D E) on 3, 2, 1 and 0address machines. In accordance with programming language practice, computing the expression should not change the values of its operands. [5 marks]