Shift operations
Operation
Operand
Function (operation with ACCU 1)
SLW
SRW
SLD
SSW
SSD
RLD
RRD
0 to 15
0 to 15
0 to 32
0 to 15
0 to 32
0 to 32
0 to 32
Shift a word to the left (vacant positions
to the right are padded with zeros)
Shift a word to the right (vacant position
to the left are padded with zeros)
Shift a double word to the left (vacant positions
to the right are padded with zeros)
Shift a word with sign to the right (vacant positions
to the left are padded with the sign - bit 15)
Shift a double word with sign to the right (vacant
positions to the left are padded with the sign - bit 31)
Rotate to the left
Rotate to the right
Only ACCU 1 is involved in the execution of shift operations. The
parameter part of these operations specifies the number of positions by
which the accumulator contents should be shifted or rotated. For the
SLW, SRW and SSW operations, only the low word of ACCU 1 is
involved in the shift operations. For SLD, SSD, RLD and RRD
operations, the entire contents of ACCU 1 (32 bits) are involved.
Shift operations are executed regardless of conditions.
You can use jump operations to scan the value of the last bits shifted
out using CC 1/CC 0.
Shift: last
bit shifted
CC 1
CC 0
Jump operation
0
0
0
JZ=
1
1
0
JN=
JP=
Table 3-22
Shift operations
Executive Operations
CPU 948 Programming Guide
C79000-G8576-C848-04
3 - 61
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...