《2022年单片机汇编语言指令助记符 .pdf》由会员分享,可在线阅读,更多相关《2022年单片机汇编语言指令助记符 .pdf(3页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、指令序号助记符指令功能字节周期对标志位的影响P OV AC CY 8 位立即数传送指令1 MOV A,#data dataA 2 1 1 0 0 0 2 MOV diret,#data datadirect 3 2 0 0 0 0 3 MOV Ri,#data data(Ri) 2 1 0 0 0 0 4 MOV Rn,#data dataRn 2 1 0 0 0 0 16 位立即数传送指令5 MOV DPTR,#data16 data16DPTR 3 2 0 0 0 0 内部 RAM 单元之间的数据传送指令6 MOV direct2,direct1 (direct1)direct2 3 2
2、0 0 0 0 7 MOV direct,Ri (Ri) direct 2 2 0 0 0 0 8 MOV direct,Rn (Rn)direct 2 2 0 0 0 0 9 MOV Ri,direct (direct)(Ri) 2 2 0 0 0 0 10 MOV Rn,direct (direct)Rn 2 2 0 0 0 0 通过累加器的数据传送指令11 MOV A,direct (direct)A 2 1 0 0 0 0 12 MOV A,Ri (Ri) A 1 1 0 0 0 0 13 MOV A,Rn (Rn)A 1 1 0 0 0 0 14 MOV direct,A (A) d
3、irect 2 1 0 0 0 0 15 MOV Ri,A (A) (Ri) 1 1 0 0 0 0 16 MOV Rn,A (A) Rn 1 1 0 0 0 0 Ri 作间址寄存器的外部 RAM 单元读 / 写指令17 MOVX A,Ri (Ri) A 1 2 0 0 0 0 18 MOVX Ri,A (A) (Ri) 1 2 0 0 0 0 DPTR作间址寄存器的外部 RAM 单元读 / 写指令19 MOVX A,DPTR (DPTR) A 1 2 0 0 0 0 20 MOVX DPTR,A (A) (DPTR) 1 2 0 0 0 0 程序存储器读指令组21 MOVC A,A+DPTR
4、 (A)+(DPTR) A 1 2 1 0 0 0 22 MOVC A,A+PC (A)+(PC) A 1 2 1 0 0 0 整字节交换指令23 XCH A,Rn (Rn)?(A) 1 1 1 0 0 0 24 XCH A,direct (direct)?(A)2 1 1 0 0 0 25 XCH A,Ri (Ri) ?(A)1 1 1 0 0 0 半字节交换指令26 XCHD A,Ri (Ri)30 ?(A)3 0 1 1 1 0 0 0 累加器高低半字节交换指令27 SWAP A (A)30 ?(A)7 4 1 1 0 0 0 0 堆栈操作指令组28 PUSH direct (SP)+1
5、SP,(direct)(SP) 2 2 0 0 0 0 29 POP direct (SP)direct,(SP)-1SP 2 2 0 0 0 0 加法指令组30 ADD A,#data (A)+dataA 2 1 1 1 1 1 31 ADD A,direct (A)+(direct) A 2 1 1 1 1 1 32 ADD A,Ri (A)+(Ri) A 1 1 1 1 1 1 33 ADD A,Rn (A)+(Rn) A 1 1 1 1 1 1 带进位加法指令组34 ADDC A,#data (A)+data+(CY) A 2 1 1 1 1 1 35 ADDC A,direct (A
6、)+(direct)+(CY) A 2 1 1 1 1 1 36 ADDC A,Ri (A)+(Ri)+(CY) A 1 1 1 1 1 1 37 ADDC A,Rn (A)+(Rn)+(CY) A 1 1 1 1 1 1 带借位减法指令组38 SUBB A,#data (A)-data-(CY) A 2 1 1 1 1 1 39 SUBB A,direct (A)-(direct)-(CY) A 2 1 1 1 1 1 40 SUBB A,Ri (A)-(Ri)-(CY) A 1 1 1 1 1 1 41 SUBB A,Rn (A)-(Rn)-(CY) A 1 1 1 1 1 1 加 1 指
7、令组42 INC A (A)+1 A 1 1 1 0 0 0 43 INC direct (direct)+1 direct 2 1 0 0 0 0 44 INC Ri (Ri)+1 (Ri) 1 1 0 0 0 0 45 INC Rn (Rn)+1 Rn 1 1 0 0 0 0 46 INC DPTR (DPTR)+1 DPTR 1 2 0 0 0 0 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 3 页 - - - - - - - - - 减 1 指令组47 DEC
8、 A (A)-1 A 1 1 1 0 0 0 48 DEC direct (direct)-1direct 2 1 0 0 0 0 49 DEC Ri (Ri)-1 (Ri) 1 1 0 0 0 0 50 DEC Rn (Rn)-1Rn 1 1 0 0 0 0 乘法指令51 MUL AB (A) (B)BA 1 4 1 1 0 1 除法指令52 DIV AB (A)/(B) A,B 1 4 1 1 1 1 十进制调整指令53 DA A BCD 码加减运算结果修正1 1 1 0 1 1 逻辑“与”运算指令组54 ANL direct,A (direct)(A) direct 2 1 0 0 0
9、0 55 ANL direct,#data (direct)datadirect 3 2 0 0 0 0 56 ANL A,#data (A)dataA 2 1 0 0 0 0 57 ANL A,direct (A)(direct) A 2 1 0 0 0 0 58 ANL A,Ri (A)(Ri) A 1 1 0 0 0 0 59 ANL A,Rn (A)(Rn) A 1 1 1 0 0 0 逻辑“或”运算指令组60 ORL direct,A (direct)U(A) direct 2 1 0 0 0 0 61 ORL direct,#data (direct)Udatadirect 3 2
10、 0 0 0 0 62 ORL A,#data (A)UdataA 2 1 1 0 0 0 63 ORL A,direct (A)U(direct) A 2 1 1 0 0 0 64 ORL A,Ri (A)U(Ri) A 1 1 1 0 0 0 65 ORL A,Rn (A)U(Rn) A 1 1 1 0 0 0 逻辑“异或”运算指令组66 XRL direct,A (direct)(A)direct 2 2 0 0 0 0 67 XRL direct,#data (direct)datadirect 3 2 0 0 0 0 68 XRL A,#data (A) dataA 2 1 1 0
11、0 0 69 XRL A,direct (A) (direct)A 2 1 1 0 0 0 70 XRL A,Ri (A) (Ri)A 1 1 1 0 0 0 71 XRL A,Rn (A) (Rn)A 1 1 1 0 0 0 累加器清 0 72 CLR A 0A 1 1 1 0 0 0 累加器取反73 CPL A (A) A 1 1 0 0 0 0 移位指令组74 RL A AnAn+1,A7 A0 1 1 0 0 0 0 75 RR A An+1An,A0 A7 1 1 0 0 0 0 76 RLC A AnAn+1,A7 CY,CYA0 1 1 0 0 0 0 77 RRC A An+1
12、An,CY A7,A0CY 1 1 1 0 0 1 长转移指令64KB 78 LJMP addr16 addr16PC 3 2 0 0 0 0 绝对转移指令2KB 79 AJMP addr11 (PC)+2PC,addr11PC100 2 2 0 0 0 0 短转移指令256B 80 SJMP rel (PC)+2PC,(PC)+relPC 2 2 0 0 0 0 变址寻址转移指令81 JMP A+DPTR (A)+(DPTR) PC 1 2 0 0 0 0 累加器判零转移指令82 JZ rel 若(A)=0,则(PC)+2+rel PC 若(A)0,则(PC)+2PC 2 2 0 0 0 0
13、 83 JNZ rel 若(A)0,则(PC)+2+relPC 若(A) =0, 则(PC)+2PC 2 2 0 0 0 0 数值比较转移指令84 CJNE A,#data,rel (A)=data,则(PC)+3PC,0CY (A)data,(PC)+3+rel PC,0CY (A) (direct),(PC)+3+rel PC,0CY (A)data,(PC)+3+rel PC,0CY (Rn)data,(PC)+3+rel PC,0CY (Ri)data,(PC)+3+rel PC,1CY 3 2 0 0 0 0 减 1 条件转移指令88 DJNZ Rn,rel (Rn)-1Rn 若(R
14、n)0,则(PC)+2+relPC 若(Rn)=0,则(PC)+2lPC 2 2 0 0 0 0 89 DJNZ direct,rel (direct)-1direct 若(direct)0,则(PC)+2+relPC 若(direct)=0,则(PC)+2PC 3 2 0 0 0 0 绝对调用指令90 ACALL addr11 (PC)+2PC (SP)+1SP,(PC)70(SP) (SP)+1SP,(PC)158(SP) addr11PC100 2 2 0 0 0 0 长调用指令91 LCALL addr16 (PC)+3PC (SP)+1SP,(PC)70(SP) (SP)+1SP,(
15、PC)158(SP) addr16PC100 3 2 0 0 0 0 返回指令92 RET 子程序返回(SP)PC158,(SP)-1SP (SP)PC70,(SP)-1SP 1 2 0 0 0 0 93 RETI 中断服务子程序返回(SP)PC158,(SP)-1SP (SP)PC70,(SP)-1SP 1 2 0 0 0 0 空操作指令94 NOP (PC)+1PC 1 1 0 0 0 0 位传送指令组95 MOV C,bit (bit) CY 2 1 0 0 0 1 96 MOV bit,C (CY) (bit) 2 2 0 0 0 0 位置 1 指令组97 SETB C 1CY 1 1
16、 0 0 0 1 98 SETB bit 1bit 2 1 0 0 0 0 位清 0 指令组99 CLR C 0CY 1 1 0 0 0 1 100 CLR bit 0bit 2 1 0 0 0 0 位逻辑“与”运算101 ANL C,bit (CY)(bit) CY 2 2 0 0 0 1 102 ANL C,/bit (CY)(/bit) CY 2 2 0 0 0 1 位逻辑“或”运算103 ORL C,bit (CY)U(bit) CY 2 2 0 0 0 1 104 ORL C,/bit (CY)U(/bit) CY 2 2 0 0 0 1 位取反105 CPL C (/CY) CY
17、1 1 0 0 0 1 106 CPL bit (/bit) (bit) 2 1 0 0 0 1 以 C状态为条件的转移指令107 JC rel 若(CY)=1, 则(PC)+2+relPC 若(CY) 1,则(PC)+2PC 2 2 0 0 0 0 108 JNC rel 若(CY) 1,则(PC)+2+rel PC 若(CY) =1, 则(PC)+2PC 2 2 0 0 0 0 以位状态为条件的转移指令109 JB bit,rel 若(bit)=1, 则(PC)+3+relPC 若(bit)1,则(PC)+3PC 3 2 0 0 0 0 110 JNB bit,rel 若(bit)=0, 则(PC)+3+relPC 若(bit)0,则(PC)+3PC 3 2 0 0 0 0 111 JBC bit,rel 若(bit)=1, 则(PC)+3+relPC,0bit 若(bit)1,则(PC)+3PC 3 2 0 0 0 0 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 3 页 - - - - - - - - -
限制150内