SL-V Assignment Questions
SL-V Assignment Questions
1. Forward references
2. DS and DC statement
3. START, EQU, LTORG, END.
4. Error handling: symbol used but not defined, invalid instruction/register etc.
START 200
MOVER AREG, =’5’
MOVEM AREG, A
LOOP MOVER CREG, B
ADD CREG, =’1’
LTORG
ORIGIN LOOP+2
MULT CREG, B
STOP
A DS 2
B DS 2
END
E→E+E |E-E|E*E|E/E|(E)|digit
6. Write a program for Intermediate code generation using LEX &YACC for
Control Flow statement ( Either While loop or Switch case)
7. Write a program to find Maximum and Minimum element in an array using
approach.
9. Write a program to implement Bellman-Ford Algorithm using Dynamic
10. Write a program to solve the travelling salesman problem and to print the path
11. Write a recursive program to find the solution of placing n queens on chessboard
12. Write a program to solve the travelling salesman problem and to print the path