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下载服务。
相关推荐: