Delta AS Series Programming Manual page 617

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
Carry flag
Carry flag
1
Example 2
When X0.0 is ON, SM616 is ON. The instruction shifts the values of the bits to the right. Suppose SM615 is ON. After the
instruction shifts the values of the bits in the 16-bit registers D0–D2 to the right, it stores the operation result in the 16-bit
registers D20–D22, and SM614 is OFF.
_6
Borr ow flag
Borr ow flag
1
6 - 3 3 8
b 15
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D2
After the s hift
b 15
D20
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 0
0 1 0
D21
1 0 1 0 1 0 1 0 1 0 1 0 1
D22
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1
b 15
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D2
After the s hift
b 15
0 1 0
D20
1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0
D21
1 0 1 0 1 0 1 0 1 0 1 0 1
D22
1 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1
Borr ow flag
b 0
0
Borr ow flag
b 0
0
Carry flag
b 0
Carry flag
b 0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents