ASM program to compare two given strings

Aim: – To write an assembly language program to comparing two given strings.

1
2
3
4
5
6
7
8
9
10
11
MOV AX, DATA
MOV DS, AX
MOV ES, AX
CID
MOV CX, 07
LEA SI, SR1
LEA DI, SR2
REP CMP, SB
JB L1
L1: 	MOV BH, 00
END

Result: Two given strings are compared.

Chitra
Chitra

One thought on “ASM program to compare two given strings

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in