Professional Documents
Culture Documents
2 Pass Assembler
2 Pass Assembler
2 Pass Assembler
Begin pass 1 LC 0 Read next line Analyze line for syntax yes count error any error no Determine statement type yes .END No yes label No yes Sym Def No yes storage No yes instruc No yes comment No No Invalid statement directive yes perform function compute size of instruction compute size of allocation increment LC by size compute symbol value specification label value is LC store name and value in sym table continue with pass 2
no
Exit
invalid statement
Evalute operand specification and output binary convert addresses instruction to to binary object file