x86-assembly-programs
x86-assembly-programs copied to clipboard
This repository showcases x86 assembly programs developed using NASM and GCC, as part of coursework undertaken at the Pune University Computer Science Department (PUCSD). Additionally, the repository...
x86 Assembly Programs
This repository contains low-level assembly programs written using the Netwide Assembler (NASM) and the GNU Compiler Collection (GCC).
Instructions
-
Open the terminal in the folder where you want to run the codes.
-
Run the following commands for each code file with the
.asmextension:nasm -felf32 filename.asm gcc -m32 filename.o ./a.out -
To delete the object files (
.ofiles), use the following command:rm *.o -
To delete the executable file, use the following command:
rm a.out
Make sure to replace filename with the actual name of the code file you want to assemble and run.
Please note that these instructions assume you have NASM and GCC installed on your system. If you don't have them installed, you can install them using the package manager of your Linux distribution.