Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 L1: START INST1 INST2 D1 JZR L1 HLT WORD 5 END Machine code 00 D5 22 22 7B 23 22 40 00 00 00 00 05 D1: 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

How was your life influenced by those events?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago