[CODE].model small.386option casemap:nonedata segment n dw 0 ; 要求的n值data endscode segment assume cs:code,ds:datastart: mov ax,data mov ds,ax xor ax,ax xor cx,cx mov cx,0next: inc cx add ax,cx cmp ax,1000 jb next mov n,cxcode endsend start[/CODE]
[此贴子已经被作者于2007-5-26 10:14:38编辑过]
就是一个循环
恩 上楼说的对