汇编实现1~100相加

     .model small
     .data
     sum dw '?'
     .code
     start:
     mov ax,@data
     mov ds,ax
     sub ax,ax
     mov cx,64h
  again:
     add ax,cx
     loop again
     mov sum ,ax
  ls: 
     mov ax,4c00h
     int 21h
     end start 
发布了33 篇原创文章 · 获赞 9 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/shujiaw/article/details/85236357
今日推荐