Monday, June 10, 2019

SUM OF SERIES with carry Assembly Language Program 8086



DATA SEGMENT   
NUM1 DB 02H,05H,07H,08H,01H
RESULT DB 1 DUP(0)        
CARRY DB 0H
DATA ENDS
CODE SEGMENT
START:ASSUME CS:CODE,DS:DATA        
MOV DX,DATA        
MOV DS,DX       
MOV CL,05H        
MOV SI,OFFSET NUM1  
UP:MOV AL,[SI]        
ADD RESULT,AL         
JNC NEXT        
INC CARRY  
NEXT:INC SI       
LOOP UP       
MOV AH,4CH       
INT 21H
CODE ENDS
END START

Programs:-

For many other Assembly Language  Programs related to microprocessor 8086, c++ , datastructures  visit our  BLOG 


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

No comments:

Post a Comment