MCS-51单片机汇编语言:逻辑运算指令有哪些?
简单逻辑操作指令
CLR A ; A← “0”
CPL A ; A← A
SWAP A ; A0~3 A4~7
左循环指令 (Rotate Accumulator Left)
RL A
带进位左循环指令(Rotate Accumulator Left through Carry flag)
RLC A
右循环指令(Rotate Accumulator Right)
RR A
带进位右循环指令(Rotate A Right with C)
RRC A
逻辑与指令
ANL A, Rn
ANL A, direct
ANL A, #data
ANL A, @Ri
ANL direct, A
ANL direct, #data
逻辑或指令
ORL A, Rn
ORL A, direct
ORL A, #data
ORL A, @Ri
ORL direct, A
ORL direct, #data
逻辑异或指令
XRL A, Rn
XRL A, direct
XRL A, #data
XRL A, @Ri
XRL direct, A
XRL direct, #data
编辑:admin 最后修改时间:2018-05-18