Cst305 System Software, December 2021
Cst305 System Software, December 2021
Reg No.:
PART A
(Answer all quesfionq each question carries 3 marks) Marks
1' Explain the different I/O instructions in SIC. a
J
a
With a simple example describe what is meant by forward reference and how is it
J J
handled in one pass assembler.
write a sequence of instructions for SIC/)G to set ALPHA equal to 4*BETA-9.
Use immediate addressing modes for constants and assume ALPHA and BETA
to be floating point numbers.
Give the structure and purpose of Modification record and Define record. 3
9
List the three data structures used in one pass macro processor and describe its .
J
usage.
PART B
(Answer one full question from each module, each question carries 14 marks)
Module -1
Compare the SIC and SICD(E architecture with respect to:
ll a)
(i) Registers (ii) Instruction Formats (iii) Data Formats Supported
b)
Illustrate the roles and functions of Operating System, Assembler, Compiler and g
Linker in a modern computer system.
Page 1 of 3
Compare the Input-Output capabilities of the SIC and SIC/)G machine. Also list
12 a)
-/ the VO instructions available in SIC and SIC/XE machines.
Describe the use of n,i,x,b,p and e bits in the SICD(E instruction format. Write
the binary combination for these bits such that the resultant target address would
b)
be as below and also state what would be the addressing modes for each.
i. (PC) + disp ii. (B) + disp iii. (PC) + disp + (X) iv. (B) + disp + (X)
Module -2
13 a) Outline in detail the function and algorithm for pass one of a two pass assembler. 8
*
q' Outline in detail the function and algorithm for the pass two of the two pass
'-------Q
A a)' 8
assembler.
Generate the assembled object program for the below SIC program. The machine
code for the instructions used are: LDX - 04, LDA - 00, ADD - 18, TD( - 2C,
STA - 0C, JLT - 38 and RSUB - 4C. Show the location counter value for each
instruction.
sH s*Fft {000
FTRST I'UII ZEFO
LT}A ZENO
b) rsop lxp rAF[*E,x 6
?rx c6xtT
Jrr r.ooF
srA firral"
Rstls
TeBrs RESW 2000
r CTX'}IT RESW 1
reRo lnnD 0
$orrl, REst{ I
EIID FICST
Module -3
Define Control Section. With an example illustrate how a control section is
15 a) declared within an assembly program and what are the constituents of the object 7
Page 2 of 3
memory. Also mention how the object code program for a program block is
organised.
Module -4
T7 a) Define Absolute loader and outline the algorithm for it. 6
b) Give the algorithm for the pass two of a two pass linker loader. 8
18 a) Write the algorithm for the pass one of a two pass linker loader. 7
Page 3 of 3