1. Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423 603
(An Autonomous Insttute, Affilted to Slvitribli Phufe Pune University, Pune)
NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Computer Engineering
(NBA Accredited)
Dr. S. N. Gunjal
Assistant Professor
E-mail : gunjasanjay@sanjivani.org.in
Contact No: 91301 91301 Ext :145,
9503916876
Course- System Programming and Operating System
(CO312)
Assemblers: General design
procedure
Design of two pass
assembler
Dr. S.N
Dr. S.N
Gunjal
Gunjal
8. Pass 1: Define the Symbol table and Literal Table
Determine the length of Machine instruction (MOTGET1)
Keep the track of Location Counter(LC)
Remember the value of Symbol until Pass2(STSTO)
Process some pseudo-Op
Remember the Literals(LITSTO)
Pass 2 :
Look up the Values of Symbol(STGET)
Generate the Instruction(MOTGET2)
Generate the data for DS, DC and Literals
Process the pseudo-ops(POTGET2)
Two Pass Assembler