-
2.1 Install NASM and SASM
2.2 Editor Settings
-
3.1 Bubble sort - Ascending order
3.2 Insertion sort - Ascending order
3.3 Selection sort - Ascending order
3.4 Bubble sort - Descending order
3.5 Insertion sort - Descending order
3.6 Selection sort - Descending orde
3.7 Negatize array size
3.8 Wrong sorting algorithm number
3.9 Wrong sorting type number
-
4.1 Assembly Tutorial
4.2 NASM
This program prompts the user for array size, the numbers to sort, the type of sorting algorithm, type of sorting (ascending or descending), then sorts the array using the chosen sorting algorithm and prints the sorted array.
There are are 3 options for the sorting algorithm.
- Bubble sort.
- Insertion sort.
- Selection sort.
2.1 Install NASM and SASM
$ sudo apt-get install nasm sasm
2.2 Editor Settings
To save the file as executable to run it from command line File > Save .exe
4.1 - Assembly Tutorial
4.2 - NASM