DATA SEGMENT
M DB 36H
N DB 95H
RESAULT1 DB 'M>N$'
RESAULT2 DB 'M<N$'
DATA ENDS
STACK SEGMENT
DB 1000 DUP(?)
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK
START:
MOV AX,DATA
MOV DS,AX
LEA SI,M
LEA DI,N
MOV BH,[DI]
CMP BYTE PTR [SI],BH
JA R1
LEA DX,RESAULT2
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
R1: LEA DX,RESAULT1
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START