資源描述:
《匯編語(yǔ)言常用指令大全.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、1.通用數(shù)據(jù)傳送指令.?MOV---->move?MOVSX---->extendedmovewithsigndata?MOVZX---->extendedmovewithzerodata?PUSH---->push?POP---->pop?PUSHA---->pushall?POPA---->popall?PUSHAD---->pushalldata?POPAD---->popalldata?BSWAP---->byteswap?XCHG---->exchange?CMPXCHG---->compareandchange?XAD
2、D---->exchangeandadd?XLAT---->translate?2.輸入輸出端口傳送指令.?IN---->input?OUT---->output?3.目的地址傳送指令.?LEA---->loadeffectiveaddress?LDS---->loadDS?LES---->loadES?LFS---->loadFS?LGS---->loadGS?LSS---->loadSS?4.標(biāo)志傳送指令.?LAHF---->loadAHfromflag?SAHF---->saveAHtoflag?PUSHF---->push
3、flag?POPF---->popflag?PUSHD---->pushdflag?POPD---->popdflag?二、算術(shù)運(yùn)算指令?ADD---->add?ADC---->addwithcarry?INC---->increase1?AAA---->asciiaddwithadjust?DAA---->decimaladdwithadjust?SUB---->substract?SBB---->substractwithborrow?DEC---->decrease1?NEC---->negative?CMP---->com
4、pare?AAS---->asciiadjustonsubstract?DAS---->decimaladjustonsubstract?MUL---->multiplication?IMUL---->integermultiplication?AAM---->asciiadjustonmultiplication?DIV---->divide?IDIV---->integerdivide?AAD---->asciiadjustondivide?CBW---->changebytetoword?CWD---->changeword
5、todoubleword?CWDE---->changewordtodoublewordwithsigntoEAX?CDQ---->changedoublewordtoquadrateword?三、邏輯運(yùn)算指令?———————————————————————————————————————?AND---->and?OR---->or?XOR---->xor?NOT---->not?TEST---->test?SHL---->shiftleft?SAL---->arithmaticshiftleft?SHR---->shiftrig
6、ht?SAR---->arithmaticshiftright?ROL---->rotateleft?ROR---->rotateright?RCL---->rotateleftwithcarry?RCR---->rotaterightwithcarry?四、串指令?———————————————————————————————————————?MOVS---->movestring?CMPS---->comparestring?SCAS---->scanstring?LODS---->loadstring?STOS---->st
7、orestring?REP---->repeat?REPE---->repeatwhenequal?REPZ---->repeatwhenzeroflag?REPNE---->repeatwhennotequal?REPNZ---->repeatwhenzeroflag?REPC---->repeatwhencarryflag?REPNC---->repeatwhennotcarryflag?五、程序轉(zhuǎn)移指令?———————————————————————————————————————?1>無(wú)條件轉(zhuǎn)移指令(長(zhǎng)轉(zhuǎn)移)?JMP---
8、->jump?CALL---->call?RET---->return?RETF---->returnfar?2>條件轉(zhuǎn)移指令(短轉(zhuǎn)移,-128到+127的距離內(nèi))?JAE---->jumpwhenaboveorequal?JNB---->jump