汇编网首页登录博客注册
911911的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
最新留言
文章收藏
友情链接

[2009-09-10 09:34] 求第四章检测答案

有一题要找出逻辑错误 几个错误倒都能看出来 但哪个是逻辑错误呀
1 assume cs:code
  code segment
       mov ax,2000H
       add ax,ax

       mov ax,4c00H
       int 21H
  code ends
  end
这个应该没错吧 连接时就是没有栈段的提示

2 assume cs:code
  code segment
       mov ax,2000H
       add ax,ax

       mov ax,4c00H
       int 21H
  code
  end
这个缺个 code后缺个ends

3 assume cs:code
  code segment
       mov ax,2000H
       add ax,ax

       mov ax,4c00H
       int 21H
  code ends
这个缺最后的 end

4 sume cs:code
  code segment
       mov ax,2000H
       add ax,ax

       mov ax,4c00H
       int 21H
  code ends
  end
这个assume 写sume
评论次数(1)  |  浏览次数(647)  |  类型(默认类型) |  收藏此文  | 

[  huibian2009   发表于  2009-09-10 11:39  ]

呵呵,逻辑错误就是在编译的时候可以通过,但在执行的过程中会发生错误。

 
 请输入验证码  (提示:点击验证码输入框,以获取验证码