Before me was the task, using Internet resources to write and run the code to derive the result of calculations using the formula. The numbers B, C, D are given in dec. A = B - C + 1. B = 45, C = 10, D = 1.
.model small ; тип данных? .data ; набор данных B dw 45 ; в какой системе они здесь обычно указываються, C dw 10 D dw 1 result dw ?,'$' ; ? - мы не знаем еще значения, и что делает $? читал, что это первый символ полученный? .code ; сегмент кода mov ax, @data ; не знаем сдвиг mov ds, ax ; сдвиг равен будет какому-то значению mov ax, B sub ax, C inc ax mov di, offset result ; что здесь толком происходит mov [di], ax ; что здесь толком происходит mov ah, 09h ; не понимаю, во многих вроде функция вывода mov dx, offset result ; int 21h ; interrupting mov ah, 4ch ; не понимаю int 21h end In short, the nonsense came out, you see. Just do not shout "fu" right away, but help with the code. This is the first attempt to write as much as possible .exe code.