汇编课程设计_打字计时练习

汇编课程设计_打字计时练习

ID:6630827

大小:28.50 KB

页数:11页

时间:2018-01-20

汇编课程设计_打字计时练习_第1页
汇编课程设计_打字计时练习_第2页
汇编课程设计_打字计时练习_第3页
汇编课程设计_打字计时练习_第4页
汇编课程设计_打字计时练习_第5页
资源描述:

《汇编课程设计_打字计时练习》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、汇编课程设计_打字计时练习打字计时练习_汇编课程设计打字计时练习微机原理课程设计_打字计时练习_汇编课程设计说明:这是一个打字计时练习的程序,在缓冲区中预放了一些字母,运行时,可按照屏幕上显示的字母输入练习,每输入完一行按回车键后,可显示出练习输入的时间.stacksegmentparastack'stack'db256dup(0)toplabelwordstackendsdatasegmentparapublic'data'bufferdb16hdup(0)bufpt1dw0bufpt2dw0kbflagdb0promptdb'*

2、pleasepractisetyping*',0dh,0ah,'$'scantabdb0,0,'1234567890-=',8,0db'qwertyuiop[]',0dh,0db'asdfghjkl;',0,0,0,0db'zxcvbnm,./',0,0,0db'',0,0,0,0,0,0,0,0,0,0,0,0,0db'789-456+1230.'evenoldcs9dw?oldip9dw?str1db'abcdefghijklmnopqrstuvwxyz.'db0dh,0ah,'$'str2db'therearesomenews

3、papersonthetable.'db0dh,0ah,'$'str3db'therearesomecloudsinthesky.'db0dh,0ah,'$'str4db'shealwayseatsherlunchatnoon.'db0dh,0ah,'$'str5db'idonotlikeautumnandwinter.'crlfdb0dh,0ah,'$'colondb':','$'evensaddrdwstr1,str2,str3,str4,str5countdw0secdw0mindw0hoursdw0save_lcdw2dup

4、(?)dataendscodesegmentassumecs:code,ds:data,es:data,ss:stackmainprocfarstart:movax,stackmovss,axmovsp,offsettoppushdssubax,axpushaxmovax,datamovds,axmoves,ax;movah,0;moval,4;int21h;movah,0bh;movbh,0;movbl,4;int11hmovah,35hmoval,09hint21hmovoldcs9,esmovoldip9,bxpushdsmo

5、vdx,segkbintmovds,dxmovdx,offsetkbintmoval,09hmovah,25hint21hpopdsmovah,35hmoval,1chint21hmovsave_lc,bxmovsave_lc+2,espushdsmovdx,segclintmovds,dxmovdx,offsetclintmoval,1chmovah,25hint21hpopdsinal,21handal,11111100bout21h,alfirst:movah,0moval,3int10hmovdx,offsetpromptm

6、ovah,9int21hmovsi,0next:movdx,saddr[si]movah,09hint21hmovcount,0movsec,0movmin,0movhours,0stiforever:callkbgettestkbflag,80hjnzendintpushaxcalldispcharpopaxcmpal,0dhjnzforevermoval,0ahcalldispcharcalldisptimeleadx,crlfmovah,09hint21haddsi,2cmpsi,5*2jnenextjmpfirstendin

7、t:clipushdsmovdx,save_lcmovax,save_lc+2movds,axmoval,1chmovah,25hint21hpopdspushdsmovdx,oldip9movax,oldcs9movds,axmoval,09hmovah,25hint21hpopdsstiretmainendpclintprocnearpushdsmovbx,datamovds,bxleabx,countincwordptr[bx]cmpwordptr[bx],18jnereturncallinctadj:cmphours,12j

8、lereturnsubhours,12return:popdsstiiretclintendpinctprocnearmovwordptr[bx],0addbx,2incwordptr[bx]cmpwordptr[bx],60jnee

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。