80C51单片机指令助记符英文全称及功能

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_22812319/article/details/51645610

一 数据传送类指令

MOV            Move                                      内部RAM数据传送指令

MOVC         Move Code                             程序存储器读指令

MOVX         Move External RAM             外部RAM数据传送指令

XCH             Exchange                               整字节交换指令

XCHD          Exchange low-order Digit     低位半字节交换指令

PUSH           Push onto Stack                     进栈操作     

POP              Pop from Stack                      出栈操作

SWAP          Swap                                       累加器高低半字节交换指令


二 算术运算类指令

ADD           Addition                                  加法

ADDC        Add with Carry                       带进位加法

SUBB         Subtract with Borrow             带借位减法

INC            Increment                                +1指令

DEC           Decrement                               -1指令

MUL          Multiplication                         乘法指令

DIV           Division                                   除法指令

DA            Decimal Adjust                        十进制调整


三 逻辑运算及移位类指令

ANL         And Logic                                           逻辑“与”运算

ORL         Or Logic                                              逻辑“或”运算

XRL         Exclusive-Or Logic                             逻辑“亦或”运算

CLR         Clear                                                     清0

CPL         Complement                                          按位取反

RL           Rotate Left                                             循环左移

RR           Rotate Right                                          循环右移

RLC         Rotate Left throught the Carry Flag      通过进位循环左移

RRC         Rotate Right throught the Carry Flag    通过进位循环右移


四 控制转移类指令

LJMP       Long Jump                                               长转移

AJMP       Absolure Jump                                        绝对转移

SJMP       Short Jump                                               短转移

JMP        Jump Indirect                                            无条件间接转移

JZ            Jump if Zero                                             判0转移

JNZ         Jump if Not Zero                                       判非0转移

CJNE       Compare and Jump if Not Equal              不等则转移

DJNZ       Decrement and Jump if Not Zero             -1若非0则转移

ACALL   Absolute Subroutine Call                         绝对调用

LCALL    Long Subroutine Call                              长调用

RET        Return from Subroutine                            子程序返回

RETI       Return from Interruption                         中断服务子程序返回

NOP       No operation                                             空操作

 

五 位操作类指令

SETB     Set Bit                                                        复位指令

JC          Jump if the Carry Flag is Set                      CY=1转移

JNC      Jump if Not Carry                                        CY=0转移

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转移且该位清0

猜你喜欢

转载自blog.csdn.net/qq_22812319/article/details/51645610
今日推荐