Question: table [ [ Address in Hex,Label,,Instruction,Comment ] , [ 1 0 0 , If , , Laod,X , ] , [ 1 0 1

\table[[Address in Hex,Label,,Instruction,Comment],[100,If,,Laod,X,],[101,,Subt,Y,],[102,,Skipcond,000,],[103,,Jump Else,,],[104,Then,,Load,X,],[105,,Add,X,],[106,,Store,X,],[107,,Jump,Endif,],[108,Else,,Load,Y,],[109,,Subt,X,],[10 A,,Store,Y,12 is in decimal],[10 B,Endif,,halt,,20 is in decimal],[10 C,X,,Dec 12,,]]
A program for MARIE using labels and directives for the constants.
3. Consider the MARIE program shown above and answer the following question.
(a) List the hexadecimal code for each instruction.
(b) Write the symbol table after first pass of the assembler.
(c) Write the decoded instructions in Hex after the second pass of the assembler.
(d) What values (in hexadecimal) are stored in the AC, IR, and PC when the program terminates?
\ table [ [ Address in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!