Computer Science, asked by natasha6573, 9 months ago

Find the maximum number from the block of 10 data bytes in 8085

Answers

Answered by Palak3654
0

Answer:

In this program we will see how to find the smallest number from a block of bytes using 8085.

Problem Statement

Write 8085 Assembly language program to find the smallest number from a block of bytes.

Discussion

In this program the data are stored at location 8001H onwards. The 8000H is containing the size of the block. After executing this program, it will return the smallest number and store it at location 9000H.

Logic is simple, we are taking the first number at register B to start the job. In each iteration we are getting the number from memory and storing it into register A. Then if B > A, then we simply update the value of B with A, otherwise go for the next iteration. Thus we can find the smallest number in a block of bytes.

Similar questions