Omron CJ2 - 02-2010 User Manual page 497

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
ASYNCHRO-
ASFT
017
NOUS SHIFT
@ASFT
REGISTER
WORD SHIFT
WSFT
016
@WSFT
ARITHMETIC
ASL
025
SHIFT LEFT
@ASL
DOUBLE
ASLL
570
SHIFT LEFT
@ASLL
ARITHMETIC
ASR
026
SHIFT RIGHT
@ASR
DOUBLE
ASRL
571
SHIFT RIGHT
@ASRL
ROTATE LEFT
ROL
027
@ROL
DOUBLE
ROLL
572
ROTATE LEFT
@ROLL
CJ2 CPU Unit Software User's Manual
Code
Symbol/Operand
Shifts all non-zero word data within the specified word
ASFT(017)
range either towards St or toward E, replacing 0000Hex
word data.
C
St
E
St
C: Control word
St: Starting word
E: End word
E
St
E
Shifts data between St and E in word units.
WSFT(016)
S
Lost
St
E
S: Source word
St: Starting word
E: End word
Shifts the contents of Wd one bit to the left.
ASL(025)
Wd
Wd: Word
Shifts the contents of Wd and Wd +1 one bit to the left.
ASLL(570)
Wd
Wd: Word
Shifts the contents of Wd one bit to the right.
ASR(026)
Wd
Wd: Word
Shifts the contents of Wd and Wd +1 one bit to the right.
ASRL(571)
Wd
Wd: Word
Shifts all Wd bits one bit to the left including the
ROL(027)
Carry Flag (CY).
Wd
Wd: Word
Shifts all Wd and Wd +1 bits one bit to the left including
ROLL(572)
the Carry Flag (CY).
Wd
Wd: Word
Function
Shift direction
Shift enabled
Shift
Clear
Shift
Non-zero data
Zero data
St
E
Wd+1
Wd
Wd+1
Wd
Wd
Wd+1
Appendices
Execution
Location
condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
A-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents