版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
一、填空題1.35.625100011。101B、十六進(jìn)制數(shù)為23H28,0008H3.,4編程序5.8086/8088CPUAXBXCXDX6。8086/8088CPUCSDSSSES78.主要區(qū)分是9PSWCPU自動(dòng)設(shè)置。,,每個(gè)單元對應(yīng),在I/O接口中,為每個(gè)可訪問的存放器安排的地址是端口地址SP1314BX=5678HCL=8ROLBX,CLBX的內(nèi)7856H15組成。16.8086/8088址中低四017。所謂“尋址方式”18.,每條指令都有完全等效的兩個(gè)指令助記符,例如JLJNGE20.8086/8088〔器尋址方式21.MASKMOVAX,MASK[SI+BX]”址變址尋址方式22。CPU執(zhí)行JMPBX“2PCS內(nèi)容。23SCAS時(shí),要進(jìn)展遞增或遞減修改的變址存放器是DI24.BXSIJMPDWORDPTR〔BX+SI25。使用MULBX”,BX,AX令DX-AX中26IMULBL后CF=1OF=1八位不是低八位的符號擴(kuò)展2712CLD將方向標(biāo)志DF置,28.AL0,1,2,70,,TESTAL87H指令.29.8086/8088CPU1MB,CPU20位LOOPyeqianyiDECCXJNEyeqianyiAXANDAX,0XORAX,AX在指令語句操作數(shù)項(xiàng)上,引用一個(gè)段名,XLAT,BX,ALDAAAAAADDADC,只對AL內(nèi)容進(jìn)展修正。AX=7862HXORAX,AXAX0CBWAL應(yīng)當(dāng)是一個(gè)AB,(OF(SF=0A—B〉03839VAR1DD10HDUP〔?40個(gè)字節(jié)單元。SEGMNT用語句表示一個(gè)段的完畢.,指令語句42。ARRAYDB02DUP〔12030,1,2,1,2,0,343.44MOVAX,SEGBUF的執(zhí)行,BUFAX中。45DW1200H,DBDB00H,12H45NEAR,與調(diào)用,FAR47.,ORGn”,該初值的0000H—0FFFFH48yeqianyi100應(yīng)使用的數(shù)據(jù)定義偽指令yeqianyiDw100Dup〔?49.二、選擇題1,2DEBUGLINK●MASM?EDIT2匯編程序源程序●可執(zhí)行文件?目標(biāo)程序44〔101x=〔4116x=3610●8?2594HBCD4148—20●-108?946ADDAXBXAX4E52H時(shí),設(shè)置的奇偶標(biāo)PF=0,411的個(gè)數(shù)是偶數(shù)8171234H82OUTDX,ALINAL,DX④OUTDX,1234H8,1①SIDIAXBXCXDXIPBXSIDIDS9IBMPC2表示的。5位十進(jìn)制數(shù)20位無符號二進(jìn)制數(shù)4位十六進(jìn)制數(shù)20位帶符號二進(jìn)制數(shù)10SS2①BX②BP③IP④SI11.AX=—15AX=151①NEGAX②NOTAX③INCAX④DECAX124②〔SS×10H+〔SP③(ES×10H+(SI④〔CS×10H+(IP133①21002H②00104H③01000H④F0008H14.FLAGS4①CF②OF③SF④ZF15。8086/8088I/O3①16KB②32KB③64KB④1MB16。8086/8088MOV1影響SF符號標(biāo)志影響CF進(jìn)位標(biāo)志17〔21000H=20H,〔21001H=30H,(21002H=40H21001H4①2030H②3040H③3020H④4030H假設(shè)內(nèi)存中有100個(gè)字節(jié)數(shù)據(jù)區(qū),其首地址為10210H,那么其最末一個(gè)字節(jié)3①10274H②10310H③1021H:0063H④1021H:0064H假設(shè)存儲(chǔ)器中從7462H單元開頭的四個(gè)相鄰字節(jié)單元中的內(nèi)容依次是32H46H52HOFEH0FE52H3①7462H②7463H③7464H④7465H20—1AX1①FFFFH②—0001H③FFH④8001H21.2①AX,BX,CX,DX②BX,BP,SI,DI③SP,BP,SI,DI④DS,ES,CS,SS22AX3①M(fèi)OV[SP],AX②POPAX③PUSHAX④MOVSS:[SP],AX23.MOVAL,79CFOF4①CF=0,OF=1②CF=1,OF=1③CF=0,OF=0④CF=1,OF=024BL的低四位清“1②ORBL,00H④ANDBL,00HAXBX中均為帶符號數(shù),當(dāng)進(jìn)展字相除時(shí),下面指令或指令序列正確的選項(xiàng)是2DIVBXCWDIDIVBXDIVBXIDIVBX1①INAL,30H②IN30H,ALAL④INAL,[BX]27(AL=63H(BL=29H執(zhí)行下面指令后DASAX3①(AX=0304H②〔AX=0034③〔AX=0034H④〔AX=0304SARSHR,兩條指令執(zhí)行結(jié)果完全一樣的101無論什么狀況都不行能完全一樣OP1OP2,2①CMPAX,OP1②CMPOP1,OP2③CMPBX,OP2④CMPOP,0FFH301①AL②AX③DL④DX1①M(fèi)OVEAX,123400FEH②ADDEBP,EAX③SUB[BX],DI④INCWORDPTR[BX]MULCLOF,CF的值1OF=1,CF=1OF=1,CF=0③OF=0,CF=1④OF=0,CF=0DF=0SI=20HCX=10REPLODSWSI3①20H②30H③34H④40H34,2①REPMOVSB②REPLODSB③REPSTOSB④REPNZSCASB35VARLAB3①LEAAX,VAR②LEAAX,LAB③JMPNEARPTRVAR④JMPSHORTLAB36CALLDWORDPTRVALUE4尋址方式。段內(nèi)間接調(diào)用段間間接調(diào)用37.REPESCASB指令對字符串進(jìn)展掃描,CX0時(shí),掃描完畢,4①在字符串中遇上第一個(gè)AL中指定的字符AL中指定的字符AL中指定的字符38LOOPNELOP2②〔ZF=0,〔CX≠0③(ZF=1,(CX=0④(ZF=1,(CX≠039AX01H,CMPAX,01H(AX=2①0H②1H③-2H④2H403②ANDAL,0FFH③XORAL,AL④TESTAL,0FFH41.PUSHAX,1操作①(SP—2SP②(SP+1SP③〔SP-1SP④(SP+2SP42AB,AVALUE,給出錯(cuò)誤的條件轉(zhuǎn)4JNBVALUEJAEVALUE③JNCVALUE④JNSVALUE設(shè)SP的初值為1000H,執(zhí)行指令PUSHAX后SP的值是3①0FFFH②1001H③0FFEH④1002H1①M(fèi)OVAL,DX②SHRDX,CL③INAL,DX④OUT02,AL454①M(fèi)OV[BX+2],AX②SUBAX,2476H③SBB[SI],BX④CMPAX,BX8能夠完成此項(xiàng)功能的指4SHRAX,2SARAX,2SHRAX,2SARAX,1③MOVCL,3④MOVCL,3SHRAX,CLSARAX,CLAL,ALBX2①CBW②MOVAH,0MOVBX,AXMOVBX,AXMOVBX,AXMOVBH,AH〔AX=1234H,(DX=89ABH,XCHGAX,DX,AXDX中的內(nèi)容應(yīng)是3〔AX=1234H〔DX=1234H〔AX=12ABH(DX=8934H③〔AX=89ABH〔DX=1234H④〔AX=89ABH〔DX=89ABH49。(CF=12①JNC②JC③JZ④JS4可以直接由機(jī)器執(zhí)行②必需由編譯程序生成目標(biāo)程序才能執(zhí)行③必需由解釋程序生成目標(biāo)程序才能執(zhí)行必需由匯編程序匯編成目標(biāo)程序才能執(zhí)行(BX—(CXAX2MOVAX,BXSUBAX,BX③XCHGAX,BX④MOVAX,BXSUBAX,CXSUBAX,CX2AL,[100H]②MOVAL,00H③MOV[20H],AL④MOVAL,BL以下指令中,PSW2①PUSHF②POPF③JCXZ④LOOPZ3①DB12H②DW4567H’④DB‘ABCD”55。ALBL中都是無符號數(shù),(AL>(BL時(shí),NEXT處。在執(zhí)行CMPAL,BL1①JNBENEXT②JNLENEXT③JBENEXT④JLENEXT56.CF4CLC②XORAX,AX③SUBAX,AX④MOVCF,057POPAXCPU3AL②i(SP+1SP,(〔SPAHii(SP+1SP,(〔SPAHii〔SP+1SP,((SPALAL,〔SP+1SP④i((SPAH,(SP+1SPii〔〔SPAH,〔SP+1SPii〔〔SPAL,(SP+1SPMOVBX,0FFFEHNEGBXNOTBX上述三條指令執(zhí)行后,BX3①—1②-2③—3④—4ORG200HBUFDB12H,34HMOVAX,WORDPTRBUF上述指令語句執(zhí)行后,AX1①3412H②1234H③0200H④0012HNEGCF有影響,3,〔CF=0,〔CF=0,〔CF=1,〔CF=1ALBCD碼,對它進(jìn)展加1“操作,其中錯(cuò)誤的指令序列是3INCALADDAL,1DAADAADAAADCAL,0DAA設(shè)數(shù)據(jù)段有:DA1DBXX;是任一數(shù)據(jù)DA2DB0FEH則以下兩條指令:MOVDL,DA1ORDLDA2執(zhí)行后,DL10FFH或0FEH只能是0FEH只能是0FFH只能是01HDB1DB8DUP〔2DUP(3,3DUP(2MOVAX,WORDPTRDB1[04H]上面指令執(zhí)行后,AX1①0302H②0203H③0202H④0303HDA1DB04HDUP(3DUP(22DUP〔30203H操37432個(gè)65BUF1BUF24①ADDAL,BUF1*BUF2②ADDAL,BUF1/BUF2ADDAL,BUF2-BUF166。MOVBL,80HMOVCL,2SARBL,CL4①(BL=40H②(BL=20H③(BL=0C0H④〔BL=0E0H67(SP=1FFFH,執(zhí)行以下指令后,〔SP=4POPFPUSHAX1FFFH68NUM1EQU100NUM2=64HBL11②MOVBL,NUM1LTNUM2③MOVBL,NUM1NENUM2④MOVBL,NUM1GTNUM269〔AL=04H,(BL=0F8H,MULBL1(AX=0032H(AX=00E0H70ORG100HNUMEQU8042HDA1DB56HMOVBX,OFFSETDA1BX2①56H②100H③101H④102H71〔AL=63H〔BL=29H執(zhí)行下面指令后SUBAL,BLDASAX3①(AX=0304H②〔AX=0034③(AX=0034H④〔AX=030472.AX22IDIV2SARAX,1RORAX,1SHRAX,173。MOVAL,—1NEGALXORAL,65上述程序段執(zhí)行后,AL1①40H②64H③01H④61H74DA1DB12H34HDA2DW12H,34H2①BUF1DWDA1②MOVDA1+1,AX③MOVBYTEPTRDA2+1,AL④MOVWORDPTRDA1,AXDA1DW2A05HDA2DB0FAHMOVAL,BYTEPTRDA1SUBDA2,AL上述指令執(zhí)行后,DA23①0DAH②0FAH③0F5H④0D0H,1在DSBXESBX中在SS和BX中在CS和BX中77。MOVAL,79ADDAL,0B1H執(zhí)行上述指令后,CFOF3②(CF=0,〔OF=178。DA1EQUWORDPTRDA2DA2DB0ABH,0CDHSHLDA1,1SHRDA2,1DA220CDH②2BH,9BH79TESTVAR,55HJEZER0ZER0:JEZER04①VAR=0②VAR=55HVAR中第1,3,5,7位均為0VAR中第0,2,4,6位均為0XORAX,AXMOVAL,90HCWD執(zhí)行上述指令后,4①〔DX=0000,〔AX=FF90H②〔DX=FFFFH,〔AX=0090H③〔DX=FFFFH,〔AX=FF90H④(DX=0000,〔AX=0090HDOS系統(tǒng)功能調(diào)用退出用戶程序時(shí),INT21H指令前,3指令A(yù)X,4CH②MOVAL,4CHAH,4CH④RET(AH=0,(AL=6H,〔BL=9H:ADDAL,BLAAA之后,1②〔AH=0,〔AL=0FH83。STR1DBBeiJing2009”SCADB‘J’LEADI,STR1MOVAL,SCAMOVCX,0CHCLDREPNESCASBNEXT:??NEXTCX=1ZF=817110010184。VAR1DW1234H,89,255,—2,-0AHVAR2DB34,78H,44,22,19,—12MOVAH,23HLEABX,VAR1+4MOVAL,BYTEPTR[BX+1]MOVSI,WORDPTRVAR2+3程序段執(zhí)行后AX=2300HSI=1316H①AX=23FEHSI=1317H②AX=23FEHSI=1316H③AX=23FFHSI=1316H④AX=23FFHSI=1317HBL5AHNEXT處,可實(shí)現(xiàn)的方法是①TESTBL,5AH②XORBL,5AHJZNEXTJZNEXT③ANDBL,5AH④ORBL,5AHJZNEXTJZNEXTDOS系統(tǒng)功能調(diào)用時(shí),〔1存放器中。①AH②AL③DL④AX設(shè)〔AL=03H,能夠完成將AL中的低4位代碼變反,而其高4位代碼不變2ANDAL0FHXORAL0FH③ORAL,0FH④SUBAL,0FH88AX3①ANDAX,0001H②XORAX,0001HAX,0001H④ADDAX,0001H89.1①M(fèi)OVCS,AX②MOVDS,AX③MOVSS,AX④MOVES,AXAL中內(nèi)容不同的數(shù),ADR單元,3JZK1JZK1MOVADR,DIMOVADR,DIK1:??K1:??JZK1JNZK1DECDIDECDIMOVADR,DIMOVADR,DIK1:??K1:??91AX=0FFFFHDX=0001HMOVCX2LOP:SHLAX,1RCLDX,1LOOPLOPDX=4AX=①DX=0006HAX=0FFFDH②DX=0006HAX=0FFFCHDX=0007HAX=0FFFCH92ARRAYDW6,9,$+4,10H,$+4MOVAX,ARRAY+4ARRAY0084HAX中的內(nèi)容是①0009H②008CH③0090H④0010H93.AX=7865HBX=89AAHCLCADDAX,BXORBX,AXRCRAX,1RCLBX,1程序執(zhí)行后AX=3BX=CF=①(AX=0107H〔BX=175FH(CF=1②(AX=0106H〔BX=175EH(CF=1③〔AX=0107H〔BX=175EH(CF=0④(AX=0106H〔BX=175FH〔CF=094〔SS=338AH,(SP=450H,PUSHBXPUSHF兩條指令后堆棧頂1①33CECH②33CF2H③33CF4H④33CE8H954符號名96。VAY1DW?VAY2EQUBytePTRVAY1VAY1VAY2之間的關(guān)系是,偏移地址一樣973四字節(jié)98.202①BufferEQU20②BufferDW20DUP(?DB20DUP〔?991存目的串以BP為基址存取操作數(shù)堆棧操作下面程序段是推斷兩個(gè)存儲(chǔ)單元是否同為負(fù)數(shù),假設(shè)是,AX1,否則AX0〔兩空白處要利用不同的標(biāo)志位選用不同VAR1DW××××VAR2DW××××MOVAX,VAR1MOVBX,VAR2XORAX,BX1TESTBX,8000HMOVAX,0FFFFHNEXT:MOVAX,0①JNSNEXT②JSNEXTJENEXTJENEXTJZNEXTJNZNEXTVARY1EQUBYTEPTRVARY2VARY2DW0ABCDHSHLVARY1,1SHRVARY2,1VARY230AB55H102。DEC2DB‘56”XORDI,DIMOVBL,DEC2[DI+1]ANDBL,0FHMOVAL,DEC2[DI]ANDAL,0FHMOVDL,10MULDLADDAL,BL上述程序段執(zhí)行后,AL=3BL=①AL=56BL=7②AL=55BL=6③AL=56BL=6④AL=55BL=7(SP=0028HRET6后,SP3①0036H②0022H③0030H④0020H,,2?_等名字的第一個(gè)字符可以是數(shù)字名字的有效長度≤3個(gè)字符名字的最終一個(gè)字符可以是數(shù)字10584①DATA1DT?②DATA2DW?③DATA3DD?④DATA4DQ?106AX=0078HBX=0408HSHRBX1ANDBX,0F0FHMOVCX,4LOP:XCHGBH,BLDIVBLSALAX,1LOOPLOP上述程序段執(zhí)行后,AX=2BX=30和0402H30和0204H35和0400H35和0400H107yeqianyiDW10HDUP(3DUP(2,50,3,5yeqianyi2①80H②100H③50H④124H108.如語句要完成肯定功2名字項(xiàng)操作項(xiàng)操作數(shù)項(xiàng)注釋項(xiàng)109END3ENDEND語句表示程序執(zhí)行到此完畢END語句在匯編后產(chǎn)生氣器代碼110:DATA1DB10H,00HDATA2DW20H,30H1②MOVBYTEPTRDATA2,AL③ARRDDWDATA1④MOVWORDPTRDATA1,AX111,3匯編程序?qū)沃噶罘g成機(jī)器代碼。偽指令在執(zhí)行時(shí)完成其功能.偽指令的功能是指示、引導(dǎo)匯編程序在匯編過程中所完成的不同操作。,目標(biāo)程序中仍保存?zhèn)沃噶?112JNBE1①CF=0ANDZF=0②CF=0ANDZF=1③CF=1ANDZF=0④CF=1ANDZF=1113.BUFDW100DUP(0,則指令MOVCX,SIZEBUF”2CX,100②MOVCX,200DUP〔0114AR1DBABCDEFGHAR2DBOMOVAH,1INT21HANDAL,0FHDECALLEABX,AR1XLATAR1MOVAR2,AL4,〔AR2=1CF=44H(或‘D,043H〔或‘C,1或‘C’,0115。ADRDW1234H,5678HLEASI,ADRLDSBX,ADR設(shè)變量ADR的偏移地址是100H,上述兩條指令執(zhí)行后:SI=2,DS=100H和1234H100H和5678H000H1234H000H5678H116.NUMBEREQU81HDATADB49HXORDATA,NUMBERDATA3①81H②49H③C8H④89H117DADADW0123H2DA,‘123H”②MOVDA,123H③MOVBytePTRDA,0123H④MOVDA,‘123H’DATASEGMENTDA1DB64HDUP〔?DA2DW0100H,0200HDA3DWDA2MOVSI,DA3SI3①100H②200H③100④300H:DATASEGMENTORG0134HDADB12H,63,26HARRDDWDADATAENDSBX4BX,ARRD②MOVBL,DA+2120.DX=0A476H,CX=0203H,CF=1ORDX,DXRCRDX,CLXCHGCH,CLRCLDX,CLDX=2CF=523BH1523BH0423CH1423CH01214①PORT1EQUAL②PORT2=AL④PORT3EQU2A50HPORT3EQU2A50HAND0FFH122.ADRT=100H,3①M(fèi)OVAX,ADRT②MOVAX,[ADRT+SI]③MOV[ADRT],AX④MOVADRT[SI],AX1233Segment③StackSegmentDATEndsExtraEndsStackEnds124.MOVAX,8SHLAX,1SHLAX,1MOVBX,AXMOVCL,2SHLAX,CLADDAX,BXBX=1AX=0020H和00A0H0028H和00A0H0028H和00C8H0020H和00C8H三、程序填空1BCD3BCDxyz本程x+y—zSS字節(jié)單元中.試在程序的空格處填入適當(dāng)BCDDBxy,zSSDB?MOVAL,BCDADDAL,BCD+1DAASUBAL,BCD+2DASMOVSS,AL2DA1DB01234’DA2DB5DUP〔0MOVSI,0MOVCX,5LOP:MOVAL,DA1[SI]ADDAL,11HORAL,01HMOVDA2[SI],ALINCSILOOPLOP(1程序段執(zhí)行后,DA241H,43H,43H,45H,45H〔2MOVALDA1[SI]3AX中為0“CONT單元中,.MOVCONT,0MOVCX,16NEXT:SHRAX,1JCDWEINCCONTDONE:DCECXJNZNEXTSUM5”AL中,XORAX,AXNEXT:CMPSUM,5JLDONESUBSUM,5INCACJMPNEXTDONE:,承受調(diào)用子程序方式求一個(gè)字?jǐn)?shù)組中的元素之和,并將之送入SUMMOVBX,OFFSETARRAYMOVCX,NNCALLyeqianyiyeqianyiPROCPUSHAXXORAX,AXNEXT:ADDAX,[BX]ADDBX,2LOOPNEXTMOVSUM,AXPOPAXRETyeqianyiENDPBCD在屏幕上顯示出來。MOVBX,OFFSETfeiyabcdMOVCX,NNCALL,DISPLAYDISPLAYPROCPUSHDXLOP:MOVDL,[BX]ADDDL,30HMOVAH,02HINT21HINCBXLOOPLOPRETDISPLAYENDP7。BUFDW1,0,0AB1CH,582H,93A04H,90LEADI,BUFMOVCX,8MOVAX,9CLDREPNZSCASWJNZK1SUBDI,OFFSETBUFMOVDX,DISHRDX,1ADDDL,30HMOVAH,2INT21HK1:??〔1BUF9的元58.StringBUFF令。StringDB‘123ABC051AF??049ADVWS’NEQU$-StringBUFFDBNDUP〔?MOVCX,NMOVBX,0MOVSI,0yeqianyi:CMPString[BX],‘A’JBNEXTCMPString[BX],‘Z’JANEXTMOVAL,String(BXMOVBUFF[SI],ALINCSINEXT:INCBXLOOPyeqianyiHLT9BUFFDAR,請將空白處各填上BUFFDWDARDW?MOVAX,BUFFTESTAX,8000HJZNEXTNEGAXNEXT:MOVDAR,AX四、編程題1.BUF字節(jié)單元中的數(shù)拆成凹凸四位并且將分別出的高四位和BUF+1BUF+2D:\ZQL>typeexp11。asmDATASEGMENTBUFDB34H,?,?CODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATAMOVDS,AXMOVAL,BUFMOVCL,4SHRAL,CLMOVBUF+1,ALMOVAL,BUFANDAL,0FHMOVBUF+2,ALMOVAH,4CHINT21HCODEENDSENDSTART2,ALASCII2號DOS,輸入?yún)?shù):D:\ZQL〉typeexp12.asmCODESEGMENTASSUMECS:CODESTART:MOVAL,0DHCALLLiuweipeiMOVAH,4CHINT21HLiuweipeiPROCCMPAL,10JCK1ADDAL,7K1:ADDAL,30HMOVDL,ALMOVAH,2INT21HRETLiuweipeiENDPCODEENDSENDSTART3DAT150個(gè)字DAT2CLDMOVCX,50LEASI,DAT1LEADI,DAT2REPMOVSB4Block為首地址的字節(jié)單元中06〔1班的學(xué)生考試成,利用學(xué)生的序號來查表得到該學(xué)生的成績,設(shè)學(xué)生的序號在NUMBERRESULT單元中.DATASEGMENTBlockDBX1,X2,X3,,X50NUMBERDBXRESULTDB?DATAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATAMOVDS,AXLEABX,BlockMOVAL,NUMBERXLATMOVRESULT,ALMOVAH,4CHINT21HCODEENDSENDSTART545000試編寫一程序統(tǒng)計(jì)一100SUM單元中。DATASEGMENTAGEDB25,31,6,101,90,71,116,CONTEQU$-AGESUMDB?DATAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATAMOVDS,AXMOVCX,CONTMOVBX,0LOP:CMPAGE[BX],100JBNEXTINCSUM6DX:AX32,AX〔0DX11CX〔CX<32。試編制一程序段,實(shí)現(xiàn)上述要求XORAX,AXLOP:STCRCLAX,1RCLDX,1LOOPLOP7.編寫程序段,DOS1號功能調(diào)用通過鍵盤輸入一字符,并推斷輸入的字YYES程序段;如字符是NNO程序段;假設(shè)DOS功能調(diào)用,重輸入字符.〔考生勿需寫出源程序格KEY:MOVAH,1(YESNO分別是兩INT21HCMPAL,‘Y’JEYESCMPAL,‘N’JENOJMPKEY8STRING,SIGN1,SIGN0〔列(1用比較條件轉(zhuǎn)移指令實(shí)現(xiàn).〔2用重復(fù)操作前綴串搜尋指令實(shí)現(xiàn).〔1MOVCX,50(2MOVCX,50MOVBX,0LEADI,STRINGN:CMPSTRING[BX],’$’CLDJZDONEMOVAL,”$’INCLOOPMOVJMPDONEMOVEXIT0:HLTBXNSIGN,0EXIT0SIGN,1DONE:EXIT0:REPNEJZMOVJMPMOVHLTSCASBDONESIGN,0EXIT0SIGN,1……9。從鍵盤接收一個(gè)4位十進(jìn)制數(shù)ASCII緩沖區(qū),,提示重輸入,試編寫一程序完成上述功能DATASEGMENTASCIIDB4DUP(?SIGNDB‘Inputerror,Repeat!$’DATAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATADONE:MOVDS,AXLEASI,ASCIIOUTPUTMOVCX,4NEXT:MOVAH,01HINT21HCMPAL,30HJBDONECMPAL,39HJADONEOUTPUTMOV[SI],ALCODEINCSILOOPNEXTMOVAH,4CHINT21H7假設(shè)輸入:3456SICALLJMPPROCPUSHLEAMOVINTPOPRETENDPENDSENDOUTPUTNEXTASCII33H34H35H36HCXDX,SIGNAH,09H21HCXSTARTDATASEGMENTM1DB××M2DB?DATAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATA282610.編寫一完整源程序,M1M2M10M2
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 智慧解決方案:智能城市管理
- 消防應(yīng)急避險(xiǎn)
- 3.2.3離子反應(yīng) 課件 高一上學(xué)期化學(xué)蘇教版(2019)必修第一冊
- 糖尿病個(gè)人教育與護(hù)理
- 傳統(tǒng)毛筆課件教學(xué)課件
- 日常生活食品安全
- 生產(chǎn)安全事故案例培訓(xùn)教材
- 布谷鳥節(jié)奏游戲教案反思
- 弧度制說課稿
- 海水的運(yùn)動(dòng)說課稿
- 微觀經(jīng)濟(jì)學(xué)英文版課件
- 《影視鑒賞》PPT課件(111頁P(yáng)PT)
- 易綱貨幣銀行學(xué)第4章風(fēng)險(xiǎn)和收益
- 基于PLC的交通信號燈控制系統(tǒng)設(shè)計(jì)
- 防滲墻驗(yàn)收、記錄表
- 出境領(lǐng)隊(duì)服務(wù)程序與規(guī)范(共36頁).ppt
- 學(xué)生公寓宿管員周考核表
- 數(shù)控線切割中級工試題
- 第二章輸水和配水工程
- 國培計(jì)劃操作手冊
- 進(jìn)修醫(yī)師考核鑒定表(共4頁)
評論
0/150
提交評論