Semester : SEMESTER 5
Subject : System Software
Year : 2020
Term : DECEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 303
Page:2
00000CS303121902
b) Explain with an example how relocation problem is handled by an assembler?
7 93) Describe the data structures used by a simple two pass assembler.
b) Consider the memory contents shown in the following figure
(>) 000090
3030 (PC) 003000
(B) 006000
3600 | 103000
co
_ |
What would be loaded to register A with the following instructions:
i. 03C300
11. 022030
PART ட்
Answer all questions, each carries3 marks.
8 Give the purpose of following assembler directives with examples:
1) USE
2) CSECT
9 Give an example of situation where the use of a multipass assembler can be
justified?
10 Given an idle computer with no program in memory, how do we get things started?
11 Explain the concept of automatic library search.
PART D
Answer any two full questions, each carries9 marks.
12 a) How are program blocks handled by the assembler?
b) Using the given information, generate the machine instruction for the instruction at
location 0006 and 003F. Assume that program blocks are used in the program, the
machine code for LDA is 00 and STCH is 54 and the block table is as follows.
Block Name Block Number Address Length
(default) 0 0000 006
CDATA 1} 0066 000B
CBLKS 0071 1000
Page 2 of 3
(5)
(5)
(4)
(3)
(3)
(3)
(3)
(5)
(4)