6.13 Shift cycle
6.13.1 SHR - B & SHL - B
Input/output
Operand
Data type
IN
VB, IB, QB, MB, SB, SMB, LB, AC,constant, *VD, *LD, *AC
Byte
N
VB, IB, QB, MB, SB, SMB, LB, AC,constant, *VD, *LD, *AC
Byte
OUT
VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *LD, *AC
Byte
SHR - B: Input byte "IN" and move N bits towards the
right.Then place the results in OUT.
SHL - B: Input byte "IN" and move N bits towards the
left.Then place the results in OUT.
The moved out bits are filled with zero.If N is greater than
or equal to 8, you can move up to 8 bits.
SHR - B & SHL - B operations are not signed.
error conditions:
0006
Indirect address
Special memory bit:
SM1.0
Zero Result
SM1.1
Overflow
175
Made with FlippingBook - Online magazine maker