Assignment title: Information


Answer the following questions: [This task requires you to use the MARIE simulator for Questions 1 and 2. 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. Assemble the MARIE program below. Hex Address Label Instruction

100 Start LOAD A

101 ADD B 102 STORE D

103 CLEAR

104 OUTPUT

105 ADDI D

106 STORE B 107 HALT

108 A, HEX 00FC 109 B, DEC 14

10A C, HEX 0108

10B D, HEX 0000 a) List the hexadecimal code for each instruction [3 marks] b) Draw the symbol table [2 marks]

c) What is the value stored in the AC when the program terminates. [1 mark]

2. Write a MARIE program using a loop that multiplies two 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. You should write and run the program using MARIE simulator. Also write the code with Address, Instruction, and Comments . [8 marks]

3. The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format with 4 fields: an opcode field; a mode field to specify 1 of 7 addressing modes; a register address field to specify 1 of 60 registers; and a memory address field. Assume an instruction is 32 bits long. Answer the following:[6 marks]

a) How large must the mode field be?

b) How large must the register field be?

c) How large must the address field be?

d) How large is the opcode field?

4. Choose one area of rapid technological change in IT or Computer Science and research and report on recent developments and the outlook for the future in the area that you have chosen. You will need to provide both in text citations and bibliography entries according to Faculty of Business policy (APA format). Your report should be around 500 words. [10 marks]