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.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
7etsuo/x86-assembler
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
x86 Assembler written in C
Resources
Stars
Watchers
Forks
Releases
No releases published
Sponsor this project
Packages 0
No packages published