MCS-51單片機匯編語言:邏輯運算指令有哪些?
簡單邏輯操作指令
CLRA;A←“0”
CPLA;A←A
SWAPA;A0~3A4~7
左循環(huán)指令(RotateAccumulatorLeft)
RLA
帶進位左循環(huán)指令(RotateAccumulatorLeftthroughCarryflag)
RLCA
右循環(huán)指令(RotateAccumulatorRight)
RRA
帶進位右循環(huán)指令(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
評論