This repository contains implementations of sorting algorithms written in x86 assembly language using NASM. These sorting algorithms are designed to run on the Linux platform.
The repository is organized as follows:
βββ sort_algorithms/
β βββ bubble_sort.asm
β βββ insertion_sort.asm
β βββ selection_sort.asm
β βββ ... (other sorting algorithm files)
βββ README.md
βββ LICENSE
sort_algorithms/: Directory containing individual assembly files for different sorting algorithms.README.md: This file, providing an overview of the repository and instructions.LICENSE: License file detailing the permissions and limitations for using the code.
Currently implemented sorting algorithms in this repository:
- Bubble Sort:
bubble_sort.asm - Insertion Sort:
insertion_sort.asm - Selection Sort:
selection_sort.asm - (List other implemented sorting algorithms here)
- Linux Environment: Ensure you have a Linux-based system to assemble and execute the assembly code.
- NASM: Make sure NASM (The Netwide Assembler) is installed on your machine. You can install it via package managers like
apt,yum, or by downloading it from the official NASM website.
-
Clone the repository:
git clone https://github.com/your-username/x86-assembly-sorting.git
-
Navigate the directory:
cd x86-assembly-sorting/sort_algorithms/ -
Choose a sorting algorithm file to assemble and run. For example, to use bubble_sort.asm:
nasm -f elf64 -o bubble_sort.o bubble_sort.asm ld bubble_sort.o -o bubble_sort ./bubble_sort
Replace bubble_sort.asm and bubble_sort with the appropriate file names for other algorithms.
-
Follow a similar process for other sorting algorithms present in the repository.
This project is licensed under the MIT License. π€