主题:关于累加 程序 求助!!
code segment
assume cs:code
begin: mov ax,0
mov cx,1
L1:add ax,cx
inc cx
cmp cx,100
jnbe L2
jmp L1
L2:mov ah,4ch
int 21h
code ends
end begin
这是我写的从1+2+3+4+5 .......加到100
不知道对不 请大家帮忙看下
还有就是我要将最后的结果在屏幕上面输出要怎么搞
assume cs:code
begin: mov ax,0
mov cx,1
L1:add ax,cx
inc cx
cmp cx,100
jnbe L2
jmp L1
L2:mov ah,4ch
int 21h
code ends
end begin
这是我写的从1+2+3+4+5 .......加到100
不知道对不 请大家帮忙看下
还有就是我要将最后的结果在屏幕上面输出要怎么搞