- Related Questions & Answers
- 8086 program to find sum of Even numbers in a given series
- 8086 program to find sum of odd numbers in a given series
- 8086 program to find the factorial of a number
- 8086 program to find Square Root of a number
- Find a pair from the given array with maximum nCr value in C++
- Find a pair from the given array with maximum nCr value in Python
- C/C++ Program to find the sum of elements in a given array
- How to find Min/Max numbers in a java array?
- Find a Fixed Point (Value equal to index) in a given array in C++
- Java Program to Check if An Array Contains a Given Value
- PHP program to find the numbers within a given array that are missing
- 8086 program to find average of n numbers
- 8086 program to find the square root of a perfect square root number
- Program to find sum of elements in a given array in C++
- How to find the Rank of a given Array in C#?

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this program we will see how to find the minimum number in a given array.

Write 8086 Assembly language program to find the minimum number in a given array, which is starts from memory offset 501. The size of the series is stored at memory offset 500. Store the minimum number at memory offset 600.

At first we are taking the size of the array from memory offset 500. Then using that size, we are initializing the counter to read and check all the numbers. We are taking the first number into AL, then check each number and compare it with AL. If the AL is larger than the array element, then update AL with the array element. Otherwise skip that element and point to next element. Thus the minimum element is found.

Address | Data |
---|---|

… | … |

500 | 06 |

501 | 51 |

502 | 24 |

503 | 2C |

504 | CF |

505 | 3E |

506 | 45 |

… | … |

Address | Data |
---|---|

… | … |

600 | 24 |

… | … |

Advertisements