Wednesday, May 29, 2019

Assembly Language Program to Check Positive or negative


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

DATA SEGMENT        
NUM DB 9H        
P  DB ?        
N  DB ?
DATA ENDS
CODE SEGMENT
START: ASSUME CS:CODE,DS:DATA 
MOV AX,DATA 
MOV DS,AX        
MOV AL,NUM        
ROL AL,1            
JC DN
INC P      
JMP EXIT
DN: INC  N
JMP EXIT
 EXIT:  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