Transcription of Program 25: Sort the array in ascending order.
{{id}} {{{paragraph}}}
8085 programs Gursharan Singh Tatla Page 1 of 3 Program 25: sort the array in ascending order . Flowchart: Stop Start Initialize counter-1. Initialize counter-2 and H-L pair. Move the number from memory to accumulator. Increment H-L pair to point to next number s memory location. Decrement counter-1. Is A > M? Increment H-L pair. No Yes Compare number in memory with number in accumulator. Interchange the numbers. Decrement counter-2. Is counter-1 = 0? No No Yes Yes Is counter-2 = 0?
8085 Programs Gursharan Singh Tatla Page 1 of 3 Program 25: Sort the array in ascending order. Flowchart: next number’s memory …
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}