您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 80X86汇编语言电子教案(4-数据定义伪操作)
4.212345ESEGSEGMENTYDB5DUPESEGENDSTITLEPROGRAMDSEGSEGMENTD1DB5DUPCCEQU$D1SUMDW0DSEGENDS1[][][]DBDWDDDFDQDT2PTR3LABELLABEL4.2.44.2.4[][,,…][;]DBDWDDDFDQDT386::DATADWDB13-DATA-01H03HDATADW…LLMOVAXBX[][,,…][;]1DBVARDB30HARRAYDB31H,32H,33HARRAYDB31HDB32HDB33H30Hvar31Harray32H33H2DW2DATADW3021HARRAYDW2040H,3140H21Hdata30H40Harray20H40H31H[][,,…][;]3DDADDRDD28001640HLDSDX,ADDR4DF66PARSE_TABLEDF6740H5DQ44DATADQ2403182042405118H6DT10DATADT12345678901234567890H7DBASCIISTRINGDB‘1234567890H’(DS)=2800H,(DX)=1640HSTRINGDB‘1’,’2’,’3’,…,’H’DATA_WORDDW100,100HDB64H00H00H01H---‘A’‘B’MESS1‘B’‘A’MESS2MESS1DB‘AB’MESS2DW‘AB’“”[][,,…][;]“”DUPrep_countDUP(,…,)rep_countDB256DUP(?)356DATA_BYTEDB100DUP(?)DUPARRAY3DB100DUP02DUP12037100=700ARRAY3DW100DUP02DUP1203PARAMETER_TABLEDWPARINTERSEG_DATADDDATA.386DATASEGSEGMENTPARAUSE32‘DATA’PARSEDB2048DUP(0)TBLPTRDFPARSEDATASEGENDSDWDD1616DF1632PARDATADATAPARSEPARSE…DBDWDDDFDQDTNEARFAR1246810-1-2/////NEAR/FAR21OPER1DB?,?OPER2DW?,?OPER3DD…MOVOPER1,0;MOVOPER2,0;MOVOPER3001h02h34h12h78h56hOPER1OPER20-00--OPER1OPER20000OPER3MOVAX,OPER1+2MOVAL,OPER2OPER1DB1,2OPER2DW1234H,5678H…3PTRPTRBYTEWORDDWORDFDWORDQWORDTBYTEMOVAX,WORDPTROPER1+2(AX)=1234HMOVAL,BYTEPTROPER2(AL)=34HMOVAX,OPER1+2MOVAL,OPER2OPER1DB1,2OPER2DW1234H,5678H…01h02h34h12h78h56hOPER1OPER2BYTE_ARRAYLABELBYTEWORD_ARRAYDW50DUP(?)BYTE_ARRAYWORD_ARRAY4LABELLABELLABELBYTE_ARRAYWORD_ARRAYMOVALBYTE_ARRAYMOVAXWORD_ARRAYBYTEWORDDWORDFDWORDQWORDTBYTENEARFAR11EQUEQUEQUEQU1234.2.5BEQU[BP+8]BUFSEQU32HBUF2EQUBUFS+2COUNTEQUCXCRDEQUDAAALPHAEQU7BETAEQUALPHA-2…MOVAXCOUNTMOVDXBUF2CRD…MOVAXCXMOVDX34HDAACONSTANTEQU256ALPHAEQU7BETAEQUALPHA-2VARWEQUTHISWORDVARBDB2DUP(?)VARCEQUBYTEPTRVARB+11234EQU22“=”=…EMP=7…EMP=EMP+1;EMP=8…EMP=6EMPEQU6DATAAREASEGMENTVARDW8VAR1DW4DUP3BETA=25BYTE_VARDB‘BYTE’,BETADUP(0,1)DATAAREAENDS21005433$1$$$$IP(EIP)2ORG$=ORG100HSTART:…...;START100H$——IPEIP——(3)EVENEVEN;DataSegmentADB0EVENBDW2DUP(?)……(4)ALIGNALIGN;2ALIGN4ARRAYDB100DUP4ALIGN2EVENDATASEGMENTXDB0EVENYDW2ORG5V1DB12HORG8V2DW3456H…DATAENDSV15,V280DATA–02H00H–12H56H34H0123456789ORG$8;8JMP$8;;8ARRAYDW1,2,$+4,3,4,$+4010074000200ARRAY7C0078000300040082007E00ARRAY74HARRAYDW1,2,$+4,3,4,$+4ARRAYDW1,2,108H,3,4,10EHARRAY100H44.RADIX(2,8,10,16).RADIX16VARDB3232D……MOVBX,0FFMOVBX,178D;1[][][]DBDWDDDFDQDT2PTR3LABELLABEL4EQUEQU5=6ORG7EVENEVEN8ALIGNALIGN9.RADIX(2,8,10,16):DSEG,DSEGSEGMENTJOE=100SAM=JOE+20S_FDB‘/XYZ/’,0DH,0AHB_FDB101B,19,’a’.RADIX16BLKDB11DUP(‘’)EVENW_F1DW12,13D,110101B,333,SAM.RADIX10W_F2DW15LENEQU$-$_FDSEGENDS0000H0007H000AH001BH001CH0026HDSEGSEGMENTJOE=100SAM=JOE+20S_FDB‘/XYZ/’,0DH,0AHB_FDB101B,19,’a’.RADIX16BLKDB11DUP(‘’).EVENW_F1DW12,13DDW35,333,SAM.RADIX10W_F2DW15LENEQU$-$_FDSEGENDS()64H78H2F78797A2F0D0A05136111H12000D003500330378000F000028($=0028H)P1564.54.8
本文标题:80X86汇编语言电子教案(4-数据定义伪操作)
链接地址:https://www.777doc.com/doc-3252756 .html