Question: Problem 5 [Assemblerl (10 points) (c) Create a symbol table entries as generated by the assembler when translating the following routine into machine code [4

 Problem 5 [Assemblerl (10 points) (c) Create a symbol table entries

Problem 5 [Assemblerl (10 points) (c) Create a symbol table entries as generated by the assembler when translating the following routine into machine code [4 points] x301C R3, SAVE3 R2, SAVE2 R2, R2 , #0 ORIG ST ST AND IN BRz ADD BRn ADD NOT BRn HALT TEST TEST R1 , R0 , FINISH R1 , R0 , Ri, R1 FINISH #-10 #-15 FINISH ADD R2 , R2, #1 HALT SAVE3 SAVE2 FILL FILL END x0000 x0000 (d) An engineer is in the process of debugging a program she has written. She is looking at the following segment of the program, and decides to place a breakpoint in memory at location xA404. Starting with the PCXA400, she initializes all the registers (R0-R7) to zero and runs the program until the breakpoint is encountered. Code segment 0xA400 THIS1 0xA401 THIS2 0xA402 THIS3 0xA403 THIS4 0xA404 THIS5 LEA RO, THIS1 LD R1, THiS2 LDI R2, THIS5 LDR R3, R0 , #2 FILL xA400 What are the contents of the registers (RO-R7), PC and condition codes when the breakpoint is encountered? [5 points]

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 Databases Questions!