Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since:
Apr 2017
Last Sign in:
103 Weeks Ago, 3 Days Ago
Questions Answered:
4870
Tutorials Posted:
4863
Education
MBA IT, Mater in Science and Technology
Devry Jul-1996 - Jul-2000
Experience
Professor
Devry University Mar-2010 - Oct-2016
Category > ProgrammingPosted 19 May 2017My Price9.00
the MARIE program
2. Consider the MARIE program below. [5 marks]
a) List the hexadecimal code for each instruction. [1.5 marks] b) Draw the symbol table. [1.5 marks] c) What is the value stored in the AC when the program terminates? [2 marks] Hex Addr Label Instruction 100 Start, Load A 101 Add B 102 Store Temp 103 Load C 104 Add D 105 Add Temp 106 Store F 107 Output 108 HALT 109 A, DEC 5 10A B, DEC 3 10B C, DEC 4 10C D, DEC 13 10D E, DEC 3 10E Temp, HEX 00FD 10F F, HEX 00FE 3. Write code to implement the expression F = (A+B) /(C*D*E) on 2-, 1- and 0-address machines. [6 marks]