You are on page 1of 5

TITLE:

PROGRAM TO FIND
DECENDING ORDER NUMBER
FROM ARRAY OF FIVE 8-BIT
NUMBERS

TEAM MEMBERS:
ESHIKET KUMAVAT: 61
ARYAN KHAIRNAR: 62
OWAIS KHATIB: 63
TANISHKA KHODE: 64
YASHRAJ KOKANE: 65

PROGRAM CODE:
OUTPUT OF PROGRAM:
INSTRUCTIONS USED
 LEA(Load Effective Address):
This instruction determine the offset of variable or
memory.
It is used to indicate the starting index of Array or
to point starting index of Array by loading array in
source index.
Example: LEA SI,ARRAY

 XCHG (Exchange): It is used to exchange or swap


the value of the index from array,
Example: XCHG AL,[SI+1]
Swapping the value in AL with array’s next index.

 CMP (compare): It is used to compare elements in


a segment, it is used to compare two elements with
each other to perform some action.
Example: AL,[SI+1]

 Mov: It is used to move the content of register


from source to destination
Example: Mov AL,[SI]

Explanation
This program arrange the elements present in a
array in decending order by arranging largest to
smallest values in the array
First we must give the starting of the array by
pointing to it’s SI then visit and compare two
elements
Eg: Mov AL,[SI]
In above example

You might also like