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

凉夜微暖 分享 2020-06-21 下载文档

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


实验一 汇编语言实验 (4).doc 将本文的Word文档下载到电脑

下一篇:数学建模题

相关推荐
相关阅读
本类排行
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 7 元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xxxxxx QQ:xxxxxx