资源描述:
《微机原理与接口技术 成绩统计项目报告1》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、《微机控制与接口技能训练》Computercontrolandinterfaceskillstraining项目报告成绩评定程序的设计编写、调试、结果项目报告评定教师***得分课程名称CourseName微机控制与接口技能训练项目编号ItemNo.1名称Item学生成绩统计程序的设计与实现姓名Name***学号No.**班级Class*****项目报告1.说明自己在项目制作中的难点、解决办法及心得体会答:(1)一开始成绩输出出不来,经检查发现开头和结尾都落了程序,改正后就可以输出结果。(2)最后结果换行输出时遇到了些问题,经过询问同学和查阅课本最后成功换行输出。2.说明项目中所涉及的
2、知识点及难点答:(1)汇编语言程序的一般结构形式,先定义数据段,再定义堆栈段,最后定义代码段。(2)汇编语言换行输出时的一般结构形式:MOVDH,00HMOVDL,00HMOVAH,02HINT10H此程序中DH代表行,意思是在第几行输出;DL代表列,意思是空几格。3.硬件设计图/原理图和源程序(注:学生编写的硬件设计图和源代码打印附后)DATASEGMENTSTRING1DB'great`snumber:','$'STRING2DB'90-99`snumber:','$'STRING3DB'80-89`snumber:','$'STRING4DB'70-79`snumber:','
3、$'STRING5DB'60-69`snumber:','$'STRING6DB'0-59`snumber:','$'STUNUMDB10GRADEDB80,100,78,56,79,90,96,82,88,75A100DB0B90DB0C80DB0D70DB0E60DB0F50DB0DATAENDSSTACKSEGMENTSTACKDB200DUP(0)STACKENDSCODESEGMENTASSUMECS:CODE,SS:STACK,DS:DATASTART:MOVAX,DATAMOVDS,AXMOVA100,0MOVB90,0MOVC80,0MOVD70,0MOVE60,0M
4、OVF50,0LEABX,OFFSETSTUNUMMOVCX,[BX]ANDCX,00FFHLEABX,OFFSETGRADECOMPARE:MOVAX,[BX]ANDAX,00FFHCMPAX,60JBFIVECMPAX,70JBSIXCMPAX,80JBSEVENCMPAX,90JBEIGHTCMPAX,100JBNINEINCA100JMPSHORTNEXTFIVE:INCF50JMPSHORTNEXTSIX:INCE60JMPSHORTNEXTSEVEN:INCD70JMPSHORTNEXTEIGHT:INCC80JMPSHORTNEXTNINE:INCB90NEXT:INC
5、BXLOOPCOMPAREOUTPUT:MOVDH,01HMOVDL,05HMOVAH,02HINT10HLEADX,STRING1MOVAH,09HINT21HMOVDL,A100ADDDL,30HMOVAH,02HINT21HMOVDH,03HMOVDL,05HMOVAH,02HINT10HLEADX,STRING2MOVAH,09HINT21HMOVDL,B90ADDDL,30HMOVAH,02HINT21HMOVDH,05HMOVDL,05HMOVAH,02HINT10HLEADX,STRING3MOVAH,09HINT21HMOVDL,C80ADDDL,30HMOVAH,0
6、2HINT21HMOVDH,07HMOVDL,05HMOVAH,02HINT10HLEADX,STRING4MOVAH,09HINT21HMOVDL,D70ADDDL,30HMOVAH,02HINT21HMOVDH,09HMOVDL,05HMOVAH,02HINT10HLEADX,STRING5MOVAH,09HINT21HMOVDL,E60ADDDL,30HMOVAH,02HINT21HMOVDH,0BHMOVDL,05HMOVAH,02HINT10HLEADX,STRING6MOVAH,09HINT21HMOVDL,F50ADDDL,30HMOVAH,02HINT21HMOVAH
7、,4CHINT21HCODEENDSENDSTART输出结果显示: