2 Marks Question
1. Define Macro. Give syntax
2. Write any two difference between NEAR and FAR procedure.
3. Define Macro & Procedure.
4. Define Procedure and write its syntax.
5. List directives used for procedure
4 Marks Questions
1. Give the difference between intersegment and intrasegment CALL
2. Write an assembly language program to solve p = x 2 + y2 using macro. (x and y are
8-bit numbers)
3. Write an ALP for addition of series of 8-bit number using procedure.
4. Describe reentrant and recursive procedure with schematic diagram.
5. Describe the directives used to define the procedure with suitable example.
6. Write a MACRO to perform 32 bit by 16 bit division of unsigned numbers.
7. Write an ALP to subtract two BCD number using procedure.
8. Describe re-entrant and recursive procedure with suitable diagram.
9. Compare Procedure and Macros. (4 points)
10. Write an ALP using procedure to solve equation such as Z = (A + B) * (C + D)
11. Write an ALP using macro to perform multiplication of two 8 bit unsigned numbers.
12. Compare Procedure and macro based on i) length of code ii) generation of object code
iii) Calling method iv) Passing parameter.
13. Write an ALP for addition of two 8 bit BCD numbers using MACRO. Write a
procedure to find factorial of given number
14. Write an assembly language program using MACRO to perform following operation.
X = (A + B) * (C + D)
15. Describe with suitable example how parameter is passed on the stack in 8086
assembly language procedure.