51單片機(jī)常用匯編語(yǔ)言助記符英文全稱(chēng)
51單片機(jī)常用匯編語(yǔ)言助記符英文全稱(chēng)
(1)數(shù)據(jù)傳送類(lèi)指令(7種助記符)
MOV(英文為Move):對(duì)內(nèi)部數(shù)據(jù)寄存器RAM和特殊功能寄存器SFR的數(shù)據(jù)進(jìn)行傳送;
MOVC(MoveCode)讀取程序存儲(chǔ)器數(shù)據(jù)表格的數(shù)據(jù)傳送;
MOVX (MoveExternalRAM) 對(duì)外部RAM的數(shù)據(jù)傳送;
XCH (Exchange) 字節(jié)交換;
XCHD (Exchangelow-orderDigit) 低半字節(jié)交換;
PUSH (PushontoStack) 入棧;
POP (PopfromStack) 出棧;
(2)算術(shù)運(yùn)算類(lèi)指令(8種助記符)
ADD(Addition)加法;
ADDC(AddwithCarry)帶進(jìn)位加法;
SUBB(SubtractwithBorrow)帶借位減法;
DA(DecimalAdjust)十進(jìn)制調(diào)整;
INC(Increment)加1;DEC(Decrement)減1;
MUL(Multiplication、Multiply)乘法;
DIV(Division、Divide)除法;
(3)邏輯運(yùn)算類(lèi)指令(10種助記符)
ANL(ANDLogic)邏輯與;
XRL(Exclusive-ORLogic)邏輯異或;
CLR(Clear)清零;CPL(Complement)取反;
RL(Rotateleft)循環(huán)左移;
RLC(RotateLeftthroughttheCarryflag)帶進(jìn)位循環(huán)左移;
RR(RotateRight)循環(huán)右移;
RRC (RotateRightthroughttheCarryflag)帶進(jìn)位循環(huán)右移;
SWAP(Swap) 低4位與高4位交換;
(4)控制轉(zhuǎn)移類(lèi)指令(17種助記符)
ACALL(AbsolutesubroutineCall)子程序絕對(duì)調(diào)用;
LCALL(LongsubroutineCall)子程序長(zhǎng)調(diào)用;
RET(Returnfromsubroutine)子程序返回;
RETI(ReturnfromInterruption)中斷返回;
SJMP(ShortJump)短轉(zhuǎn)移;LJMP長(zhǎng)轉(zhuǎn)移;
AJMP(AbsoluteJump)絕對(duì)轉(zhuǎn)移;
CJNE(CompareJumpifNotEqual)比較不相等則轉(zhuǎn)移;
DJNZ(DecrementJumpifNotZero)減1后不為0則轉(zhuǎn)移;
JZ(JumpifZero)結(jié)果為0則轉(zhuǎn)移;
JNZ(JumpifNotZero)結(jié)果不為0則轉(zhuǎn)移;
JC(JumpiftheCarryflagisset)有進(jìn)位則轉(zhuǎn)移;
JNC(JumpifNotCarry)無(wú)進(jìn)位則轉(zhuǎn)移;
JB(JumpiftheBitisset)位為1則轉(zhuǎn)移;
JNB(JumpiftheBitisNotset)位為0則轉(zhuǎn)移;
(3)JBC(JumpiftheBitissetandClearthebit)位為1則轉(zhuǎn)移,并清除該位;
NOP(NoOperation) 空操作;
(5)位操作指令(1種助記符)
SETB(SetBit) 位置1。
1.通用數(shù)據(jù)傳送指令.
MOV---->move
MOVSX---->extendedmovewithsigndata
MOVZX---->extendedmovewithzerodata
PUSH---->pushPOP---->pop
PUSHA---->pushall
POPA---->popall
PUSHAD---->pushalldata
POPAD---->popalldata
BSWAP---->byteswap
XCHG---->exchange
CMPXCHG---->compareandchange
XADD---->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---->pushflagPOPF---->popflag
PUSHD---->pushdflagPOPD---->popdflag
評(píng)論