0% found this document useful (0 votes)
165 views8 pages

SP Assignment

This document contains 12 questions regarding computer architecture and organization as part of an assignment on the topic for a second year computer science course. The questions cover topics such as instruction formats, macro processing, symbol tables, and generating machine code from assembly language programs.

Uploaded by

Kishori dube
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
165 views8 pages

SP Assignment

This document contains 12 questions regarding computer architecture and organization as part of an assignment on the topic for a second year computer science course. The questions cover topics such as instruction formats, macro processing, symbol tables, and generating machine code from assembly language programs.

Uploaded by

Kishori dube
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

DATTA MEGHE INSTITUTE OF ENGINEERING TECHNOLOGY & RESEARCH

Sawangi (Meghe), Wardha


Off: 07152-287893, 287894, Principal Office : 07152-287891. Fax:- 07152-287892
Web site :www.dmietr.edu.in

Department of Computer Science & Engineering


Sub- Computer Architecture & Organization Year/SEM – 2nd Year / 3rd SEM
ASSIGNMENT-I
UNIT – I
Q1. What is the difference between?(CO-1)
i) Procedure and Processor.
ii) Procedure and program
iii) Multiprocessing and multiprogramming
iv) Open subroutine and closed subroutine
v) Pure code and Impure code.
Q2. Differentiate between user viewpoint and system viewpoint for design of
operating system. CO-1)
Q3. Explain general machine architecture of IBM 360|370 (CO-1)
Q4. Explain the following instructions(CO-1)
i) USING ii) EXTERN iii) BALR
Q5. Explain various instruction format of IBM 360 (CO-1)
Q6. Explain with flowchart simple onepass macro processor. (CO-1)
Q.7 For the following program draw the symbol table, literal table, base table and
object code (CO-1)
PROG START 0
BALR 15, 0
USING , 15
LR 5, 15
LH 1, Data 1
USING , 10
BR 14
DATA 2 DC F '11'
DATA 1 DC H '22'
TRS DC H '23'
BCK DS F
AA EQU 1
DP EQU 2
BALR 2, 0
USING + AA, TRS
LA 7, = A(BCK)
BR 6,
DC H '64'
DROP DP
L 9, = A(DATA 1)
A 9, TRS
LTORG
ST Q, = F '100'
END
Q8. For following ALP show its symbol table, literal table, base table and
generated machine code (CO-1)
TEST START
BEGIN BALR 15,0
USING BEGIN +2, 15
SR 4,4
L 3, = F '10'
LOOP L 2, DATA (4)
A 2, = F '49'
ST 2,.DATA (4)
A 4, = F '4'
BCT 3, * -16
BR 14
DATA DC F '1,2,3,4'
END

Q9. For the following program (CO-1)


JOHN START 0
USING *,15
L 1,FIVE
A 1,FOUR
ST 1,TEMP
FOUR DC F’4’
FIVE DC F’5’
TEMP DS 1F
END
Show the content of following tables after pass-I and pass-II MOT, POT,
Symbol Table, Base Table (BT)
Q10. For the following program:- (CO-1)
Show the table at the end of pass-1
Show Literal table at the end of pass-1
Show changes in base register during pass-2
Show generated “machine” code from assembler
IT START
BALR 15,0
USING *,15
LOOP L R1, TWO
A R1, TWO
ST R1, FOUR
CLI FOUR+3, 4
BNE LOOP
BR 14
R1 EQV 1
TWO DC F ‘2’
FOUR DS F
END

Q.11 For the following assembly language program, show its symbol table, literal
table, Base table & generated machine code (CO-1)
TEST START
BEGIN BALR 15,0
USING BEGIN+2,15
SR 4,4
L 3, =F’10’
LOOP L 2,DATA(4)
A 2, =F’49’
ST 2, DATA(4)
A 4, =F’4’
BCT 3, *-16
BC 14
DATA DC F ‘1, 2, 3, 4,5’
END

Q.12 For the following program draw the symbol table, literal table, base table and
object code (CO-1)
Location Statement No. PROG START 0
BALR 15, 0
USING , 15
LR 5, 15
LH 1, Data 1
USING , 10
BR 14
DATA 2 DC F '11'
DATA 1 DC H '22'
TRS DC H '23'
BCK DS F
AA EQU 1
DP EQU 2
BALR 2, 0
USING + AA, TRS
LA 7, = A(BCK)
BR 6,
DC H '64'
DROP DP
L 9, = A(DATA 1)
A 9, TRS
LTORG
ST Q, = F '100'
END
UNIT – II
Q1. Explain with flowchart simple onepass macro processor. (CO-2)
Q2. What are the features of macro facility? (CO-2)
Q3. For the following program show MNT, MDT, ALA and expanded assembly
language program. (CO-2)
MACRO
STORE &ANS
ST 1,&ANS
MEND
MACRO
TRY &ADD,&DEST
SR 1,1
MACRO
&ADD &A,&B
L 1,&A
A 1,&B
MEND
&DEST DS F
MEND
ARITH START 0
USING *,15
TRY PLUS,RESULT
PLUS N1,N2
STORE RESULT
N1 DC F ‘4’
N2 DC F ‘5’
END

Q4. What databases are used by the two passes of macro processor ? Explain
advantages and disadvantages of combining macro processor with assembler.
(CO-2)
Q5. for the following Assembly program prepare MDT, MNT and ALA. Also
write the expanded source code:- (CO-2)
Source
MACRO
& lab1 INCR &arg 1, &arg 2, &arg 3
& lab1 A 1, &arg1
A 2, &arg2
A 3, &arg3
MEND
:
:
LOOP1 INCR data1, data2, data3
:
:
LOOP2 INCR data3, data2, data1
:
:
data1 DC F ‘5’
data2 DC F ‘6’
data3 DC F ‘7’

Q6. for the following Assembly program prepare MDT, MNT and ALA. Also write the
expanded source code:- (CO-2)
MACRO
OPERATE &MACRON, &OP
MACRO
&MACRON &A1, &B1
L 1, &A1
&OP 1, &B1
ST 1, &B1
MEND
MEND
……
…….
DATA 1 DC F ‘20’
DATA 2 DC F ‘30’
DATA 3 DC F ‘40’
…….
…….
OPERATE ADD, A
OPERATE SUB , S
…………
………..
ADD DATA 2, DATA 3
………
………
END

Q7. for the following Assembly program prepares MDT, MNT andALA. Also write the
expanded source code:- (CO-2)

MACRO
STORE &ANS
ST 1,&ANS
MEND
MACRO
TRY &ADD,&DEST
SR 1,1
MACRO
&ADD &A,&B
L 1,&A
A 1,&B
MEND
&DEST DS F
MEND
ARITH START 0
USING *,15
TRY PLUS,RESULT
PLUS N1,N2
STORE RESULT
N1 DC F ‘4’
N2 DC F ‘5’
END

Q8. For the following Assembly program show:- (CO-2)


i. The MDT table
ii. The MNT table
iii. The expanded assembly Language program
iv. The definition and expansion ALA

MACRO
EXPO &EXP
LCLA &N
&N SETA &EXP
AIF (&N EQ 1).STOP
MR 1, 2
SETA &N -1
EXPO &N
.STOP ANOP
MEND
EXPON START 0
USING *,15
L 2,BASE
L 1,BASE
SR 0, 0
EXPO 3
ST 1, ANS
BR 14
ANS DS F
BASE DC F ‘5’
END

Q9. Explain in detail the two pass macro processor with the help of neat and clean
flowchart. What macro facilities are restricted in this design? (CO-2)

UNIT – III
Q1. Draw a detailed flowchart for pass-2 of Direct Linking Loader of IBM 360 m/c.
Q2. Write short noteson any two.
i) Compiler and Go Loader
ii) Dynamic Linking and Dynamic loading.
iii) Absolute Loader.
Q3. Explain the term dynamic Loading & dynamic Linking with suitable example.
Q4. What are the advantages of dividing loader into two separate programs
viz:Binder Module Loader.
Q5. Explain the formats of GEST and LESA of Direct Linking loader
Q6. Explain relocating loader in detail with advantages and disadvantages
Q7. Explain in detail about Dynamic linking and dynamic loading with example
Q8. Show the entries in ESD, TXT and RLD Cards for the following Program
JOHN START
ENTRY SUM, DATA
EXTRN LOOP, POINTER
BALR 15, 0
USING *, 15
SR 4, 14
L 1, FOUR
A 2, FOUR
ST 2, FOUR
BR 14
FOUR DE F’4’
LOOP DC A(SUM+4)
POINTER DC A(LOOP-DATA)
DC A(POINTER-LOOP)
DC A(POINTER)
END
Q9. Write short note on link Editor.
Q10. What are the basic functions of Loader? Explain.
Q.11 Explain in detail Dynamic Linking and Dynamic Loading
DATTA MEGHE INSTITUTE OF ENGINEERING TECHNOLOGY & RESEARCH
Sawangi (Meghe), Wardha
Off: 07152-287893, 287894, Principal Office : 07152-287891. Fax:- 07152-287892
Web site :www.dmietr.edu.in

Department of Computer Science & Engineering


Sub- Computer Architecture & Organization Year/SEM – 2nd Year / 3rd SEM
ASSIGNMENT-II

UNIT – IV
Q1. Explain COFF symbol table and string table.
Q2. Explain the concept of storage classes.
Q3. What is symbolic debugger? Explain in brief.
Q4. Write short notes on:
i) Source code control system.
ii) Link Editor.
Q5. Explain in detail the format of common object file.
Q6. Write a note on link editor.
Q7. What is symbolic debugger? Explain in brief.
Q8. Write short note on Source Code Control System (SCCS).
Q9. Explain make and Link Editor.

UNIT-V
Q1. Explain in detail different types of windows device drivers?
Q2. What is Device Driver? Explain the necessity of device driver.
Q3. Explain various sections involved in line printer driver.
Q4. What are the major design issues of Unix Device Driver?Explain.
Q5. Write a note on driver memory allocation.
Q6. What are the major design issues inthe study of device driver? Elaborate
Q7. Describe in detail the anatomy and types of device driver in UNIX SYSTEM
Q8. Differentiate between Character Driver and STREAM Driver.
Q9. Explain the following entry point and routine for device driver of a line
printer:
i) Init
ii) LpWork
iii) Open
Q10. Design a device driver for handling a RAM disk.
Q11. Explain the steps in installation of Unixdevice drivers in detail.
Q12. Explain various sections involved in line printer driver.
Q13. What are the steps involved in installing a device driver in UNIX system? Explain
each step in detail.
Q14. Differentiate between block device driver and character device driver with diagram.
Q15. What is the role of terminal & stream driver explain with example?
UNIT-VI
Q1. What are the different phases of compiler? Explain in brief.
Q2. Explain cross compiler and Boot strapping.
Q3. Explain YACC in Details
Q5. List reasons for separating the analysis phase of compiling into lexical analysis
and parsing.
Q6. What is compiler? Explain in brief the various databases used in Lexical phase
of compiler.
Q7. Describe LEX as a tool, for system programming.
Q8. What is compiler? Draw a block diagram of the phases of compiler and indicate
the main function of each phase.
Q9. How tokens are recognized by lexical phase? Explain in detail.
Q10. Write short note on Regular Expression.
Q11. What is token? How tokens are specified? Explain how tokens are recognized.

You might also like