Friday, June 21, 2019

Assembly Language Program to reverse the string in 8086 microprocessor

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

DATA SEGMENT        
STRING  DB 'GOOD MORNING$'        
REV DB 0FH DUP(?)
DATA ENDS
CODE SEGMENT
START:ASSUME CS:CODE,DS:DATA        
MOV DX,DATA        
MOV DS,DX        
LEA SI,STRING         
MOV CL,0FH        
LEA DI,REV        
ADD DI,0FH       
 UP:MOV AL,[SI]        
MOV [DI],AL        
INC SI        
DEC DI        
 LOOP UP       
 MOV AH,4CH        
INT 21H
CODE ENDS
END START 
 Programs:-


For many other Language  Programs related to microprocessor 8086 , C++ , data structures visit our  BLOG

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







No comments:

Post a Comment