Skip to content

Instantly share code, notes, and snippets.

@tanayseven
tanayseven / strings2.asm
Created October 9, 2012 21:01
program to compare two strings using string instructions using 8086 asm lang.
;program to compare two strings using string instructions
INCLUDE io.h
Cr EQU 0ah
Lf EQU 0dh
data SEGMENT
p_str1 DB Cr, Lf, 'Enter 1st string: ',0
p_str2 DB Cr, Lf, 'Enter 2nd string: ',0
p_not DB Cr, Lf, 'The strings are not same',0