资源描述:
《51单片机汇编指令(老师亲自总结)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、助记符指令说明字节数周期数(数据传递类指令)MOVA,Rn寄存器传送到累加器11MOVA,direct直接地址传送到累加器21MOVA,@Ri累加器传送到外部RAM(8地址)11MOVA,#data立即数传送到累加器21MOVRn,A累加器传送到寄存器11MOVRn,direct直接地址传送到寄存器22MOVRn,#data累加器传送到直接地址21MOVdirect,Rn寄存器传送到直接地址21MOVdirect,direct直接地址传送到直接地址32MOVdirect,A累加器传送到直接地址21M
2、OVdirect,@Ri间接RAM传送到直接地址22MOVdirect,#data立即数传送到直接地址32MOV@Ri,A直接地址传送到直接地址12MOV@Ri,direct直接地址传送到间接RAM21MOV@Ri,#data立即数传送到间接RAM22MOVDPTR,#data1616位常数加载到数据指针31MOVCA,@A+DPTR代码字节传送到累加器12MOVCA,@A+PC代码字节传送到累加器12yearsmortgagehousing;4.mortgageregistrationformal
3、itiesarecompleted.(D)pledge1.borrower(includingthepledgor)between18-65yearsofage,withfullcivilcapacity;2.collateralMOVXA,@Ri外部RAM(8地址)传送到累加器12MOVXA,@DPTR外部RAM(16地址)传送到累加器12MOVX@Ri,A累加器传送到外部RAM(8地址)12MOVX@DPTR,A累加器传送到外部RAM(16地址)12PUSHdirect直接地址压入堆栈22POP
4、direct直接地址弹出堆栈22XCHA,Rn寄存器和累加器交换11XCHA,direct直接地址和累加器交换21XCHA,@Ri间接RAM和累加器交换11XCHDA,@Ri间接RAM和累加器交换低4位字节11(算术运算类指令)INCA累加器加111INCRn寄存器加111INCdirect直接地址加121INC@Ri间接RAM加111INCDPTR数据指针加112DECA累加器减111DECRn寄存器减111DECdirect直接地址减122yearsmortgagehousing;4.mortg
5、ageregistrationformalitiesarecompleted.(D)pledge1.borrower(includingthepledgor)between18-65yearsofage,withfullcivilcapacity;2.collateralDEC@Ri间接RAM减111MULAB累加器和B寄存器相乘14DIVAB累加器除以B寄存器14DAA累加器十进制调整11ADDA,Rn寄存器与累加器求和11ADDA,direct直接地址与累加器求和21ADDA,@Ri间接RAM与
6、累加器求和11ADDA,#data立即数与累加器求和21ADDCA,Rn寄存器与累加器求和(带进位)11ADDCA,direct直接地址与累加器求和(带进位)21ADDCA,@Ri间接RAM与累加器求和(带进位)11ADDCA,#data立即数与累加器求和(带进位)21SUBBA,Rn累加器减去寄存器(带借位)11SUBBA,direct累加器减去直接地址(带借位)21SUBBA,@Ri累加器减去间接RAM(带借位)11SUBBA,#data累加器减去立即数(带借位)21(逻辑运算类指令)ANLA,
7、Rn寄存器“与”到累加器11ANLA,direct直接地址“与”到累加器21ANLA,@Ri间接RAM“与”到累加器11yearsmortgagehousing;4.mortgageregistrationformalitiesarecompleted.(D)pledge1.borrower(includingthepledgor)between18-65yearsofage,withfullcivilcapacity;2.collateralANLA,#data立即数“与”到累加器21ANLdir
8、ect,A累加器“与”到直接地址21ANLdirect,#data立即数“与”到直接地址32ORLA,Rn寄存器“或”到累加器12ORLA,direct直接地址“或”到累加器21ORLA,@Ri间接RAM“或”到累加器11ORLA,#data立即数“或”到累加器21ORLdirect,A累加器“或”到直接地址21ORLdirect,#data立即数“或”到直接地址31XRLA,Rn寄存器“异或”到累加器12XRLA,direct直接地址“异或”到累加器21XRLA,@