RTUComputer ScienceYr 2024 · Sem 42024

Q5Microprocessor and Interfaces

Question

10 marks

Write an assembly language program for 8085 to find the largest number in an array.

Answer

Assembly program using CMP and JC.

Algorithm: Initialize counter, load first number into A. Compare with next number. If next > A, move it to A. Decrement counter. Loop until counter is zero. Store A.

Back to Paper