飞思卡尔逻辑运算指令
AND And A with memory (A)·(M)→A
EOR Exclusive OR A with memory (A)+(M)→A
ORA OR A with memory (A)+(M)→A
1)逻辑移位与循环移位指令
LSL Logic shift left memory,high bit to C,low bit fill with 0
LSLA Logic shift left A,high bit to C,low bit fill with 0
I_SLX Logic shift left X,high bit to C,low bit fill with 0
移位示意图如图5—6所示。
LSR Logic shift right memory,low bit to C,high bit fill with 0
LSRA Logic shift right A,low bit to C,high bit fill with 0
LSRX Logic shift right X,low bit to C,high bit fiU with 0
移位示意图如图5—7所示。
ROL Rotate left memory through carry
ROLA Rotate left A through f3alTy
ROLX Rotate left X through carry
移位示意图如图5—8所示。
ROR Rotate right memory through carry
RORA Rotate right A through carry
RORX Rotate right X through carry
移位示意图如图5—9所示。
2)算数移位指令
ASL Arithmetic shift left memory.same as LsL
AsLA Arithmetic shift left A.same as LsLA
ASLX Arithmetic shift left X,same as LSLX
ASR Arithmetic shift fight memory,high bit does not change,low bit to C
ASRA Arithmetic shift fight A,high bit does not change,low bit to C
ASRX Arithmetic shift right X,high bit does not change,low bit to C
更多精彩请您关注: