欢迎来到天天文库
浏览记录
ID:41691493
大小:162.99 KB
页数:14页
时间:2019-08-30
《微机实验报告第一次上机》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、数学建模论文终稿学院:信息工程学院组员:詹佳飞、鲍卢杰、黄旭煌李靖甘、傅知行、单任远组长:—詹佳飞指导老师:陈伟锋实验一122222222223;«谛将柱上面龙义变呈»代码殷-CODEStart:3132333435363738394041424344454647XvvMainmovAXZ@DATAmovDS,AX请将您的代码百在下面»PROCFARmovAXr0010BmovBXr0010BmovCL,2shlAXrCLaddAXrBXmovCLr1shlAXZCLHLTleaDX^MESSAGEmo
2、vAH,09hint21hmovAH/4chint21h4849MainENDP代码32:把001OB移入AX里面33:把()01OB移入BX里面34:CL的值置235:将AX逻辑左移2位36:AX+BX并将结果保存在AX中37:CL的值置138:将AX逻辑左移1位39:暂停流程图:(结束)结果:oj回C:Windowssystem32cmd.exe•debugl.exeAX=0002BX=0002DS=14B2ES=14A014B0J00DD3E0-tCX二FE02DX=0000SP=0300S
3、S=14B4CS=14B0IP=000DSHLAX,CLBP=0000SI=0000DI=0000NVUPElPLNZNAPONCAX=0008BX=0002DS=UB2ES=14A014B0:000F03C3-tCX=FE02DX=0000SP=0300SS=14B4CS=UB0IP=000FADDAX,BXBP=0000SI=0000DI=0000NVUPElPLNZNAPONCAX=000ABX=0002DS=14B2ES=14A014B0:0011B101-tCX=FE02DX=0000SP=0
4、300$S=14B4CS=14B0IP=0011MOVCL,01BP=0000SI=0000DI=0000NVUPElPLNZNAPENCAX=000ABX=0002DS=14B2ES=14A014B0:0013D3E0-tCK=FE01DX=0000SP=0300SS=14B4CS=14B0IP=0013SHLAX,CLBP=0000SI=0000DI=0000NVUPElPLNZNAPENCAX=0014BX=0002DS=14B2ES=14A014B0:0015F4CX=FE01DX=0000SP
5、=0300SS=14B4CS=14B0IP二0015HLTBP=0000SI=0000DI=0000NVUPElPLNZNAPENC实验二17181920212223242526272829303132«谕梅&下面定义变益»MESSAGEDB^WelcometouseAASM[MESSAGEEQU$-MESSAGEDATA1DB•5・J2・J3・J1・DATA2DB•9•八3•J8•八釘;«i9梅在上面定义变量»代碍段.CODEStart:movAXr@DATAmovDSrAX请将您的代码写在下面»33
6、MainPROCFAR34leaSI#DATA135leaDIrDATA236movCX#04h37movAH#OOH38NEXT:39movAL,[SI]40adcAL事[DI]41adcAL7、opNEXT159movAHr4CH60int21H6162leaDXrMESSAGE63movAHr09h64int21h65movAH,4ch66int21h67ni代码解释:34:置口标串首元素的偏移地址至SI35:置Fl标吊首元素的偏移地址至DI36:将04移入CX37:将00移入AH39:把数据段小以SI为有效地址的存储器单元的字内容送到AL40:AL+DI+CF并将结果放入AL41:AL+AI1+CF并将结果放入AL42:AL置043:非压缩ECD码调整45:AL+30并将结果放入AL46:8、将AL移到DI中47:DI自加一48:S1自加一49:循环NEXT50:将5移入CX51:AH自加3052:将AH移入DI中54:将D1移入DH屮55:将02移入AH中56:软件中断57:DI自减一58:循坏NEXT159:将4C移到AH60:软件中断流程图:实验三3233343536373839404142434445464748495051525354555657585960616263646566LOOPNEXT67686970717
7、opNEXT159movAHr4CH60int21H6162leaDXrMESSAGE63movAHr09h64int21h65movAH,4ch66int21h67ni代码解释:34:置口标串首元素的偏移地址至SI35:置Fl标吊首元素的偏移地址至DI36:将04移入CX37:将00移入AH39:把数据段小以SI为有效地址的存储器单元的字内容送到AL40:AL+DI+CF并将结果放入AL41:AL+AI1+CF并将结果放入AL42:AL置043:非压缩ECD码调整45:AL+30并将结果放入AL46:
8、将AL移到DI中47:DI自加一48:S1自加一49:循环NEXT50:将5移入CX51:AH自加3052:将AH移入DI中54:将D1移入DH屮55:将02移入AH中56:软件中断57:DI自减一58:循坏NEXT159:将4C移到AH60:软件中断流程图:实验三3233343536373839404142434445464748495051525354555657585960616263646566LOOPNEXT67686970717
此文档下载收益归作者所有