This C program reads in an assembly language file, performs two passes over the file to identify labels and assemble the instructions, and then writes the resulting machine code to an output file. It includes several helper functions for handling instructions, managing a hash table for storing labels, and writing the machine code to the output file. It also includes a function for reading lines from the input file and stripping leading white space and a main function that opens the input and output files, calls the read loop function twice, and closes the files. The program is designed to assemble x86 assembly language code and can be compiled and linked using the nasm and ld commands. It is intended to be run on a Linux system.
7etsuo/x86-assembler
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
