DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
Before execution
After bits shift to left
1
b0
010 10 10 10 1
0
10 1
1 010 10 10 10 10 10 10
1 01 10 10 10 10 10 10
b15
0
0
0
M1096
10 10 10 10 10 1
0
10 0
10 10 10 10 10 10 10 10
1
0
1 1
0
1
0
1
0
1
0
1
0
1
00
0
1
M1095
M1095
MBS
M1097=0
D0
D1
D2
D0
D1
D2
D20
D21
D22
Program Example 2:
When X1 = ON, M1097 = ON, indicating a right matrix shift is performed. Assume matrix borrow
flag M1096 = ON (1) and the 16-bit registers D0 ~ D2 will perform a right matrix shift and the result
will be stored in the matrix of the 16-bit registers D20 ~ D22, meanwhile the matrix carry flag
M1095 will be OFF (0).
1
b0
010 10 10 10 1
0
10 1
1 010 10 10 10 10 10 10
1 01 10 10 10 10 10 10
b15
0
0
10 10 10 10 10 1
0
10 1
10 10 10 10 10 10 10 10
1 1 10 10 10 10 10 100
0
0
M1095
M1095
MBS
M1097=1
1
1
M1096
Before execution
After bits shift
to the right
D0
D1
D2
D20
D21
D22