Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-141
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Data Shift Instructions
2
NASL/NSLL
NASL/NSLL
Applicable Program Areas
Operands
C: Control word
Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
SHIFT N-BITS LEFT NASL @NASL 580
Shifts the specified 16 bits of word data to the left by the
specified number of bits.
DOUBLE SHIFT N-BITS LEFT NSLL @NSLL 582
Shifts the specified 32 bits of word data to the left by the
specified number of bits.
Symbol
NASL NSLL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description
Data type Size
NASL NSLL NASL NSLL
D Shift Word UINT UDINT 1 2
C Control word UINT UDINT 1 1
NASL NSLL
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
D OK OK OK OK OK OK OK OK OK --- --- --- ---
C OKOKOKOKOKOKOK OK OK OK --- --- ---
NASL(580)
D
C
D: Shift word
C: Control word
NSLL(582)
D
C
D: Shift word
C: Control word
15 8 011 712
C
0
No. of bits to shift: 00 to 10 Hex
Alw
ays 0.
Data shifted into register
0 Hex: 0 shifted in
8 Hex: Contents of rightmost bit shifted in
15 8 011 712
C
0
No. of bits to shift: 00 to 20 Hex
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8 Hex: Contents of rightmost bit shifted in