版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
若存在将其修改为disk,并在显示器上显示。若存在将其删除,并在显示器上显示。入disk使其人仍然有序,并在显示器上显示。 ESC键(ASCII16位编码,各字段的长度如下:BIT1=6BIT2=4ESC键(ASCII16位编码,各字段的长度如下:BIT1=6BIT2=4BIT3=3BIT4=3BIT1BIT41 BUFDBDBDB0FFHDUP ANSDB0DH,0AH,0FDHDUPCODE ASSUME MOVMOVLEAMOV (1读字符、2写字符、0AH;09H写字符串INTLEAXORAH,AHADDSI,AXDECXORCH,CHMOV MOVAL,[SI]MOV[DI],ALDECSIINC;LOOPMOVBYTE LEA;9MOVINTMOV INTCODEENDINTCODEEND2DB?DB0FFHDUPSTROUTDBDBCODEMOVDS,AXLEADX,BUFMOVAH,0AHINT21HLEASI,BUF[2]XORCH,CHJNENOTAJEATENJMPNEXTJEAHUNINCSTROUT[9]MOVSTROUT[9],'0'INCSTROUT[8]JMPNEXTJNECMPJESPACETENCMPJESPACETENJMPNEXTJESPACEHUNINCSTROUT[20]JMPNEXTMOVSTROUT[21],'0'MOVSTROUT[20],'0'INCSTROUT[19]INCLOOPAGAINMOVAH,09HINT21HINT21HCODEEND3DB?DB0FFHDUPDATAENDSCODEMOVDS,AXLEADX,BUFMOVAH,0AHINT21HLEAMOVCL,BUF[1]XORJESPACEMOVAL,[SI]MOV[DI],ALINCDIINCLEADX,STROUTMOVAH,09HINT21HINT21HCODEEND4DB?DB0FFHDUPDATAENDSCODEMOVDS,AXLEADX,BUFMOVAH,0AHINT21HLEAMOVCL,BUF[1]XORCH,CHJNENOTAJMPNEXTMOVMOVINCSIINCINCSIINCLEADX,STROUTMOVAH,09HINT21HINT21HCODEEND5DB?DB0FFHDUPDATAENDSCODEMOVDS,AXLEADX,BUFMOVAH,0AHINT21HLEAMOVCL,BUF[1]XORCH,CHJNZNOTAADDDI,2MOVAL,[SI]MOV[DI],ALINCDIINCMOVBYTEMOVBYTEMOVAH,09HINT21HINT21HCODEEND6DB?DB0FFHDUPDATAENDSCODEMOVDS,AXLEADX,BUFMOVAH,0AHINT21HLEAMOVCL,BUF[1]XORCH,CHJBNOTUPJANOTUPMOVAL,[SI]ADDAL,20HMOV[DI],ALJMPNEXTMOVAL,[SI]MOVINCSIINCMOVBYTELEALEAINT21HINT21HCODEEND7DB?DB0FFHDUPDATAENDSCODEMOVDS,AXLEADX,BUFMOVAH,0AHINT21HLEAMOVCL,BUF[1]XORCH,CHJBNOTUPJANOTUPINCSIJBNOTALPHAJANOTALPHAINCSIMOVAL,[SI]MOVINCINCLEADX,STROUTINCLEADX,STROUTMOVAH,09HINT21HINT21HCODEEND8BUFDB DBDB05HDUPSTROUTDB DB0DH,0AH,'time'DB0DH,0AH,'file'DB0DH,0AH,'code'DB0DH,0AH,'path'DB0DH,0AH,'user'DB0DH,0AH,'quit'DBREPLACEDBCODEMOVMOVMOVLEADX,BUFINT21HLEASI,BUF[2]MOVCX,10PUSHMOVPOPCXJNZMOVPOPCXJNZLEA MOVMOVAL,[SI]MOV[DI],ALINCSIINCDIJNZ JMPADDBX,6MOVDI,BXLOOPAGAINLEA INT21HMOV CODEENDSEND9BUFDB0DH,0AH,'ram'DB0DH,0AH,'yes'DB0DH,0AH,'red'DB0DH,0AH,'the'DB0DH,0AH,'get'DB0DH,0AH,'for'DB0DH,0AH,'key'DB0DH,0AH,'not'DBDATAENDSDB0FFHCODECODEMAINPROCNEARMOVDS,AXMOVLEAMOVADDMOVPUSHSIPUSHDIPOPDIPOPMOVDI,SIJMPNEXT1ADDDECJNZADDDECJNZAGAIN0LEADX,BUFINT21HINT21HMAINXCHGS3PROCXCHGS3PROCPUSHSIPUSHDIPUSHCXMOVSI,DIMOVCX,3MOVAL,[SI]MOV[SI],AHMOV[DI],ALINCSIINCPOPCXPOPSIPOPDIXCHGS3ENDPCODEENDSENDBUFDBDBDB05HDUPSTROUTDB0DH,0AH,'data','$'DBDBDBDBDBDBDBDBDBDB100DUP(?)STACKENDSMOVMOVMOVMOVES,AXMOVSS,AXLEADX,BUFMOVAH,0AHINT21HLEAMOVDL,10PUSHSIPUSHDIPOPDIPOPSIJEDELDECDLJMPEXITMOVCX,4REPSTOSBMOVCX,10PUSHDXJENEXT1INT21HPOPDXADDDX,7MOVAH,4CHINT21HCODEENDBUFDB0DH,0AH,'data'DB0DH,0AH,'time'DB0DH,0AH,'file'DB0DH,0AH,'code'DB0DH,0AH,'path'DB0DH,0AH,'user'DB0DH,0AH,'exit'DB0DH,0AH,'quit'DB0DH,0AH,'test'DBDB'DW0FFHDUP(?)STACKENDSMOVDS,AXMOVLEAMOVSI,DIADDSI,6MOVPUSHSIPUSHDIMOVCX,4POPDIPOPJADECDHJADECDHJNZADDBX,6DECDLLEAMOVINTLEALEADI,BUF[2]MOVPUSHMOVCX,4POPDIPOPSIJBADDDECPUSHSUBAX,DIADDBX,3MOVSI,BXSUBSI,6MOVDI,BXMOVREPPOPMOVCX,4REPMOVSBLEADX,BUFPOPMOVCX,4REPMOVSBLEADX,BUFINT21HINT21HPUSHSIPUSHDIPUSHMOVMOVCX,4MOVAL,[SI]MOV[SI],AHMOV[DI],ALINCSIINCPOPCXPOPDIPOPSIXCHGS4ENDPCODEENDSENDBUFDBDB51HSTROUTDB0DH,0AH,0FDHDB0FCHDW0FFHCODEASSUMEMAINPROCMOVDS,AXMOVES,AXLEADX,BUFMOVMOVDS,AXMOVES,AXLEADX,BUFMOV INTLEASI,BUF[2]XORCH,CHSUBBYTE ;将ASCIIINCLOOPLEACALL CMPAX,0JNEEXITJMPCALLCONVLEADX,STROUTMOVAH,09HINT21HMOVINTDECDECPROCPUSHPUSHLEASI,BUF[2]MOVBX,SIXORAH,AHADDSI,AXDECCMPBYTEJNEDECDECJBHALTJMPINCSICMPSI,DIJAINCSIMOVAX,1POPCXPUSHCXJNEINCINGINCCMPBYTEPTR[SI],'9'JNZNOTADDTENJMPBREAK0CMPSI,BXJBNOTAMOVLEAMOVSUBCX,DIREPLEAMOVSUBCX,DIREPHEXINCENDPMOVLEASUBMOVMOVAL,[SI]MOV[DI],ALDECSIINCLOOPAGAINCONVCODEENDBUFDBDB51HSTROUTDB0DH,0AH,0FDHDB0FCHSTACK_SEGENDSCODESEGMENTMAINPROCNEARMOVDS,AXMOVES,AXLEAMOVINTLEASI,BUF[2]MOVINTLEASI,BUF[2]XORCH,CHSUBBYTEINCLOOPLEACMPAX,0JNEEXITJMPAGAIN1CALLCONVLEADX,STROUTMOVAH,09HINT21HMOVINTDECDECPROCPUSHPUSHLEASI,BUF[2]MOVBX,SIXORAH,AHADDSI,AXDECJNEDECINGDECJBHALTJMPINCSICMPSI,DIJAINCSIMOVAX,1POPCXPUSHCXJNEINCINGINCJMPINCBYTECMPSI,BXJBNOTAMOVSUBCX,DIREPBININCCONVPROCMOVLEASUBMOVMOVLEASUBMOVMOVAL,[SI]MOV[DI],ALDECSIINCLOOPAGAINCONVCODEENDBUFDBDB51HSTROUTDB0DH,0AH,0FDHDB0FCHSTACK_SEGENDSCODESEGMENTMAINPROCNEARMOVDS,AXMOVES,AXLEADX,BUFMOVAH,0AHINT21HLEASI,BUF[2]XORCH,CHSUBBYTEINCLOOPINCLOOPLEACMPAX,0JNEEXITJMPCALLCONVLEADX,STROUTMOVAH,09HINT21HMOVAH,4CHINT21HMAINENDPBINDECPROCNEARPUSHPUSHLEASI,BUF[2]MOVBX,SIXORAH,AHADDSI,AXDECJNEDECINGDECJBHALTJMPINCSIJAINCSIJMPMOVAX,1MOVAX,1POPCXBINDECENDPPUSHCXJNEINCINGINCSICMPBYTEPTR[SI],'9'JNZNOTADDTENJMPBREAK0CMPSI,BXJBNOTAMOVSUBCX,DIREPHEXINCENDPMOVLEASUBINCMOVMOVAL,[SI]MOVMOVMOVAL,[SI]MOV[DI],ALDECSIINCLOOPAGAINCONVCODEENDBUFDBDB51HSTROUTDB0DH,0AH,0FDHDB0FCHSTACK_SEGENDSCODESEGMENTMAINPROCNEARMOVDS,AXMOVES,AXLEADX,BUFMOVAH,0AHINT21HLEASI,BUF[2]XORCH,CHSUBBYTEINCLOOPLEAMOVCALLCMPAX,0JNEEXITCALLCALLCMPAX,0JNEEXITCALLJMPCALLMOVAH,09HINT21HINT21HMAINENDPPUSHPUSHLEASI,BUF[2]MOVBX,SIXORAH,AHADDSI,AXDECJNEDECINGDECJBHALTJMPINCSIJAINCSIMOVAX,1MOVPOPPOPBINDECENDPPUSHCXJNEINCINGINCCMPSI,BXJBNOTAMOVSUBCX,DIREPDECINCENDPMOVLEASUBMOVMOVAL,[SI]MOV[DI],ALDECSIINCLOOPAGAINCONVCONVCODEENDCODEENDBUFDBDB51HSTROUTDB0DH,0AH,0FDHDB0FCHSTACK_SEGENDSCODESEGMENTMAINPROCNEARMOVDS,AXMOVES,AXLEADX,BUFMOVAH,0AHINT21HLEASI,BUF[2]XORCH,CHJBNOTNUMJANOTNUMJMPNEXT0JBISDOWNJAISDOWNJMPNEXT0INCLOOPLEALEACMPAX,0JNEEXITCALLDECINCJMPAGAIN1CALLCONVLEADX,STROUTMOVAH,09HINT21HMOVINTHEXDECPROCPUSHPUSHLEASI,BUF[2]MOVBX,SIXORAH,AHADDSI,AXDECJNEDECINGDECJBHALTJMPINCSICMPSI,DIJAINCSIMOVAX,1POPCXPOPCXPUSHCXJNEINCINGINCCMPSI,BXJBNOTAMOVSUBCX,DIREPDECINCENDPMOVLEASUBMOVMOVAL,[SI]MOV[DI],ALDECSIINCMOVBYTECODECODEENDBUFDBDB51HSTROUTDB0DH,0AH,0FDHDB0FCHSTACK_SEGENDSCODESEGMENTMAINPROCNEARMOVDS,AXMOVES,AXLEADX,BUFMOVAH,0AHINT21HLEASI,BUF[2]XORCH,CHJBNOTNUMJANOTNUMJMPNEXT0JBISDOWNJAISDOWNJMPNEXT0INCLOOPLEALOOPLEACMPAX,0JNEEXITCALLBININCJMPAGAIN1CALLCONVLEADX,STROUTMOVAH,09HINT21HMOVINTHEXDECPROCPUSHPUSHLEASI,BUF[2]MOVBX,SIXORAH,AHADDSI,AXDECJNEDECINGDECJBHALTJMPINCSICMPSI,DIJAINCSIJMPMOVMOVPOPCXPUSHCXJNEINCINGINCCMPSI,BXJBNOTAMOVSUBCX,DIREPBININCENDPMOVLEASUBMOVMOVAL,[SI]MOV[DI],ALDECSIINCCODEENDCOUNTDB$-BUFSTRTMPDB4DUP(?)NEGSUMDW0DW100DUP(?)CODESEGMENTMOVAX,DATAMOVDS,AXLEASI,BUFXORCH,CHJGPOSITIVEMOVAL,[SI]NEGALXORINCLOOPAGAIN0LEASI,STRTMPMOVCL,10DIVCLMOVJEINCINCMOVCX,4INCSILEAADDMOVCX,4MOVAL,[SI]MOV[DI],ALDECSIINCLOOPAGAIN2MOVAH,09HINT21HMOVAH,09HINT21HINT21HCODEENDBUF1DBDB8BUF2DBDB8DUP(?) STRENTDB0DH,0AH,'$'DATAENDSSTACK_SEGENDSCODEASSUMEASSUMEMOVDS,AXLEADX,BUF1MOVAH,0AHINT21HMOVAH,09HINT21HLEADX,BUF2MOVAH,0AHINT21HLEASI,BUF1[2]MOVCX,6INCSILOOPAGAIN0LEASI,BUF2[2]MOVCX,6INCSILOOPAGAIN1LEASI,BUF1[2]ADDSI,5LEADI,BUF2[2]ADDDI,5MOVCX,6MOVAL,[SI]ADCAL,[DI]CMPAL,10JAECARRYJMPNEXT3SUBAL,10DECDECDECDECDECLEADX,STROUTINT21HINT21HCODEENDBUF1DBDB10BUF2DB DB4 STRENTDB0DH,0AH,'$'DW100DUP(?)CODESEGMENTMOVDS,AXLEADX,BUF1MOVAH,0AHINT21HMOVAH,09HINT21HLEADX,BUF2MOVAH,0AHINT21HLEASI,BUF1[2]MOVCX,8INCSILEAMOVMOVINCSILEAADDADDDI,7MOVCX,8MOVAL,[SI]ADCAL,[DI]CMPAL,10JAECARRYJMPNEXT3SUBAL,10DECSIDECDIDECADCBYTEPTR[BX],0LEADX,STROUTMOVAH,09HINT21HMOVAH,4CHINT21HCODEENDDB?DB3ASSUMEASSUMEMOVMOVDS,AXLEADI,BUF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ZAGAIN3LEAMOVAX,SICALLHTOBLEADX,BUFMOVAH,9INT21HINT21HMOVINCDIDIVCXDECDIJNAIS0_9_1ADDDL,37HJMPSAVEIS0_9_1:ADDJMPMOVJNZSCORE1DBSCORE2DBSCORE3DBSCORE4DBDB'chg1 DB0DH,0AH,'S1 DB3DB0DH,0AH,'S2 DB3DB3DB DB3DB DB3ASSUMEMOVMOVDS,AXMOVES,AXCALLSUMLEADI,M1+2CALLHTOBCALLSUMLEADI,M2+2CALLHTOBCALLSUMLEADI,M3+2CALLHTOBCALLSUMLEADI,M4+2CALLHTOBCALLHTOBCALLAVERAGELEADI,AVER+16CALLHTOBCALLAVERAGELEADI,AVER+23CALLHTOBCALLAVERAGELEADI,AVER+30CALLHTOBLEACALLCALLHTOBCALLCALLHTOBMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HMOVAH,9INT21HLEADX,AVERMOVAH,9INT21HINT21HMOVINCDIDIVCXDECADDDL,30HMOV[DI],DLORAX,AXJNZMOVNEXT1:MOVMOVNEXT1:MOVDECCL INCSIJMP MOVMOVAX,0NEXT2:MOVDECCL ADDJMPMOVDIVDW ASSUMEMOVMOVMOVAH,3DH LEADX,FILE1MOVAL,0INT21HMOVBX,AXLEADX,BUFMOVMOVAH,3DH LEADX,FILE1MOVAL,0INT21HMOVBX,AXLEADX,BUFMOVMOVAH,3FH1INTMOVMOVINTMOVAH,3CH LEADX,FILE3MOVCX,00INT21HMOVBX,AXLEADX,BUFMOVINTMOVAH,3DH LEADX,FILE2MOVAL,0INT21HMOVBX,AXLEADX,BUFMOVMOVAH,3FH2INTMOVMOVINT21HMOVBX,F3NLEADX,BUFMOVCX,DIINTINT21HENDSEGMENTPARADB?DB128DBSEGMENTPARADB?DB128DBDWPROCFARMOVAX,DATAMOVDS,AXMOVES,MOVAH,MOVAL,2INT21HMOV[HANDLE],MOVAH,LEADX,BUF1+2MOVCX,128INTMOVAH,MOVDX,-3MOVAL,INT21HMOV[BUF1+1],MOVSI,;MOVEPOINTTOMOVCH,MOVCL,ADDCL,PUSHMOVAH,LEADX,BUF1[SI]ADDCL,PUSHMOVAH,LEADX,BUF1[SI]MOVCX,1INTADDSI,MOVAH,MOVDX,-2MOVAL,INT21HPOPMOVBX,MOVAH,INTMOVBX,MOVAH,INTMOVAH,ENDSEGMENTPARADB0DH,0AH,'PLEASEINPUTCOMMANDS:A,B,C,DOREXIT:DWBUF1,BUF2,BUF3,DISPBUFDB0DH,0AH,4DUP(''),SEGMENTPROCSEGMENTPROCMOVDS,AXMOVES,;VERY;VERYLEADX,MOVAH,INTMOVAH,INTCMPAL,JZSUBAL,41HCMPAL,0JBAGAINCMPAL,3JAAGAINADDAL,ALMOVAH,0MOVSI,AXJMPAGAININT21HPROCCALLDISPPROCMOVAX,OFFSETCALLPROCCALLDISPCALLPROCCALLDISPPROCCALLDISPPROCMOVCX,4MOVDX,4ROLBX,CLMOVAX,BXANDAX,000FHCMPAL,9JBENEXTADDAL,7JNZL1MOVAH,9ENDSEGMENTPARAPUBLICDB0DH,0AH,'PLEASEINPUTNUMBER(0-CALLTABDWPROC1,PROC2,PROC3,PROC4,DISPBUFDB0DH,0AH,4DUP(''),DISPBUFDB0DH,0AH,4DUP(''),SEGMENTPARAPUBLICASSUMECS:CODE,PROCMOVDS,AXMOVES,MOVAH,INTMOVAH,INT21HJZEX
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 湖南省某废钢基地项目可行性研究报告
- 2024租赁期满后购买选择权协议
- 2025年度特色餐厅餐饮配送服务承包合同4篇
- 中国防水胶卷材项目投资可行性研究报告
- 2025年度个人创业贷款担保合同样本4篇
- 2025年涂装劳务分包合同范本大全:涂装工程安全3篇
- 2025年度个人房产抵押融资合同规范文本2篇
- 2025年度个人汽车贷款合同标准格式4篇
- 2025年度个人汽车租赁保险附加服务合同3篇
- 2025年江苏海州发展集团有限公司招聘笔试参考题库含答案解析
- CNAS实验室评审不符合项整改报告
- 农民工考勤表(模板)
- 承台混凝土施工技术交底
- 卧床患者更换床单-轴线翻身
- 计量基础知识培训教材201309
- 中考英语 短文填词、选词填空练习
- 一汽集团及各合资公司组织架构
- 阿特拉斯基本拧紧技术ppt课件
- 初一至初三数学全部知识点
- 新课程理念下的班主任工作艺术
- (完整版)企业破产流程图(四张)
评论
0/150
提交评论