Saturday, June 20, 2020

8086 Assembly Program to find smallest number from Array of 'N' BYTES

For many other Assembly Language  Programs related to microprocessor 8086 , C++ , C, DataStructures visit our  BLOG 

data segment
array db 10h,20h,60h,90h
small db 0h
data ends
code segment
strat: asseume code:cs, ds:data
mov ax,data
mov ds,ax
cl,04h
mov si , offset array
mov al,[si]
up: inc si
cmp al,[si]
jc dn
mov al,[si]
dn : dec cl
jnz up
mov small ,al
int 3
code ends
end start 


Programs:-
For many other Assembly Language  Programs related to microprocessor 8086 , C++ , C, Android DataStructures visit our  BLOG 

There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations,BCD ,etc

No comments:

Post a Comment