msg db 'input N:$'data ends code segment assume cs:code,ds:data main proc near start:mov ax,data mov ds,ax mov dx,offset msg mov ah,09h int 21h call decibin;接收N的子程序 mov cx,bx mov bx,0 loop1:add bx,cx;1+2+…N的和存入BX loop loop1 call crlf call bini;...