一、寄存器部分
SFR= special function register //特殊功能寄存器(片内RAM 80H~FFH)
ACC= accumulate //累加器
PSW= programmer status word //程序状态字
SP= stack point //堆栈指针
DPTR=data point register //数据指针寄存器
IE =interrupt enable // 中断使能
IP= interrupt priority //中断优先级
PSW:
CY= carry (psw.7) //进位(标志)
AC= auxiliary carry (psw.6) //辅助进位
F0= (psw.5) //用户自定义标志位
RS1,RS0=register selection (psw.4,psw.3)//工作寄存器组选择位
OV=overflow (psw.2) //溢出
P=parity (psw.0) //奇偶校验位
二、引脚
EA=External Address Enable (31) //外部程序存储器(ROM)地址允许
三、其它
PC = program counter //程序计数器
ORG = originally //起始来源
EQU = equal //等于
四、MCS-51指令
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) 出栈
算术运算类指令(8种助记符)
ADD = Addition 加法
ADDC = Add with Carry 带进位加法
SUBB = Subtract with Borrow 带借位减法
DA = Decimal Adjust 十进制调整
INC = Increment 加1
DEC = Decrement 减1
MUL = Multiplication、Multiply 乘法
DIV = Division、Divide 除法
逻辑运算类指令(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位交换
控制转移类指令(17种助记符)
ACALL = Absolute subroutine Call 子程序绝对调用
LCALL = Long subroutine Call 子程序长调用
RET = Return from subroutine 子程序返回
RETI = Return from Interruption 中断返回
JMP = Jump Indirect
SJMP = Short Jump 短转移
AJMP = Absolute Jump 绝对转移
LJMP = Long Jump 长转移
CJNE = Compare and Jump if Not Equal 比较不相等则转移
DJNZ = Decrement and 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 B位为1则转移
JNB = Jump if the Bit is Not set B位为0则转移
JBC = Jump if the Bit is set and Clear the bit 位为1则转移,并清除该位
NOP = No Operation 空操作
位操作指令(1种助记符)
SETB Set Bit 置位
伪指令
ORG Origin
DB Define Byte
DW Define Word
EQU Equal
DATA Data
XDATA External Data
BIT Bit
END End