Write an assembly language code in gnusim8085 to find the smallest and largest number
Answers
Answered by
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
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
English,
5 months ago
Math,
5 months ago
English,
5 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago