Sunteți pe pagina 1din 3

w

w
w
.
r
e
j
i
n
p
a
u
l
.
c
o
m
w
w
w
.
r
e
j
i
n
p
a
u
l
.
c
o
m
III Year Computer Science and Engineering V SEMESTER

Subject Name: System Software
Subject Code : CS2304
UNIT : 1
Part A
1. Give any two differences between base relative addressing and program counter relative
addressing
2. What is the name of X and L register in SIC machine and also specify its use.
3. What is the difference between the instructions LDA # 3 and LDA THREE?
4. Write the sequence of instructions to perform the operation BETA = ALPHA+5 using
SIC/XE instructions
5. What are the types of I/O instructions available in SIC machine ?
6. What is conditional code instruction ?
Part B
1. Explain in detail, the architecture of SIC/XE machine.
2. Write short notes on
a. i)Data formats and Instruction formats(8)
b. ii) IO programming(8)
3. i)Write a program for Sample indexing and looping operation in SIC and SIC/XE
machine. (10)
ii)Write a sequence of instructions for SIC to clear a 20 byte string to all blanks.(6)
4. Suppose alpha is an array of 100 words. Write a sequence of instructions for SIC\XE to
set all 100 elements to 0
5. i) Write a sequence of instructions for SIC to set ALPHA equal to the product of BETA
and GAMMA(6)
ii) With instruction formats explain the instruction set of SIC/XE(10)
6. Explain various addressing modes supported by SIC and SIC/XE with examples

UNIT :2

Part A
1. What is the use of the assembler directive START?
2. Differentiate the assembler directives RESW and RESB.
3. Define re locatable program.
4. List the use of the following in an assembler
i. SYMTAB
ii. LOCCTR
iii. OPTAB
iv. LITTAB
5. Consider the following sequence
X EQU Y
Y EQU Z
Z RESW 1
www.rejinpaul.com
www.rejinpaul.com
w
w
w
.
r
e
j
i
n
p
a
u
l
.
c
o
m
w
w
w
.
r
e
j
i
n
p
a
u
l
.
c
o
m
Can a two pass assembler resolve such a sequence of definition? Justify your answer
6. Give any two disadvantage and advantage of one pass assembler over multipass
assembler
Part B
1. Explain the design of one pass assembler with required data structures and
algorithm.
2. i) What are the data structures used in Assembler? Discuss how these structures are
organized?(6)
ii) Explain the concept of program relocation(10)
3. Discuss in detail design of pass1 of two pass assembler.
4. (i) Explain in detail the features of MASM assembler for pentium system (8)
(ii) What type of statements cannot be handled by a two pass assembler and how are
they handled by a multipass assembler(8)
5. Explain pass2 of two pass assembler with algorithm and example
6. Explain various machine independent features of assembler


UNIT :3

Part A
1. What is the use of the variable PROGADDR?
2. List the loader options INCLUDE &DELETE.
3. Give the difference between linking loader and linkage editors
4. How load and call of a subroutine implemented using dynamic linking
5. What is the advantage of reference number mechanism?
6. Mention the use of FIXUPP records.
Part B

1. Write the algorithm for pass1 of a linking loader and specify the data structure used by
this loader
2. Discuss in detail design of pass2 of linking loader
3. Explain various loader design options in detail
4. Explain the different machine independent features of loader
5. (i) Write short notes on absolute loader (6)
(ii) Explain design of a relocating loader with an example (10)
6. (i)Discuss in detail bootstrap loader. 8)
(ii)Write notes on MS_DOS Linker (8)

Unit : IV
Part A
1. What are the directives used in macro definition
2. What is the symbol used to generate unique labels
3. What is macro time variable
4. Expand the following.
SUM MACRO &ID
LDA X&ID->1
www.rejinpaul.com
www.rejinpaul.com
w
w
w
.
r
e
j
i
n
p
a
u
l
.
c
o
m
w
w
w
.
r
e
j
i
n
p
a
u
l
.
c
o
m
ADD X&ID->2
ADD X&ID->3
STA X&ID->5
MEND

SUM A (Macro Invocation)
5. In the following macro definition,
#define ABSDIFF(X,Y)[(X)>(Y)?(X)-(Y) : (Y)-(X)]
Give the expansion for ABSDIFF (I+1, j-5).
6. For the following macro definitions.
#define DISPLAY (EXPR) printf(#EXPR =%d\n,EXPR)
Give the expansion for the macro invocation DISPLAY (I+J+1)

Part B
1. Explain in detail about Macro processor algorithm and data structures.
2. Explain the following machine independent macro features.
a. Concatenation of macro parameters (8)
b. Keyword macro parameters (8)
3. Explain in detail about MASM macro processor.
4. Explain ANSI C macro processor.
5. Explain conditional macro expansion with different types of macro conditional
statements
6. i)Why should a macroprocessor generate unique labels and explain how unique labels
are generated(8)
ii)Discuss in brief about the data structures used by a macro processor(8)

Unit : V
Part A
1. Define interactive editor?
2. What is the function performed in editing phase?
3. What are the phases in performing editing process?
4. What is tracing
5. How the mapping of view buffer to a window done
6. Why text editors are required? Mention the names of any four editors known to you.
Part B
1. Explain the Editor structure with a neat diagram.
2. Write short notes on
a. Interactive debugging systems (8)
b. Text editors. (8)
3. Write short notes on
a. User Interface Criteria (8)
b. Features that a basic text editor should posses (8)
4. Explain debugging functions and its capabilities.
5. i)How are user interfaces useful? Explain(8)
ii)Discuss the nature of user interface for an interactive debugger(8)
6. Discuss in detail about Interactive debugging systems
www.rejinpaul.com
www.rejinpaul.com

S-ar putea să vă placă și