A-1-7 Data Shift Instructions - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

A-1-7
Data Shift Instructions
Instruction
Mnemonic
SHIFT REGIS-
SFT
TER
REVERSIBLE
SFTR
SHIFT REGIS-
TER
WORD SHIFT
WSFT
ARITHMETIC
ASL
SHIFT LEFT
ARITHMETIC
ASR
SHIFT RIGHT
ROTATE LEFT
ROL
ROTATE
ROR
RIGHT
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
---
Data
SFT(010)
input
Shift
St
input
E
Reset
input
St: Starting word
E: End word
@
SFTR(084)
C
St
E
C: Control word
St: Starting word
E: End word
@
WSFT(016)
S
St
E
S: Source word
St: Starting word
E: End word
@
ASL(025)
Wd
Wd: Word
@
ASR(026)
Wd
Wd: Word
@
ROL(027)
Wd
Wd: Word
@
ROR(028)
Wd
Wd: Word
Function
Operates a shift register.
E
St+1, St+2
Lost
Creates a shift register that shifts data to either the right or the left.
E
E
Data
input
C: Control Word
15 14 13 12
Shift direction
1 (ON): Left
0 (OFF): Right
Data input
Shift input
Reset
Shifts data between St and E in word units.
E
Lost
Shifts the contents of Wd one bit to the left.
Wd: 100CH
15
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
CY
1
0 0 1
0 0 0 1 0 0 0 1 0 0 0
Shifts the contents of Wd one bit to the right.
Wd: 100CH
15
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0
0
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0
Shifts all Wd bits one bit to the left including the Carry Flag (CY).
Shifts all Wd bits one bit to the right including the Carry Flag (CY).
Wd+1
Appendices
St
Status of data
input for each
shift input
St
Data input
Shift
direc-
St
tion
St
0
0
1
0
0
CY
1
Wd
A-15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF