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