Saturday, June 20, 2020

8086 PROGRAM TO FIND LARGEST NUMBER FROM ARRAY OF 'N' NUMBERS

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

DATA SEGMENT 
BLK1  DB   5 DUP(?)      
LARGE   DB   ?H
DATA ENDS
CODE  SEGMENT
START: ASSUME CS:CODE , DS:DATA
MOV  AX, DATA   
MOV  DS, AX  
LEA SI, BLK1 
MOV CL, 04H
MOV AL, [SI]      
SS: INC SI
     CMP AL,[SI]
     JAE DNN
     MOV AL,[SI]
DNN: DEC CL
         JNZ SS
         MOV LARGE,AL 
MOV AH, 4CH    
INT  21H
CODE ENDS
END START

Programs:-

For many other Assembly Language  Programs related to microprocessor 8086 , C++ , C, 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