Write an 8086 Assembly Language program to find the smallest data in an array of data stored in memory.
Let the size of the array be N bytes. Let us reserve AL register to store the smallest data. The first byte of the array is assumed to be the smallest and it is saved in AL register. Then each byte of the array is compared with AL. After each comparison, the smaller among the two is brought to AL register. Therefore, after the N-1 comparison, the AL register will have the smallest data.
Program Explain by:
S. Alwyn Rajiv,
Assistant Professor,
Kamaraj College of Engineering and Technology,
Madurai.
Watch video Program 10 : Find Smallest Data in an Array | 8086 Assembly Language Program | emu8086 online without registration, duration hours minute second in high quality. This video was added by user Alwyn Rajiv SAR Learning Center 15 January 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,69 once and liked it 6 people.