;试编写一程序,要求比较两个字符串STRING1和STRING2所含字符是否完全相同,
;若相同则显示'MATCH',若不相同则显示'NO MATCH'.
DATA SEGMENT
string1 DB "I a$"
string2 DB "I am a student!$"
YES DB "MATCH", 0DH, 0AH, '$'
NO DB "NO MATCH", 0DH, 0AH, '$'
DATA ENDS
CODE SEGMENT
MAIN PROC FAR
ASSUME CS:CODE, DS:DATA, ES:DATA
STRAT:
PUSH DS
SUB AX,AX
PUSH AX
MOV AX,data
MOV DS,AX