315
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Shift Instruction
3
ASL/ASLL
ASL/ASLL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
ARITHMETIC SHIFT LEFT ASL @ASL 025 Shifts the contents of Wd one bit to the left.
DOUBLE SHIFT LEFT ASLL @ASLL 570 Shifts the contents of Wd and Wd +1 one bit to the left.
Symbol
ASL ASLL
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
ASL ASLL ASL ASLL
Wd Word UINT UDINT 1 2
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
ASL Wd
OK OK OK OK OK OK OK OK OK OK ---
OK
--- OK --- --- --- ---
ASLL Wd ---
Name Label Operation
Error Flag ER OFF
Equals Flag = • ON when the shift result is 0.
• OFF in all other cases.
Carry Flag CY • ON when 1 is shifted into the Carry Flag (CY).
• OFF in all other cases.
Negative Flag N • ON when the leftmost bit is 1 as a result of the shift.
• OFF in all other cases.
ASL(025)
Wd
Wd: Word
ASLL(570)
Wd
Wd: Word