Skip to content

πŸ”’ Sort a 10-element array in ascending or descending order based on user input using 8086 assembly.

Notifications You must be signed in to change notification settings

sabamadadi/8086-array-sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ 8086 Array Sorter

This program sorts a 10-element array of integers based on user input in 8086 assembly language.

πŸ“ Description

  • The program prompts the user to enter a character:

    • A β†’ Sort the array in ascending order
    • D β†’ Sort the array in descending order
  • After sorting, it displays the sorted array on the screen.

  • If the user enters any character other than A or D, the program shows an error message.

βš™οΈ Key Features

  • 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).

🎯 Learning Outcomes

  • 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!

About

πŸ”’ Sort a 10-element array in ascending or descending order based on user input using 8086 assembly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published