Saturday, June 20, 2020

8086 PROGRAM to compare two strings

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

DATA SEGMENT 
STR1  DB   "hello$"      
STR2   DB   "hello$"
DATA ENDS
CODE  SEGMENT
START: ASSUME CS:CODE , DS:DATA
MOV  AX, DATA   
MOV  DS, AX  
LEA SI, STR1
LEA DI , STR2
MOV CL,0AH
CLD
REPE CMPSB
JZ XX
MOV ANS,01H
XX:MOV AH, 4CH    
INT  21H
CODE ENDS
END START

String reverse 8086 program
block transfer using string
string concatenation
string length calculation
Block Transfer 
Block reverse
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