EasyManua.ls Logo

Xinje XL Series - 4-7 Shift Instructions; 4-7-1 Arithmetic shift left [SHL,DSHL], Arithmetic

Xinje XL Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
133
data address.
For example, the source data D10 is 20, when M0 rising edge is coming, D10 become -20.
The following two instructions are the same.
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,DSHL], Arithmetic shift right [SHR,DSHR]
1) Summary
Do arithmetic shift left/right for the numbers
Arithmetic shift left [SHL,DSHL]
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,DSHR]
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
16 bits/32 bits,BIN
n
Shift left or right times
16 bits/32bits,BIN
tudonghoatoancau.com

Table of Contents

Related product manuals