Professional Documents
Culture Documents
Objective:
Students will be able to learn various file handling operations
Students will be able to produce the target code using the intermediate
representation generated in Pass 1.
Students will be able to implement the working of Pass 2 of 2 pass Assembler
Task to be performed:
A. For any Assembly input for a hypothetical machine, implement pass 2 by using
the intermediate code generated as input to pass 2 program which was generated
as output in pass 1.
FLOWCHART:
Program Code:
Input to the Program:
Output Screenshot:
Outcome of the In this experiment, we have successfully implemented pass 2
Experiment: of a 2 pass assembler in python using the intermediate
representation generated in Pass 1. We have also learned
various file handling operations.
References used: https://www.geeksforgeeks.org/introduction-of-assembler/