Search This Blog

Sunday, September 12, 2010

Internal Exam paper

Q 1.

For the following assembly language program

a. Show the contents of the Symbol Table.

b. Intermediate Code

At the end of pass-I of assembler

START 100

A DS 3

L1 MOVR AR, B

ADD AR, ‘=5’

MOVM AR, D

D EQU A+1

L2 PRINT D

ORIGIN A+2

C DC ‘5’

ORIGIN A+2

STOP

B DC ‘5,3,7’

END

06

Q 2.

(a) Write a generic search procedure for locate the entry of symbol in a symbol table

(b) Explain following Assembler Directive.

1) EQU 2) START 3)LTORG

OR

(b) What do you mean by forward reference? How single pass translation and multipass translation take care of forward- reference?

03

03

03

Q 3

What is Collision? Explain any one technique of collision handling.

06

OR

Q 3

1) Discuss the problem of deletion of entries in the following symbol table organizations.

a. Sequential search organization.

b. Linked list organization.

2) Differentiate search and allocation data structures.

04

02

Q 4

Define grammer. Explain types of grammer?

06

OR

Q 4

Explain in detail language processor development tools

06

Q 5

Explain the pass-I of assembler with the necessary data structures and algorithm

06

OR

Q 5

Explain the pass-II of assembler with the necessary data structures and algorithm.

06