Professional Documents
Culture Documents
Date :
EXP No: 3
AIM
Write the assembly language program to perform the following operations using 8086
instruction set:
a) to add an array of N unsigned binary numbers (16 bit numbers, N=5)
stored
in the source location CS : IP and the sum will be displayed in decimal form
in the memory location. (Indicate the flag status)
b) to sort an array of N signed binary (includes both positive and negative
numbers) numbers in descending / ascending order. The source location is
DS:SI and the destination location is ES:DI.
Software required:
Emulator 8086
Program Code:
(table format (label, CS:IP, opcode, operand, comment)
a)
Label CS:IP Opcode Operand Comment
CS:IP
DS:SI
Sum value in decimal
form
b)
Result: