C51 彙編指令英文全稱
阿新 • • 發佈:2018-11-11
---------------------------------------------
-- 時間:2018-10-29
-- 建立人:Ruo_Xiao
-- 郵箱:[email protected]
-------------------------------
-- 時間:2018-11-03
-- 修改人:Ruo_Xiao
-- 內容:增加了傳送、邏輯、算術、轉移和位運算。
---------------------------------------------
一、資料傳送指令(7)
指令 | 英文全稱 | 意義 |
MOV | Move | 對內部RAM和SFR的資料進行傳送 |
MOVC | Move Code |
傳送程式儲存器中的資料 |
MOVX | Move External RAM | 對外部RAM的資料進行傳送 |
XCH | Exchange | 位元組交換 |
XCHD | Exchange low-order Digit | 低半位元組交換 |
PUSH |
Push onto Stack | 入棧 |
POP | Pop from Stack | 出棧 |
2、算術運算類指令(8)
指令 | 英文全稱 | 意義 |
ADD | Addition | 加法 |
ADDC | Add with Carry | 帶進位的加法 |
SUBB | Subtract with Borrow | 帶借位的減法 |
DA |
Decimal Adjust | 十進位制調整 |
INC | Increment | 加1 |
DEC | Decrement | 減1 |
MUL |
Multiplication | 乘法 |
DIV |
Division | 除法 |
3、邏輯運算類指令(10)
指令 | 英文全稱 | 意義 |
ANL | AND Logic | 邏輯與 |
ORL | OR Logic | 邏輯或 |
XRL | Exclusive-OR Logic | 邏輯異或 |
CLR | Clear | 清零 |
CPL | Complement | 取反 |
RL | Rotate Left | 迴圈左移 |
RLC | Rotate Left throught the Carry flag | 帶進位迴圈左移 |
RR | Rotate Right | 迴圈右移 |
RRC | Rotate Right throught the Carry flag | 帶進位迴圈右移 |
SWAP | Swap | 地4位和高4位交換 |
4、控制轉移類指令(17)
指令 | 英文全稱 | 意義 |
ACALL | Absolute subroutine Call | 子程式絕對呼叫 |
LCALL | Long subroutine Call | 子程式長呼叫 |
RET | Return from subroutine | 子程式返回 |
RETI | Return from interruption | 中斷返回 |
SJMP | Short Jump | 短轉移 |
LJMP | Long Jump | 長轉移 |
AJMP | Absolute Jump | 絕對呼叫 |
CJNE | Compare Jump if Not Equal | 比較若不相等則轉移 |
DJNZ | Decrement Jump if Not Zero | 減1後不為0則轉移 |
JZ | Jump if Zero | 結果為0則轉移 |
JNZ | Jump if Not Zero | 結果不為0則轉移 |
JC | Jump if the Carry flag is set | 有進位則轉移 |
JNC | Jump if Not Carry | 無進位則轉移 |
JB | Jump if the Bit is set | 位為1則轉移 |
JNB | Jump if the Bit is Not set | 位為0則轉移 |
JBC | Jump if the Bit is set and Clear the bit | 位為1則轉移,並清除該位 |
NOP | No Operation | 空操作 |
5、位操作(1)
指令 | 英文全稱 | 意義 |
SETB | Set Bit | 位,置1 |
(SAW:Game Over!)