(1)數(shù)據(jù)傳送類指令(7種助記符)
- ????????MOV(英文為Move):對(duì)內(nèi)部數(shù)據(jù)寄存器RAM和特殊功能寄存器SFR的數(shù)據(jù)進(jìn)行傳送;
- ????????MOVC(Move Code)讀取程序存儲(chǔ)器數(shù)據(jù)表格的數(shù)據(jù)傳送;
- ????????MOVX (Move External RAM) 對(duì)外部RAM的數(shù)據(jù)傳送;
- ????????XCH (Exchange) 字節(jié)交換;
- ????????XCHD (Exchange low-order Digit) 低半字節(jié)交換;
- ????????PUSH (Push onto Stack) 入棧
- ????????POP (Pop from Stack) 出棧;
(2)算術(shù)運(yùn)算類指令(8種助記符)
- ADD(Addition) 加法;
- ADDC(Add with Carry) 帶進(jìn)位加法;
- SUBB(Subtract with Borrow) 帶借位減法;
- DA(Decimal Adjust) 十進(jìn)制調(diào)整;
- INC(Increment) 加1;
- DEC(Decrement) 減1;
- MUL(Multiplication、Multiply) 乘法;
- DIV(Division、Divide) 除法;
(3)邏輯運(yùn)算類指令(10種助記符)
- ANL(AND Logic) 邏輯與;
- ORL(OR Logic) 邏輯或;
- XRL(Exclusive-OR Logic) 邏輯異或;
- CLR(Clear) 清零;
- CPL(Complement) 取反;
- RL(Rotate left) 循環(huán)左移;
- RLC(Rotate Left throught the Carry flag) 帶進(jìn)位循環(huán)左移;
- RR(Rotate Right) 循環(huán)右移;
- RRC (Rotate Right throught the Carry flag) 帶進(jìn)位循環(huán)右移;
- SWAP (Swap) 低4位與高4位交換;
(4)控制轉(zhuǎn)移類指令(17種助記符)
- ACALL(Absolute subroutine Call)子程序絕對(duì)調(diào)用;
- LCALL(Long subroutine Call)子程序長(zhǎng)調(diào)用;
- RET(Return from subroutine)子程序返回;
- RETI(Return from Interruption)中斷返回;
- SJMP(Short Jump)短轉(zhuǎn)移;
- AJMP(Absolute Jump)絕對(duì)轉(zhuǎn)移;
- LJMP(Long Jump)長(zhǎng)轉(zhuǎn)移;
- CJNE (Compare Jump if Not Equal)比較不相等則轉(zhuǎn)移;
- DJNZ (Decrement Jump if Not Zero)減1后不為0則轉(zhuǎn)移;
- JZ (Jump if Zero)結(jié)果為0則轉(zhuǎn)移;
- JNZ (Jump if Not Zero) 結(jié)果不為0則轉(zhuǎn)移;
- JC (Jump if the Carry flag is set)有進(jìn)位則轉(zhuǎn)移;
- JNC (Jump if Not Carry)無(wú)進(jìn)位則轉(zhuǎn)移;
- JB (Jump if the Bit is set)位為1則轉(zhuǎn)移;
- JNB (Jump if the Bit is Not set) 位為0則轉(zhuǎn)移;
- JBC(Jump if the Bit is set and Clear the bit) 位為1則轉(zhuǎn)移,并清除該位;
- NOP (No Operation) 空操作;
(5)位操作指令(1種助記符)
- SETB(Set Bit) 位 置1 。
?
?
?
?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-761557.html文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-761557.html
?
到了這里,關(guān)于單片機(jī)指令合集(匯編)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!