- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- 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 largest number in a given array.

Write 8086 Assembly language program to find the largest 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 largest 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 smaller than the array element, then update AL with the array element. Otherwise skip that element and point to next element. Thus the largest element is found.

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

… | … |

500 | 06 |

501 | 51 |

502 | 24 |

503 | 2C |

504 | CF |

505 | 3E |

506 | 45 |

… | … |

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

… | … |

600 | CF |

… | … |

- Related Questions & Answers
- 8086 program to determine cubes of numbers in an array of n numbers
- 8086 program to determine squares of numbers in an array of n numbers
- 8086 program to find average of n numbers
- 8086 program to generate AP series of n numbers
- 8086 program to generate G.P. series of n numbers
- 8085 program to search a number in an array of n numbers
- 8086 program to determine product of corresponding elements of two array elements
- 8086 program to determine modulus of first array elements corresponding to another array elements
- 8086 program to determine subtraction of corresponding elements of two arrays
- 8086 program to determine sum of corresponding elements of two arrays
- Java program to find the largest number in an array
- Java program to find the 3rd largest number in an array
- Java program to find the 2nd largest number in an array
- 8085 Assembly language program to find largest number in an array
- Java program to Largest number among three numbers

Advertisements