循环程序设计(1)

编程序计算2^10,将最后结果保存在dx中
(下面列出源代码,并截图说明运行的结果)。
源代码:

assume cs:code
code segment
       mov ax,2
       mov cx,9
     s:add ax,ax
    loop s
         mov dx,ax
         mov ax,4c00h
         int 21h
code ends
end

这里写图片描述

这里写图片描述

猜你喜欢

转载自blog.csdn.net/gjg666/article/details/81182785