MCS-51单片机汇编语言:逻辑运算指令有哪些?
简单逻辑操作指令
CLRA;A←“0”
CPLA;A←A
SWAPA;A0~3A4~7
左循环指令(RotateAccumulatorLeft)
RLA
带进位左循环指令(RotateAccumulatorLeftthroughCarryflag)
RLCA
右循环指令(RotateAccumulatorRight)
RRA
带进位右循环指令(RotateARightwithC)
RRCA
逻辑与指令
ANLA,Rn
ANLA,direct
ANLA,#data
ANLA,@Ri
ANLdirect,A
ANLdirect,#data
逻辑或指令
ORLA,Rn
ORLA,direct
ORLA,#data
ORLA,@Ri
ORLdirect,A
ORLdirect,#data
逻辑异或指令
XRLA,Rn
XRLA,direct
XRLA,#data
XRLA,@Ri
XRLdirect,A
XRLdirect,#data
评论