📄 电子时钟的设计.htm
字号:
id=pop-cancel><IMG onclick=javascript:hideLoginWindow(); alt=取消
src="电子时钟的设计.files/close-pop.gif"></SPAN></TD></TR></TBODY></TABLE><INPUT id=url
type=hidden name=url> <INPUT type=hidden name=action> </FORM></DIV>
<DIV id=pageHeader>
<DIV id=blog-title>
<H1><A
href="http://bingzhihai851004.bokee.com/">bingzhihai851004.bokee.com</A></H1>
<P></P></DIV>
<SCRIPT>
writeHeader('diary','bingzhihai851004.bokee.com','9538121');
</SCRIPT>
</DIV>
<DIV id=pageBody>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD id=leftDiv vAlign=top>
<DIV class=operation id=entry-browse-col>
<H3 class=select>更多文章</H3>
<DIV class=col-body>
<P class=edit-col><A
href="http://bingzhihai851004.bokee.com/diaryIndex.b">返回日志首页</A></P>
<UL>
<LI>上一篇文章:<A
href="http://bingzhihai851004.bokee.com/viewdiary.11168746.html">大学无聊的生活</A>
<LI>下一篇文章:<A
href="http://bingzhihai851004.bokee.com/viewdiary.11684393.html">追求
</A></LI></UL></DIV></DIV>
<DIV></DIV>
<FORM id=searchForm
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"
name=searchForm action=http://www.baidu.com/s method=get target=_blank>
<DIV class=operation id=entry-browse-col><IMG height=30
src="电子时钟的设计.files/logo.gif">
<DIV class=col-body><INPUT onkeypress=search(event) id=wd
style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; WIDTH: 130px; PADDING-TOP: 2px"
value=冰之海 name=wd>
<INPUT onclick=doSearch() type=button value=站内 name=""> <INPUT onclick=doSearch1() type=button value=互联网 name=""> <INPUT id=tn
type=hidden value=bokee_pg name=tn> <INPUT id=cl type=hidden value=3
name=cl> </DIV></DIV></FORM></TD>
<TD id=centerDiv vAlign=top>
<DIV class=operation id=blogIndex>
<DIV class=col-body>
<DIV class=entry-preview>
<DIV class=entry-title style="CURSOR: hand" onclick=resize(this)>
<H2>汇编语言课程设计——————电子时钟的设计</H2>
<P><SPAN>分类:<A
href="http://bingzhihai851004.bokee.com/cat.0.html">默认栏目</A></SPAN></P></DIV>
<DIV class=entry-body>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; mso-char-indent-count: 1.96"><B
style="mso-bidi-font-weight: normal"><U
style="text-underline: double"><SPAN lang=EN-US
style="FONT-SIZE: 18pt"><FONT face="Times New Roman"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN></U></B><B
style="mso-bidi-font-weight: normal"><U
style="text-underline: double"><SPAN
style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">西安工业大学课程设计用纸</SPAN></U></B><B
style="mso-bidi-font-weight: normal"><U
style="text-underline: double"><SPAN lang=EN-US
style="FONT-SIZE: 18pt"><FONT face="Times New Roman"><SPAN
style="mso-spacerun: yes">
</SPAN><o:p></o:p></FONT></SPAN></U></B></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-char-indent-count: 2.0; mso-pagination: widow-orphan"
align=left><SPAN
style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">课程名称:汇编语言程序设计<SPAN
lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; TEXT-INDENT: 24pt; TEXT-ALIGN: left; mso-char-indent-count: 2.0; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"
align=left><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体">课程英文名称:<SPAN
lang=EN-US>PROGRAMMING BY ASSEMBLE LANGUAGE</SPAN></SPAN><SPAN lang=EN-US
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; TEXT-ALIGN: left; mso-pagination: widow-orphan"
align=left><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">一.设计目的:</SPAN></B><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 57pt; WORD-BREAK: break-all; TEXT-INDENT: -21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 57.0pt"
align=left><FONT face="Times New Roman"><SPAN lang=EN-US
style="FONT-SIZE: 14pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">1.</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 7pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">
</SPAN></FONT><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">理解掌握定时</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt; mso-font-kerning: 0pt"><FONT
face="Times New Roman">/</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">计数器和中断的使用方法。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 57pt; WORD-BREAK: break-all; TEXT-INDENT: -21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 57.0pt"
align=left><FONT face="Times New Roman"><SPAN lang=EN-US
style="FONT-SIZE: 14pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">2.</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 7pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">
</SPAN></FONT><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">掌握微机常用的输入输出方式及接口技术。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 57pt; WORD-BREAK: break-all; TEXT-INDENT: -21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 57.0pt"
align=left><FONT face="Times New Roman"><SPAN lang=EN-US
style="FONT-SIZE: 14pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">3.</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 7pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">
</SPAN></FONT><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">掌握一定的汇编语言知识,培养自己的动手操作能力。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 57pt; WORD-BREAK: break-all; TEXT-INDENT: -21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 57.0pt"
align=left><FONT face="Times New Roman"><SPAN lang=EN-US
style="FONT-SIZE: 14pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">4.</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 7pt; mso-font-kerning: 0pt; mso-fareast-font-family: 'Times New Roman'">
</SPAN></FONT><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">学习程序设计的基本思路和方法。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; TEXT-ALIGN: left; mso-pagination: widow-orphan"
align=left><SPAN
style="FONT-SIZE: 22pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">二.程序内容</SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><BR></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第一部分:定义显示界面。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><BR></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第二部分:调用系统时间,并将调用的用二进制表示的时间数转换成</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">ASCII</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">码,并将时间数存入内存区。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><BR></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第三部分:将存在系统内存区的时间数用显示字符串的形式显示出来。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><BR></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第四部分:获取键盘的按键值</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">,</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">ESC</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">键退出系统返回</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">DOS</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 14pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 22pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">三.程序设计原理:</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><BR></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">首先在数据段开辟一显示缓冲区,用来存储系统时间。调用</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">DOS</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中断,返回系统时间,并将来返回的二进制时间转换成</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">ASCII</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">码,方便时间显示时的调用。分别将来小时数、分钟数、秒数存入显示缓冲区,并最终存入一结束字符号</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">’$’</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。调用</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 14pt"><FONT
face="Times New Roman">DOS</FONT></SPAN><SPAN
style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字符串显示功能将时间显示</SPAN><SPAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -