Computer Science, asked by RILESH9835, 11 months ago

Write an assembly language code in gnusim8085 to find the smallest and largest number

Answers

Answered by Anonymous
20

Answer:

Algorithm –

Load two numbers from memory 2050 & 2051 to register L and H .

Move one number(H) to Accumulator A and subtract other number(L) from it.

if result is positive then move the number(H) to A and store value of A at memory address 3050 and stop else move the number(L) to A and store value of A at memory address 3050 and stop.

Answered by Anonymous
1

Answer:

==============================================

Algorithm –✔️

  • Load two numbers from memory 2050 & 2051 to register L and H.

  • Move one number(H) to Accumulator A and subtract other number(L) from it.

  • if result is positive then move the number(H) to A and store value of A at memory address 3050 and stop else move the number(L) to A and store value of A at memory address 3050 and stop.

==============================================

[I hope help ✔️

Similar questions