欢迎来到天天文库
浏览记录
ID:48476195
大小:29.50 KB
页数:5页
时间:2020-02-04
《51汇编语言助记符.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、MOV(英文为Move):对内部数据寄存器RAM和特殊功能寄存器SFR的数据进行传送;MOVC(MoveCode)读取程序存储器数据表格的数据传送;MOVX (MoveExternalRAM) 对外部RAM的数据传送;XCH (Exchange) 字节交换;XCHD (Exchangelow-orderDigit) 低半字节交换;PUSH (PushontoStack) 入栈;POP (PopfromStack) 出栈;(2)算术运算类指令(8种助记符)ADD(Addition)加法;ADDC(AddwithCarry)带进位加法;SUBB(Subtractwi
2、thBorrow)带借位减法;DA(DecimalAdjust)十进制调整;INC(Increment)加1;DEC(Decrement)减1;MUL(Multiplication、Multiply)乘法;DIV(Division、Divide)除法;(3)逻辑运算类指令(10种助记符)ANL(ANDLogic)逻辑与;ORL(ORLogic)逻辑或;XRL(Exclusive-ORLogic)逻辑异或;CLR(Clear)清零;CPL(Complement)取反;RL(Rotateleft)循环左移;RLC(RotateLeftthroughttheCarry
3、flag)带进位循环左移;RR(RotateRight)循环右移;RRC (RotateRightthroughttheCarryflag)带进位循环右移;SWAP(Swap) 低4位与高4位交换;(4)控制转移类指令(17种助记符)ACALL(AbsolutesubroutineCall)子程序绝对调用;LCALL(LongsubroutineCall)子程序长调用;RET(Returnfromsubroutine)子程序返回;RETI(ReturnfromInterruption)中断返回;SJMP(ShortJump)短转移;AJMP(AbsoluteJu
4、mp)绝对转移;LJMP(LongJump)长转移;CJNE(CompareJumpifNotEqual)比较不相等则转移;DJNZ(DecrementJumpifNotZero)减1后不为0则转移;JZ(JumpifZero)结果为0则转移;JNZ(JumpifNotZero)结果不为0则转移;JC(JumpiftheCarryflagisset)有进位则转移;JNC(JumpifNotCarry)无进位则转移;JB(JumpiftheBitisset)位为1则转移;JNB(JumpiftheBitisNotset)位为0则转移;JBC(JumpiftheBi
5、tissetandClearthebit)位为1则转移,并清除该位;NOP(NoOperation) 空操作;(5)位操作指令(1种助记符)SETB(SetBit) 位置1。1.通用数据传送指令.MOV---->moveMOVSX---->extendedmovewithsigndataMOVZX---->extendedmovewithzerodataPUSH---->pushPOP---->popPUSHA---->pushallPOPA---->popallPUSHAD---->pushalldataPOPAD---->popalldataBSWAP---
6、->byteswapXCHG---->exchangeCMPXCHG---->compareandchangeXADD---->exchangeandaddXLAT---->translate2.输入输出端口传送指令.IN---->inputOUT---->output3.目的地址传送指令.LEA---->loadeffectiveaddressLDS---->loadDSLES---->loadESLFS---->loadFSLGS---->loadGSLSS---->loadSS4.标志传送指令.LAHF---->loadAHfromflagSAHF----
7、>saveAHtoflagPUSHF---->pushflagPOPF---->popflagPUSHD---->pushdflagPOPD---->popdflag二、算术运算指令ADD---->addADC---->addwithcarryINC---->increase1AAA---->asciiaddwithadjustDAA---->decimaladdwithadjustSUB---->substractSBB---->substractwithborrowDEC---->decrease1NEC---->negativeCMP---->compar
8、eAAS---->asc
此文档下载收益归作者所有