.MODEL SMALL
.STACK 100H
.DATA
NUM1 DW ?
NUM2 DW ?
DOM1 DB 'digit the number: ',13, 10 , '$'
DOM2 DB 'digit the other one: ',13, 10 , '$'
RIS1 DB 'the sum: ', 13,10, '$'
SOMMA DW ?
.CODE
.STARTUP
MOV AX, @DATA
MOV DS, AX
MOV AH, 09H
MOV DX, OFFSET DOM1 ; showing the question
INT 21H
MOV AH, 01H
INT 21H
XOR AH,AH
SUB AL,'0'
MOV NUM1,AX
MOV AH, 09H
MOV DX, OFFSET DOM2 ; showing the question
INT 21H
MOV AH, 01H
INT 21H
XOR AH,AH
SUB AL,'0'
MOV NUM2,AX
MOV AL, NUM1
MOV AH, NUM2
ADD AL,AH ; effective sum
MOV AL, 48
MOV DL, AL
MOV AH,02H ; showing the result
INT 21H
MOV AH, 4CH ; going back to DOS
INT 21H
END