MCS-51單片機(jī)匯編語言:邏輯運(yùn)算指令有哪些?
簡單邏輯操作指令
CLR A ; A← “0”
CPL A ; A← A
SWAP A ; A0~3 A4~7
左循環(huán)指令 (Rotate Accumulator Left)
RL A
帶進(jìn)位左循環(huán)指令(Rotate Accumulator Left through Carry flag)
RLC A
右循環(huán)指令(Rotate Accumulator Right)
RR A
帶進(jìn)位右循環(huán)指令(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