TITLEEXAMPLE.ASMDATASEGMENTPARADATATHREEDB3MESSDBMonth=0DH0AHMONINLABELBYTEMAXDB3ACTDBMONDB3DUPALFMONDB0DH0AHMONTABDBJANFEBMARAPRDBMAYJUNJULACGDBSEPOCTNOVDECDATAENDSMONTAB+(-1)34.4DOSDOSDOSDOSDOSDOS123DOS12,3RegDOS1DOS(AH=1)ALASCII(AH=8)12(AH=0aH)DS:DX123DsHOWAREYOUË20maxlen→actlen→‘H’‘O’‘W’‘A’‘R’‘E’‘Y’‘O’‘U’20200dstring→0b(DX)1002DOS(AH=2)DLASCII2(AH=9)DS:DX‘$’TITLEEXAMPLE.ASMDATASEGMENTPARADATATHREEDB3MESSDBMonth=0DH0AHMONINLABELBYTEMAXDB3ACTDBMONDB3DUPALFMONDB0DH0AHMONTABDBJANFEBMARAPRDBMAYJUNJULACGDBSEPOCTNOVDECDATAENDSEXITRETMAINENDPCODEENDSENDMAINCODESEGMENTPARACODEASSUMECSCODEDSDATAESDATAMAINPROCFARPUSHDSSUBAXAXPUSHAXMOVAXDATAMOVDSAXMOVESAXSTARTLEADXMESSMOVAH9INT21HLEADXMONINMOVAH0AHINT21HMOVDL0DH“”MOVAH02HINT21HMOVDL0AH“”MOVAH02HINT21HCMPACT0JEEXITMOVBH30HCMPACT2JETWOMOVBLMONMOVBLMONJMPCONVTWOMOVBLMON+1MOVBHMONCONVXORBX3030HMOVAL10MULBHADDALBLCMPAL13JNCEXITLOCLEASIMONTABDECALMULTHREEADDSIAXSIMOVCX3CLDLEADIALFMONREPMOVSB3ALFMONLEADXALFMONMOVAH09HINT21HJMPSTART123231H32HMAXACTMON0DH*.asm*.obj*.exe1.asm2.MASMobj3.LINKexe4.DEBUG1..ASM2..OBJ3..LST.lst4..EXEDOS.EXE1..ASMEDIT.COM2.MASM.EXE.ASM.OBJ.LSTDOSMASMmasmsource[.asm]source.objmasmsource[.asm].LINK.EXE(.EXE)DOSLINKlinksource[.obj]source.exelinksource[.obj].DEBUGDEBUGDEBUGDEBUG161.debugCdebugexample.exeDEBUGQ2.DD:ASCII()‘.’078153.RAX0000BX=0000CX=0100DX=0000SP=0040BP=0000SI=0000DI=0000DS=1090ES=1090SS=10ACCS=10B0IP=0000NVUPDIPLNZNAPONC10B00000B8A810MOVAX10A88‘0’‘1’CS:IP4.UU5.-E-E1EDS:0010EB‘ABC’34DS00100EBH‘A’’B’‘C’ASCII34H2E00106.RRDSDS0962DS:2975DS7.G[]8.()-T9.()-PTTPHelloworldMynameisDJXhuibian.asm1datasegment2out1db'Helloworld'3axdb'MynameisDJX'4dataens5codesegment6assumecs:code,ds:data19codeends207leadx,out18movah,29int21h10movdl,0ah11movah,212int21h13movdl,0dh14mooah,215int21h16leadx,ax17movah,918int21hmasmC\MASM\MASMHUIBIANMicrosoft(R)MacroAssemblerVersion5.00Copyright(C)MicrosoftCorp1981-1985,1987.Allrightsreserved.Objectfilename[HUIBIAN.OBJ]:Sourcelisting[NUL.LST]:Cross-reference[NUL.CRF]:EndoffileencounteredoninputfileHUIBIAN.ASM(20):warningA4085:Endoffile,noENDdirectiveOpensegments:DATAHUIBIAN.ASM(3):warningA4016:Reservedwordusedassymbol:AXHUIBIAN.ASM(4):errorA2105:Expected:instructionordirectiveHUIBIAN.ASM(14):errorA2105:Expected:instructionordirectiveHUIBIAN.ASM(16):errorA2049:IllegaluseofregisterEndoffileencounteredoninputfileHUIBIAN.ASM(20):warningA4085:Endoffile,noENDdirective1datasegment2out1db'Helloworld'3out2db'MynameisDJX'4dataends5codesegment6assumecs:code,ds:data19codeends20Endstart7start:leadx,out18movah,29int21h10movdl,0ah11movah,212int21h13movdl,0dh14movah,215int21h16leadx,out217movah,918int21hMicrosoft(R)MacroAssemblerVersion5.00Copyright(C)MicrosoftCorp1981-1985,1987.Allrightsreserved.Objectfilename[HUIBIAN.OBJ]:Sourcelisting[NUL.LST]:Cross-reference[NUL.CRF]:51524+406492Bytessymbolspacefree0WarningErrors0SevereErrorsC\MASM\MASMHUIBIANC\LINKHUIBIANMicrosoft(R)OverlayLinkerVersion3.60Copyright(C)MicrosoftCorp1983-1987.Allrightsreserved.RunFile[HUIBIAN.EXE]:ListFile[NUL.MAP]:Libraries[.LIB]:LINK:warningL4021:nostacksegmenthuibian.exeC\MASM\huibian.exe,DEBUGC\MASM\DEBUGHUIBIAN.EXE_U-12AB00008D160000leadx,[0000]-12AB0004B402movah,02-12AB0006CD21int21h-12AB0008BA02movdl,0ah-12AB000AB402movah,02…AX=0000BX=0000…DI=0000DS=1299ES=1299SS=1299…NVUP…PONC12AB0004B402movAH02-POUT1-D1299012AB0000CD2000A0009A…······12AB0010…-12AB000048656C6C6F20…Hello…12AB0010…-DSmovax,datamovds,axleadx,out1movah,2int21hmovdl,0ahmovah,2int21hmovdl,0dhmovah,2int21hleadx,out2movah,9int21hstart:MynameisDJX1.$2.AH09H2out1db'Helloworld'3out2db'MynameisDJX'…start:leadx,out1movah,9int21hmovdl,0ahmovah,2int21h…datasegmentout1db'Helloworld’’$’out2db'MynameisDJX’’$’dataendsHelloworldMynameisDJXDOSDOS1PUSHDSXORAXAXPUSHAXRET2movah,4chint21hDOS21H4cHDOScodeendsEndstartdatasegmentout1db'Helloworld'’$’out2db'MynameisDJX'’$’dataendscodesegmentassumecs:code,ds:datamovah,4chint21hHellowordMynameisDJXDOS