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

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
  •  何以解忧愁,唯有杜康酒!
  • 『姓名』:
  • 『性别』:男『发送消息
  • 个人说明:http://student.zjzk.cn/course_ware/data_structure/web/shu/shu6.3.2.htm
  • 详细信息『加为好友』
学习动态

[2010-06-21 21:57] 实验10.2

不会溢出的除法子程序
assume cs:code
code segment
start:mov ax,4240h
      mov dx,000fh
      mov cx,0ah
      call divdw
      mov ax,4c00h
      int 21h
divdw:push ax
      mov ax,dx
      mov dx,0
      div cx
      mov bx,ax
      pop ax
      div cx
      mov cx,dx
      mov dx,bx
      ret
code ends
end start

DEBUG通过不知道有没有不妥之处,高手们指点一二
评论次数(1)  |  浏览次数(726)  |  类型(汇编作业) |  收藏此文  | 

[  tinyparticle   发表于  2010-06-23 15:26  ]

子程序的通用性不够好,可以再改进下吧

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