DATA SEGMENT
PASSWORD DB 'FAILSAFE'
DESTSTR DB 'FEELSAFE'
MESSAGE DB 'String are equal $'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA, ES:DATA
MOV AX, DATA
MOV DS, AX
MOV ES, AX
LEA SI, PASSWORD
LEA DI, DESTSTR
MOV CX, 08
CLD
REPE CMPSB
JNE NOTEQUAL
MOV AH, 09
MOV DX, OFFSET MESSAGE
INT 21h
NOTEQUAL:
MOV AX, 4C00h
INT 21h
CODE ENDS
END