DATA SEGMENT
NUM1 DW 462H
NUM2 DW 30AH
RESULT DW 0
DATA ENDS
STACK SEGMENT STACK
DB 50 DUP(0)
STACK ENDS
CODE SEGMENT
ASSUME DS:DATA,SS:STACK,CS:CODE
START: MOV AX,DATA
MOV DS,AX
MOV AX,NUM1
SUB AX,NUM2
JNB PLUS
NEG AX
PLUS: MOV RESULT,AX
MOV AH,4CH
INT 21H
CODE ENDS
END START