资源描述:
《汇编上机指导》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1.先将qqqqq文件夹放在d盘的根目录下,打开运行输入cmd2.下面是输入步骤,D:回车CDqqqq冋车EDIT姓名.ASMALT+ENTER放大屏幕输入程序如图3•下面是书上24页的一个例子苣返気C:Wrdow5system32cmdexe-editFengtiar^inasmditearchiewFiletianmin.asmptionsD:qqqciqCOUNTSUMDSEGSSEGSTKSSEGCSEGDW0DW0ENDSSEGMENTDB100DUP(?)ENDSSEGMENTASSUMEDS:DSEG,S
2、S:SSEG,CS:CSEGAX,DSEGDS,AXSI,OFFSETBUFDX,0fiLJSIJRL/S1START:MOVMOVMOVMOVLP0:MOVCMPCMPAL,,0,JNCLP1INCDXJMPLP2LP1:CMPRL,3AHJCLP2INCDXJEEXITCommandsformanipulatingfiles点击save,然后点击exit4.masmFengtianmin.asmSB苣淫员C:V/na:assystem32cmd.exe
3、5.LinkFengtianmin.objQB苣淫员:C:Win
4、dowssys*eri32cmd.exeD:qqqqq>editFengtiannin.asmD:qqqqq>editFengtiannin.asmD:qqqqq>nasmMicrosoftCopyrightFengtianmin.asmMacroAssemblerUersion5.00MicrosoftCorp1981-1985,1987.Allrightsreserved.Objectfilename[Fengtiannin.OBJ]:SourcelistingCross-referenceUnabl
5、etoopeninputfile:Fengtianmin.asm[NUL.LST]:Fengtianmin[NUL.CRF1:D:qqqqq>linkFengtiannin.objMicrosoftCopyrightOuerlayLinkerUersion3.60MicrosoftCorp1983-198?.Allrightsreserved.RunFile[FENGTIANMIN.EXE]:”istFile[NUL.MAP]::FengtianninLibraries[.LIBI:LINK:fatalerror
6、L1093:FENGTIANMIN.OBJ:objectnotfoundD:qqqqq>6.debugFengticinmin.exe13DC:015726ES:13DC:0158884705MOV[BX-051,fiL13DC:015BR13221MOVAX,[2132113DC:015E-q8B163421MOVDX,[21341D:qqqqq>debugFengtianmin.exeFilenotfound-u13DC:010021E8ANDAX,BP13DC:01024CDECSP13DC:01031483ADCA
7、L,8313DC:0105C4068946LESfiX,[4689113DC:0109F8CLC13DC:010R8956FRMOV[BP-061.DX13DC:010DA1B817MOVfiX,[17B8113DC:01100B06BA17ORAXJ17BR113DC::01U751CJNZ013213DC:0116837E0AFFCMPWORDPTR[BP-0AJ,-0113DC:011A7408JZ012413DC:011C3400XORAL,0013DC::011ECBRETF13DC:011F134608ADCRX,
8、[BP-081苣淫灵C:Windowssystem32cmd.exe-debugFengtianmin.exe4