The document describes an experiment involving a two-pass assembler. It includes struct definitions for symbol, opcode, literal and intermediate code tables. Functions are defined for searching tables, inserting symbols, and handling directives, declarations and executable statements. The assembler performs two passes - it generates intermediate code on the first pass and machine code on the second pass. Sample output is shown including the symbol table, intermediate code, and generated machine code for a sample assembly language program.
The document describes an experiment involving a two-pass assembler. It includes struct definitions for symbol, opcode, literal and intermediate code tables. Functions are defined for searching tables, inserting symbols, and handling directives, declarations and executable statements. The assembler performs two passes - it generates intermediate code on the first pass and machine code on the second pass. Sample output is shown including the symbol table, intermediate code, and generated machine code for a sample assembly language program.
The document describes an experiment involving a two-pass assembler. It includes struct definitions for symbol, opcode, literal and intermediate code tables. Functions are defined for searching tables, inserting symbols, and handling directives, declarations and executable statements. The assembler performs two passes - it generates intermediate code on the first pass and machine code on the second pass. Sample output is shown including the symbol table, intermediate code, and generated machine code for a sample assembly language program.