资源描述:
《微机原理与接口技术实验报告》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实验二初级程序的编写与调试实验一、实验目的1、熟练掌握DEBUG的常用命令,学会用DEBUG调试程序.2、深入了解数据在存储器中的存取方法,及堆栈中数据的压入与弹出.3、掌握各种寻址方法以及简单指令的执行过程.二、实验内容1、设堆栈指针SP=2000H,AX=3000H,BX=5000H,请编一程序段将AX的内容和BX的内容进行交换.请用堆栈作为两寄存器交换内容的中间存储单元,用DEBUG调试程序进行汇编与调试.程序:MOVAX,3000MOVBX,5000MOVSP,2000PUSHAXPUSHBXPOPAXPOPBXHLTconstructionqualityacc
2、eptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);1.10thenormsofconstructionsupervision,theelectricpowerconstructionsupervisionregulations2、设D
3、S=当前段地址,BX=0300H,SI=0002H请用DEBUG的命令将存储器偏移地址300H~304H连续单元顺序装入OAH,OBH,OCH,ODH,OEH.在DEBUG状态下送入下面程序,并用单步执行的方法,分析每条指令源地址的形成过程?当数据传送完毕时,AX中的内容是什么?-E3000A,0B,0C,0D,0E-AMOVBX,0300MOVSI,0002MOVAX,BXMOVAX,0304MOVAX,[0304]constructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/
4、T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);1.10thenormsofconstructionsupervision,theelectricpowerconstructionsupervisionregulationsMOVAX,[BX]MOVAX,0001[BX]MOVAX,[BX][SI]MOVAX,0001[BX][SI]HLT
5、constructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);1.10thenormsofconstructionsupervision,theelectricpowerconstructionsupe
6、rvisionregulations3、设AX=0002H,编一个程序段将AX的内容乘10,要求用移位的方法完成.程序:MOVAX,0002MOVBX,AXMOVCL,2SHLAX,CLADDAX,BXMOVCL,1SHLAX,CLHLTconstructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallat
7、ionengineeringcode(DL/T5161.1-2002~5161.17-2002);1.10thenormsofconstructionsupervision,theelectricpowerconstructionsupervisionregulations实验四加法及判断程序的编写与调试一、实验目的1、熟练掌握编写汇编语言源程序的基本方法和基本框架.2、学会编写顺序结构,分支结构和循环结构的汇编程序3、掌握程序中数据的产生与输入输出的方法.二、实验内容1、用汇编语言编写一个加法程序:1325+9839请用ASCII码的形