Professional Documents
Culture Documents
3. What is the need of symbol table (ST) and literal table (LT) in two pass
assembler? Explain fields of ST and LT with suitable examples.
7. Draw and explain flowchart of Pass-I of two pass assembler with suitable
examples.
11. Convert the following assembly language source code into intermediate code 1
generation using two pass assembler.
START 100
MOVER BREG, =�2�
LOOP MOVER AREG, N
ADD BREG, =�1�
ORIGIN LOOP+5
LTORG
ORIGIN NEXT +2
LAST
STOP
N DC �5�
END
12. Consider following assembly language code show output of pass-1 of two pass
assembler
START 100
READ N
MOVER B,='1'
MOVEM B,TERM
AGAIN MULT B,TERM
MOVER C,TERM
COMP C,N
BC LE,AGAIN
MOVEM B,RESULT
LTORG
PRINT RESULT
STOP
N DS 1
RESULT DS 20
TERM DS 1
END
14. Enlist the different types of errors that are handled by PASS I & PASS II of
assembler.
15. What is the need of symbol table (ST) and literal table (LT) in two pass
assembler? Explain fields of ST and LT with suitable example.
16. Write a short note on Types of Software, with suitable diagram and examples.
5. What are the data structures used in the design of macro processor?
6. Draw a neat flowchart of Pass-I of two pass macro processor and explain it.
9. What is Compiler? Explain any two phases of compiler with suitable diagram?
10. Consider input �d = a + b * 2;� and show the output of each phase of compiler
with suitable diagram?
11. Consider the input "X=Y+Z*5;" and show the output of each phase of the compiler
with suitable diagram?
12. Comment on the statement �Programs with macros require more space and less time
at runtime than programs with functions�.
15. What are different ways in which we can specify arguments to macros?