第一范文网 - 专业文章范例文档资料分享平台

实验一 汇编语言实验 (4)

来源:用户分享 时间:2020-06-21 本文由凉夜微暖 分享 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

start

proc push sub push mov mov mov lea call lea far ds ax,ax ax

ax,data ds,ax es,ax dx,ask1 disp dx,sfile call mov xor mov mov lea call lea call mov xor mov mov lea call mov int call ret start endp disp

proc mov int ret disp endp inpt

proc mov int ret inpt endp copy

proc mov lea mov int

inpt

cl,sfile+1 ch,ch si,cx

[si+sfile+2],0 dx,ask2 disp dx,dfile inpt

cl,dfile+1 ch,ch si,cx

[si+dfile+2],0 dx,note disp ah,7 21h copy

ah,9 21h

ah,0ah 21h

ah,3ch dx,dfile+2 cx,20h 21h

15

lea mov jc mov mov mov lea int lea mov jc r_w:

mov mov lea int lea jc or je mov lea xchg int lea jc xchg jmp exit:

mov int lea jc xchg mov int lea jc ret err:

mov int xchg mov int call ret copy

endp

dx,er1 bx,ax err bufr,ax ah,3dh al,0

dx,sfile+2 21h dx,er2 bx,ax err cx,10h ah,3fh dx,sfile+2 21h dx,er3 err ax,ax exit ah,40h dx,sfile+2 bufr,bx 21h dx,er4 err bufr,bx r_w ah,3eh 21h dx,er5 err bufr,bx ah,3eh 21h dx,er6 err ah,3eh 21h bufr,bx ah,3eh 21h disp

16

ends

end start

按COPY AAA BBB 格式要求改写此程序,取消人机对话,源文件和目的文件名由 命令行输入。 实验报告:

1、自编程序原稿和调试后的正确清单。 2、实验中产生的问题及体会。 3、实验记录。

code

17

搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新小学教育实验一 汇编语言实验 (4)全文阅读和word下载服务。

实验一 汇编语言实验 (4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/wenku/1092205.html(转载请注明文章来源)
热门推荐
Copyright © 2018-2022 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top