b 15
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1
After the shift
b 15
0 0 0
0 0 0 0 1 0 1 0 1 0 1 0 1
Being fil led by 0
Additional remarks
If n is not between 0–16 (for 16-bit instructions) or between 0-32 (for 32-bit instructions), the instruction is not executed,
SM0 is ON, and the error code in SR0 is 16#200B.
Carry flag
※
b 0
Carry flag
b 0
0
C ha pt er 6 A p pl i e d In s tr uc t io ns
6_
6 - 3 4 1