CO
CO
REPORT
on
Bachelor of Engineering
in
This is to certify that the Report on “SMALLEST AND LARGEST NUMBER USING 8085
SIMULATOR ” is an authentic work carried out by CHARAN(1NT23IS058),
BHARATH(1NT24IS404-T). both bonafide students of Nitte Meenakshi Institute of
Technology, Bangalore, fulfilled the requirements to be awarded a Bachelor of Engineering
degree in Information Science and Engineering from Visvesvaraya Technological University,
Belagavi. It is confirmed that the report has been updated to reflect the adjustments and
suggestions made during the assessment.
Name:
INTRODUCTION
LOOP: INX H
CMP M
JC
SMALLES
T MOV
A,M
SMALLEST: DCR C
JNZ
LOOP
STA
8010
HLT
For checking
largest
number: LXI
H,8000
MVI
C,04
MOV
A,M
LOOP: INX H
CMP M
JC
LARGEST
MOV A,M
LARGEST: DCR C
JNZ
LOOP
STA
8010
HLT
PROGRAM EXPLANATION:
values).
o Output: The smallest and largest numbers from
the list.
Algorithm to Find Smallest and Largest Number :
Step-by-Step Algorithm:
1. Load the first number into the accumulator (A
register).
2. Compare the next number with the value in A.
3. If the next number is smaller than A, load it into
A (for smallest number).
4. If the next number is larger than A, save it as the
largest.
5. Continue this process for all numbers in the list.
6. After finishing the comparison, output the
smallest and largest numbers.
Step-by-Step Execution:
o Open the 8085 Simulator.
number.
o Load the memory with the input numbers.