written 8.7 years ago by |
System Software - Dec 2012
Computer Science Engg. (Semester 5)
TOTAL MARKS: 100
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1 (a) Expalin the instruction formats and addressing modes of SIC/XE machine architecture.(10 marks)
1 (b) Generate the target address for the following objects codes:
(i) 032600 (ii) 010030
Content of X=000090; Content of B=006000; Content of PC=003000(4 marks)
1 (c) Write a SIC/XE program to read 100 bytes record from a device 'F5' into BUFFER. Use immediate and registar-to-register instructions.(6 marks)
2 (a) With an algorithm, explain pass-1 of a 2-pass assembler.(10 marks)
2 (b) Generate the object code for each statement and write the object programs for the following SIC/XE program.
Given that: CLEAR=B4, LDA=00, LDB=68, ADD=18, TIX=2C, JLT=38, STA=0C
FIRST | CLEAR | 0 |
LDA | #0 | |
+LDB | #TOTAL | |
BASE | TOTAL | |
LOOP | ADD | TABLE, X |
TIX | COUNT | |
JLT | LOOP | |
STA | TOTAL | |
COUNT | RESW | 1 |
TABLE | RESW | 2000 |
TOTAL | RESW | 1 |
END | FIRST |
(i) Identifie (ii) Decimal number (iii) -ve integer (iv) +ve fraction(8 marks) 7 (c) Write a short note on parser-lexar communication.(5 marks) 8 (a) Define YACC tools. What are tow types of conflicts in YACC? Give examples.(8 marks) 8 (b) Write a YACC program to evaluate an arithmetic expression involving operators +, -, *, /.(7 marks) 8 (c) Write a short note on shift/reduce parsing.(5 marks)