单片机汇编语言怎么理解啊?

单片机汇编语言

汇编语言是用英文助记符表示指令的符号语言,弄懂每个助记符的含义汇编语言就掌握一大半了。我给你一个助记符的英文对照表,看了你就明白了。
助记符意义 助记符 对照英文
传送 MOV MOVe
代码区数据传送 MOVC MOVe Code
外部RAM区数据传送MOVX MOVe eXternal
压栈 PUSH PUSH
退栈 POP POP
交换 XCH eXCHange
十进制交换 XCHD eXCHange Decimal
加法 ADD ADD
带进位加 ADDC ADD with Carry
带借位减 SUBB SUBtract with Borrow
加1 INC INCrement
减1 DEC DECrement
乘 MUL MULtiply
除 DIV DIVide
十进制调整 DA Decimal Adjust
逻辑与 ANL Logicle ANd
逻辑或 ORL Logicle OR
逻辑异或 XRL Logicle eXclusive-oR
求补 CPL ComPLement
清零 CLR CLeaR
置位 SETB SET Bit
左移 RL Rotate Left
带进位左移 RLC Rotate Left throuth the Carry flag
右移 RR Rotate Right
带进位右移 RRC Rotate Right throuth the Carry flag
(半字节)互换 SWAP SWAP
绝对转移 AJMP Absolute JuMP
短转移 SJMP Short JuMP
长转移 LJMP Long JuMP
跳转 JMP JuMP
累加器为零转移 JZ Jump if acc is Zero
累加器不为零转移 JNZ Jump if acc is Not Zero
进位位为1转移 JC Jump if Carry(if Cy=1)
进位位为0转移 JNC Jump if Not
Carry(if Cy=0)
指定为为1转移 JB Jump if Bit is set
指定位为0转移 JNB Jump if Not Bit (if bit=0)
指定位为1转移并清该位JBC Jump if Bit is set add Clear bit
比较不等转移 CJNE Compare and Jump if NotEqual
减1不为0转移 DJNZ Decrement and Jump if Not Zero
绝对调用 ACALL Absolute CALL
长调用 LCALL Long CALL
子程序返回 RET RETurn
中断返回 RETI RETurn from Interrupt
空操作 NOP No OPeration
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-04-05
从底层机器结构入手,明白每条指令的用法
第2个回答  2012-03-27
这个首先需要明白每条指令的含义,然后才是读整个程序
第3个回答  2021-04-01

相似回答