Question: Q.9. (10 points) Given the following assembly language codes and their equivalent machine language codes where some references are missing. The codes are linked and

 Q.9. (10 points) Given the following assembly language codes and their

Q.9. (10 points) Given the following assembly language codes and their equivalent machine language codes where some references are missing. The codes are linked and loaded into the memory. Write the contents of the H/D/R/M Tables generated during the linking. Also fill in the missing references in the machine codes when they are loaded into the memory and write the. memory addresses where they are loaded. All references use direct addressing. (Assume that 3 bytes are allocated for each instruction and WORD pseudo-operation allocates 3 bytes and stores the given number at that byte.) Load points for programs P1 and P2 are 1000and 2000, respectively. Memory address H/D/R/M Table Symbol Address PROG P1 START EXTREF D1 INST1 INST3 D1 JNR L1 HLT END Machine code in memory 00 00 B8 ?? 7B ?? ?? 4C 00 00 L1: Memory address PROG P2 START EXTDEF D1 WORD 5 END Machine code in memory 00 00 05 H/D/R/M Table Symbol Address D1

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!