资源描述:
《汇编指令 ibm-pc汇编语言指令集(assembly instruction, ibm-pc assembly language, instruction set)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、汇编指令ibm-pc汇编语言指令集(Assemblyinstruction,IBM-PCassemblylanguage,instructionset)AssemblylanguageinstructionsetIBM-PCDatatransferinstructionsetMOVFunction:sendthesourceoperandtothedestinationoperandSyntax:MOV,destinationoperand,sourceoperandFormat:MOV,R1,R2MOV,R,MMOV,m,RMOV,R,dataXCHGFunction:exchangingd
2、ataoftwooperandsSyntax:XCHGFormat:XCHG,R1,R2,XCHG,m,R,XCHG,R,MPUSH,POPFunction:pressoperandsintoortakeoutthestackSyntax:PUSHoperand,POPoperandFormat:PUSH,R,PUSH,M,PUSH,data,POP,R,,POP,MPUSHF,POPF,PUSHA,POPAStackinstructiongroupFormat:PUSHF,POPF,PUSHA,POPALEA,LDS,LESFunction:takeaddresstoregisterSynt
3、ax:LEA,R,m,LDS,R,m,LES,R,MXLAT(XLATB)Function:look-uptableinstructionSyntax:XLAT,XLAT,MarithmeticoperationADD,ADCFunction:additioninstructionSyntax:ADD,OP1,OP2,ADC,OP1,OP2Format:ADD,R1,R2,ADD,R,m,ADD,m,R,ADD,R,dataImpactflags:C,P,A,Z,S,OSUB,SBBFunction:subtractioninstructionSyntax:SUB,OP1,OP2,SBB,OP
4、1,OP2Format:SUB,R1,R2,SUB,R,m,SUB,m,R,SUB,R,data,SUB,m,dataImpactflags:C,P,A,Z,S,OINC,DECFunction:addorsubtractonefromthevalueofOPSyntax:INC,OP,DEC,OPFormat:INC,r/m,DEC,r/mImpactflags:P,A,Z,S,ONEGFunction:invertingthesymbolofOP(binarycomplement)Syntax:NEGOPFormat:NEGr/mImpactflags:C,P,A,Z,S,OMUL,IMU
5、LFunction:multiplyinstructionSyntax:MUL,OP,IMUL,OPFormat:MUL,r/m,IMUL,r/mImpactflags:C,P,A,Z,S,O(IMULonlyaffectstheSflag)DIV,IDIVFunction:DivisioninstructionSyntax:DIV,OP,IDIV,OPFormat:DIV,r/m,IDIV,r/mCBW,CWDFunction:extendedinstructionwithsignednumberSyntax:CBWCWDAAA,AAS,AAM,AADFunction:nonpressure
6、BCDcodeoperationadjustmentcommandSyntax:AAA,AAS,AAM,AADImpactflags:A,C(AAA,AAS),S,Z,P(AAM,AAD)DAA,DASFunction:compressBCDcode,adjustinstructionSyntax:DAADASImpactflags:C,P,A,Z,SBitarithmeticinstructionsetAND,OR,XOR,NOT,TESTFunction:performlogicaloperationsbetweenBITandBITSyntax:AND,r/m,r/m/data,OR,r
7、/m,r/m/data,XOR,r/m,r/m/data,TEST,r/m,r/m/data,NOT,r/mImpactflags:C,O,P,Z,NOT,S(wheretwoflagsofCandOaresetto0),andtheinstructiondoesnotaffectanyflagbitsSHR,SHL,SAR,SALShiftinstructionSyntax:SHR,r/m,da