Motorola CPU32 Reference Manual page 81

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

ASL, ASR
Condition Codes:
X
N
Z
*
*
*
X
Set according to the last bit shifted out of the operand. Unaffected for a shift
count of zero.
N
Set if the most significant bit of the result is set. Cleared otherwise.
Z
Set if the result is zero. Cleared otherwise.
V
Set if the most significant bit is changed during the shift operation. Cleared
otherwise.
C
Set according to the last bit shifted out of the operand. Cleared for a shift count
of zero.
Instruction Format (Register Shifts):
15
14
13
1
1
1
Instruction Fields (Register Shifts):
Count/Register field — Specifies shift count or register that contains shift count:
If i/r = 0, this field contains the shift count. The values one to seven represent
counts of one to seven; value of zero represents a count of eight.
If i/r = 1, this field specifies the data register that contains the shift count (mod-
ulo 64).
dr field — Specifies the direction of the shift:
0 — Shift right
1 — Shift left
Size field — Specifies the size of the operation:
00 — Byte operation
01 — Word operation
10 — Long operation
i/r field:
If i/r = 0, specifies immediate shift count.
If i/r = 1, specifies register shift count.
Register field — Specifies a data register to be shifted.
CPU32
REFERENCE MANUAL
Arithmetic Shift
V
C
*
*
12
11
10
9
0
COUNT/REGISTER
INSTRUCTION SET
8
7
6
5
dr
SIZE
i/r
ASL, ASR
4
3
2
1
0
0
REGISTER
MOTOROLA
0
4-33

Advertisement

Table of Contents
loading

Table of Contents