This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;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 |
NewerOlder