0
11kviews
With the neat flowchart/algorithm write a program in 8086 assembly to arrange a set of ten 8-bits numbers initialized in data segment in ascending order

Subject: Microprocessors and Applications

Topic: Instruction set of 8086 & programming

Difficulty: High

1 Answer
0
216views

Flowchart:

enter image description here

Algorithm:

  • Initialize the data segment.
  • Initialize the number of elements counter.
  • Initialize the pointer and number of comparisons counter.
  • Compare the elements. If first element < second element go to step VI else go to step V.
  • Swap the elements.
  • Increment the pointer. Decrement the comparison counter.
  • Is count …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.