Question: Q.S. (10 points) Given the following assembly language program and its equivalent machine language code where some references are missing. The assembler generates a relocatable

 Q.S. (10 points) Given the following assembly language program and its

Q.S. (10 points) Given the following assembly language program and its equivalent machine language code where some references are missing. The assembler generates a relocatable code. All references use direct addressing. Write the values of the location counter (LC) and the contents of the symbol table, and also fill in the missing references in the machine code. (Assume that 3 bytes are allocated for each instruction and WORD pseudo-operation allocates 3 bytes and stores the given number at that byte.) LC 3A 00 Symbol Table 11: START INST1 INST2 D1 JZR 11 HLT WORD 5 END Machine code 00 D5 22 7B 22 40 00 00 00 00 05 D1: 5 Q.9. (5 points) Given the following file which contains a program in machine code and the direct address table (DAT). A relocating loader is used to load it into the memory. Show the contents of the memory after the loading operation. Write the memory addresses and the contents of the memory locations. Load point for the code is 2000- Address Memory AA File name DAT 01 File type 0003 06 Number of bytes AD 30 Code 00 01 50 00 FF EOF marker

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!