
5.7 Data Shift Instructions
5.7.11 Bit Shift Left (SHFTL)
5-133
( 3 ) Programming Example
In the following programming example, four bits from the first bit address at MB00001E are shifted two bits to the left
when switch 1 (DB000000) turns ON.
The following figure illustrates the result when the above instructions are executed.
0 0 1 1 0 1
0 0 0 1 0 0
EF012…
11
Number of bits
to shift = 2
Bit width = 4
First bit address:
MB00001E
Before Shift
After Shift
Bits that overflow are discarded.
Comentarios a estos manuales