.MODEL SMALL
.STACK 100
.DATA
MG1 DB " EQUAL $"
MG2 DB " NOT EQUAL $"
.CODE
MOV AX,@DATA
MOV DS,AX
MOV BL,'3'
MOV AH,1
INT 21H
CMP BL,AL
JE L1
MOV DX,OFFSET MG2
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
L1:
LEA DX,MG1
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
END
.STACK 100
.DATA
MG1 DB " EQUAL $"
MG2 DB " NOT EQUAL $"
.CODE
MOV AX,@DATA
MOV DS,AX
MOV BL,'3'
MOV AH,1
INT 21H
CMP BL,AL
JE L1
MOV DX,OFFSET MG2
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
L1:
LEA DX,MG1
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
END