满意答案
assume cs:code, ds:datas
datas segment
S dw 0
datas ends
code segment
start:
mov ax, datas
mov ds, ax
mov bx, 1
xor cx, cx
xor ax, ax
xor si, si
next:
cmp ax, 200
jg done
add cx, ax
mov ax, bx
mul bl
inc bx
jmp next
done:
mov S, cx
mov ax, 4c00h
int 21h
code ends
end start