This program sorts a 10-element array of integers based on user input in 8086 assembly language.
-
The program prompts the user to enter a character:
Aβ Sort the array in ascending orderDβ Sort the array in descending order
-
After sorting, it displays the sorted array on the screen.
-
If the user enters any character other than
AorD, the program shows an error message.
- Implements bubble sort algorithm for both ascending and descending orders.
- Interactive: Takes user input and adjusts sorting dynamically.
- Written for 8086 emulator (INT 21h DOS interrupts).
- Understanding assembly language loops and comparisons
- Handling user input and conditional branching
- Practicing array manipulation at a low level
β¨ A simple yet powerful demonstration of sorting logic directly in assembly language, showing how even small programs can handle input, logic, and output efficiently!