136
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS. M includes M,HM,SM;S includes S,HS;T
includes T,HT;C includes C, HC.
After executing LSL once, the lowest bit is filled with 0; the last bit is stored in carry flag.
LSL meaning and operation are the same to SHL.
After executing LSR once, the highest bit is filled with 0; the last bit is stored in carry flag.
LSR and SHR are different, LSR add 0 inthe highest bit when moving, SHR all bits are
moved.
< Logic shift left > < Logic shift right >
4-7-3 Rotation shift left [ROL,DROL], Rotation shift right [ROR,DROR]
1)Summary
Cycle shift left or right
Rotation shift left [ROL, DROL]
Rotation shift right [ROR, DROR]
tudonghoatoancau.com