单片微型计算机汇编语言指令表.pdf
《单片微型计算机汇编语言指令表.pdf》由会员分享,可在线阅读,更多相关《单片微型计算机汇编语言指令表.pdf(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1 附录 5 MCS-51 指令表MCS-51指令中所用符号和含义Rn当前工作寄存器组的8 个工作寄存器(n=07)。Ri可用于间接寻址的寄存器,只能是当前寄存器组中的2 个寄存器R0、R1(i=0,1)。direct内部RAM 中的 8 位地址(包括内部RAM 低 128 单元地址和专用寄存器单元地址)。#data 8 位常数。#data16 16 位常数。addr16 16 位目的地址,只限于在LCALL和 LJMP指令中使用。addr11 11 位目的地址,只限于在ACALL和 AJMP指令中使用。rel 相对转移指令中的8 位带符号偏移量。DPTR 数据指针,16 位寄存器,可用作16
2、 位地址寻址。SP 堆栈指针,用来保护有用数据。bit 内部RAM 或专用寄存器中的直接寻址位。A累加器。B专用寄存器,用于乘法和除法指令或暂存器。C进位标志或进位位,或布尔处理机中的累加器。间接寻址寄存器的前缀标志,如Ri,DPTR。/位操作数的前缀,表示对位操作数取反,如/bit。()以的内容为地址的单元中的内容,X为表示指针的寄存器Ri(i=0、1)、DPTR、SP(Ri、DPTR、SP的内容均为地址)或直接地址单元。如:为了区别地址单元与立即数如30H单元与立即数30H,注释时,表述地址单元时用括号如(30H),立即数直接表示30H。$表示当前指令的地址。表示数据交换。箭头左边的内容被
3、箭头右边的内容所代替。2 十六进制代码助记符功能对标志位影响字节数周期数P OV AC CY 算术运算指令282F ADD A,Rn A+RnA 1 1 25 ADD A,direct A+(direct)A 2 1 26,27 ADD A,Ri A+(Ri)A 1 1 24 ADD A,#data A+data A 2 1 383F ADDC A,Rn A+Rn+CY A 1 1 35 ADDC A,direct A+(direct)+CY A 2 1 36,37 ADDC A,Ri A+(Ri)+CY A 1 1 34 ADDC A,#data A+data+CYA 2 1 989F SU
4、BB A,Rn A-Rn-CY A 1 1 95 SUBB A,direct A-(direct)-CY A 2 1 96,97 SUBB A,Ri A-(Ri)-CY A 1 1 94 SUBB A,#data A-data-CY A 2 1 04 INC A A+1 A X X X 1 1 080F INC Rn Rn+1 RnX X X X 1 1 05 INC direct(direct)+1(direct)X X X X 2 1 06,07 INC Ri(Ri)+1(Ri)X X X X 1 1 A3 INC DPTR DPTR+1 DPTR1 2 14 DEC A A-1A X X
5、 X 1 1 181F DEC Rn Rn-1 RnX X X X 1 1 15 DEC direct(direct)-1(direct)X X X X 2 1 16,17 DEC Ri(Ri)-1(Ri)X X X X 1 1 A4 MUL AB A*BBA X 0 1 4 84 DIV AB A/BA B X 0 1 4 D4 DA A 对 A进行十进制调整 X 1 1 逻辑运算指令585F ANL A,Rn A RnA X X X 1 1 55 ANL A,direct A(direct)A X X X 2 1 56,57 ANL A,Ri A(Ri)A X X X 1 1 54 ANL
6、 A,#data Adata A X X X 2 1 52 ANL direct,A(direct)A(direct)X X X X 2 1 53 ANL direct,#data(direct)data(direct)X X X X 3 2 484F ORL A,Rn ARn A X X X 1 1 45 ORL A,direct A(direct)A X X X 2 1 文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9
7、ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文
8、档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3
9、R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A
10、9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L1
11、0文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5
12、M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L
13、9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L103 十六进制代码助记符功能对标志位影响字节数周期数POVACC Y46,47 ORL A,Ri A(Ri)A X X X 1 1 44 ORL A,#data Adata A X X X 2 1 42 ORL direct,A(direct)A(direct)X X X X 2 1 43 ORL direct,#data(direct)data(direct)X X X X 3 2 686F XRL A,Rn ARn A X X X 1 1 65 XRL A,direct A(di
14、rect)A X X X 2 1 66,67 XRL A,Ri A(Ri)A X X X 1 1 64 XRL A,#data Adata A X X X 2 1 62 XRL direct,A(direct)A(direct)X X X X 2 1 63 XRL direct,#data(direct)data(direct)X X X X 3 2 E4 CLR A 0A X X X 1 1 F4 CPL A AAX X X X 1 1 23 RL A A循环左移一位X X X X 1 1 33 RLC A A带进位位循环左移一位 X X 1 1 03 RR A A循环右移一位X X X X
15、 1 1 13 RRC A A带进位位循环右移一位 X X 1 1 C4 SWAP A A半字节交换X X X X 1 1 数据传送指令E8EF MOV A,Rn Rn A X X X 1 1 E5 MOV A,direct(direct)A X X X 2 1 E6,E7 MOV A,Ri(Ri)A X X X 1 1 74 MOV A,#data data A X X X 2 1 F8FF MOV Rn,A ARnX X X X 1 1 A8AF MOV Rn,direct(direct)RnX X X X 2 2 787F MOV Rn,#data data RnX X X X 2 1
16、F5 MOV direct,A A(direct)X X X X 2 1 888F MOV direct,Rn direct RnX X X X 2 2 85 MOV direct1,direct2(direct2)(direct1)X X X X 3 2 86,87 MOV direct,Ri(Ri)(direct)X X X X 2 2 75 MOV direct,#data data (direct)X X X X 3 2 F6,F7 MOV Ri,A A(Ri)X X X X 1 1 A6,A7 MOV Ri,direct(direct)(Ri)X X X X 2 2 76,77 MO
17、V Ri,#data data (Ri)X X X X 2 1 90 MOV DPTR,#data16 data16 DPTRX X X X 3 2 93 MOVC A,A+DPTRA+DP TR A X X X 1 2 83 MOVC A,A+PC A+PC A X X X 1 2 文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9
18、H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:C
19、G8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV
20、6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3
21、S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码
22、:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3
23、HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 ZT3S9H2C5L10文档编码:CG8H7K5M3R3 HV6J3U6L9A9 Z
24、T3S9H2C5L104 十六进制代码助记符功能对标志位影响字节数周期数P OV A C C Y E2,E3 MOVX A,Ri(Ri)AX X X 1 2 E0 MOVX A,DPTR(DPTR)AX X X 1 2 F2,F3 MOVX Ri,AA(Ri)X X X X 1 2 F0 MOVX DPTR,A A(DPTR)X X X X 1 2 C0 PUSH directSP+1 SP(direct)SPX X X X 2 2 D0 POP direct SP(direct)SP-1SPX X X X 2 2 C8CF XCH A,RnARn X X X 1 1 C5 XCH A,dir
25、ect A(direct)X X X 2 1 C6,C7 XCH A,RiA(Ri)X X X 1 1 D6,D7 XCHD A,Ri A03(Ri)03X X X 1 1 位操作指令C3 CLR C 0CYX X X 1 1 C2 CLR bit 0bitX X X 2 1 D3 SETB C1CYX X X 1 1 D2 SETB bit 1bitX X X 2 1 B3 CPL CCY CYX X X 1 1 B2 CPL bit bit bitX X X 2 1 82 ANL C,bitCY bit CYX X X 2 2 B0 ANL C,/bit CY bit CYX X X 2
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片 微型计算机 汇编语言 指令
限制150内