Fujitsu MB90390 Series Hardware Manual page 682

Table of Contents

Advertisement

APPENDIX
Table B.8-12 18 Shift Instructions (Byte, Word, Long Word)
Mnemonic
#
RORC
A
2
ROLC
A
2
RORC
ear
2
RORC
eam
2+
ROLC
ear
2
ROLC
eam
2+
ASR
A,R0
2
LSR
A,R0
2
LSL
A,R0
2
ASRW
A
1
LSRW
A/SHRW A
1
LSLW
A/SHLW A
1
ASRW
A,R0
2
LSRW
A,R0
2
LSLW
A,R0
2
ASRL
A,R0
2
LSRL
A,R0
2
LSLL
A,R0
2
*1: 6 when R0 is 0; otherwise, 5 + (R0)
*2: 6 when R0 is 0; otherwise, 6 + (R0)
Note:
See Table B.5-1 and Table B.5-2 for information on (a) and (b) in the table.
654
~
RG
B
byte (A) ← Right rotation with carry
2
0
0
byte (A) ← Right rotation with carry
2
0
0
byte (ear) ← Right rotation with carry
3
2
0
2 × (b)
byte (eam) ← Right rotation with carry
5+(a)
0
byte (ear) ← Left rotation with carry
3
2
0
2 × (b)
byte (eam) ← Left rotation with carry
5+(a)
0
byte (A) ← Arithmetic right shift (A, 1 bit)
*1
1
0
byte (A) ← Logical right barrel shift (A, R0)
*1
1
0
byte (A) ← Logical left barrel shift (A, R0)
*1
1
0
word (A) ← Arithmetic right shift (A, 1 bit)
2
0
0
word (A) ← Logical right shift (A, 1 bit)
2
0
0
word (A) ← Logical left shift (A, 1 bit)
2
0
0
word (A) ← Arithmetic right barrel shift (A, R0)
*1
1
0
word (A) ← Logical right barrel shift (A, R0)
*1
1
0
word (A) ← Logical left barrel shift (A, R0)
*1
1
0
long (A) ← Arithmetic right barrel shift (A, R0)
*2
1
0
long (A) ← Logical right barrel shift (A, R0)
*2
1
0
long (A) ← Logical left barrel shift (A, R0)
*2
1
0
Operation
LH
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
AH
I
S
T
N
Z
V
-
-
-
-
*
*
-
-
-
-
-
*
*
-
-
-
-
-
*
*
-
-
-
-
-
*
*
-
-
-
-
-
*
*
-
-
-
-
-
*
*
-
-
-
-
*
*
*
-
-
-
-
*
*
*
-
-
-
-
-
*
*
-
-
-
-
*
*
*
-
-
-
-
*
R
*
-
-
-
-
-
*
*
-
-
-
-
*
*
*
-
-
-
-
*
*
*
-
-
-
-
-
*
*
-
-
-
-
*
*
*
-
-
-
-
*
*
*
-
-
-
-
-
*
*
-
C
RMW
*
-
*
-
*
-
*
*
*
-
*
*
*
-
*
-
*
-
*
-
*
-
*
-
*
-
*
-
*
-
*
-
*
-
*
-

Advertisement

Table of Contents
loading

Table of Contents