IDEAL
MODEL small
STACK 100h
N equ 1
DATASEG
start_block dw ?
end_block dw ?
sum dw ?
address dw ?
CODESEG
proc InputNumsAddressSum
mov [start_block], dx
mov [end_block], cx
mov ax, 0
again_input:
mov ah, 1
int 21h
mov ah, 0
add bx, ax
checknum_sum:
cmp al, '0'
jne again_input
printsum_adress:
ret
endp InputNumsAddressSum
start:
mov ax, @data
mov ds, ax
call InputNumsAddressSum
exit:
mov ax, 4c00h
int 21h
END start