![Xinje XD Series User Manual Download Page 130](http://html.mh-extra.com/html/xinje/xd-series/xd-series_user-manual_887444130.webp)
129
NEG D10
M0
SUB K0 D10 D10
M0
4-7
.
Shift Instructions
Mnemonic
Function
Chapter
SHL
Arithmetic shift left
4-7-1
SHR
Arithmetic shift right
4-7-1
LSL
Logic shift left
4-7-2
LSR
Logic shift right
4-7-2
ROL
Rotation left
4-7-3
ROR
Rotation right
4-7-3
SFTL
Bit shift left
4-7-4
SFTR
Bit shift right
4-7-5
WSFL
Word shift left
4-7-6
WSFR
Word shift right
4-7-7
4-7-1
.
Arithmetic shift left [SHL], Arithmetic shift right [SHR]
1. Summary
Do arithmetic shift left/right for the numbers
Arithmetic shift left [SHL]
16 bits
SHL
32 bits
DSHL
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable Models XD, XL
Hardware
requirement
-
Software
requirement
-
Arithmetic shift right [SHR]
16 bits
SHR
32 bits
DSHR
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable Models XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands Function
Data Type
D
The source data address
16bit/32bit,BIN
n
Shift left or right times
16bit/32bit,BIN