MT
MT
We will adopt the symbols shl and shr for logical shift-left and shift-right
rnicrooperations. For example:
R1 ← shl R1
R2 ← shr R2
are two rnicrooperations that specify a 1-bit shift to the left of the content of
register R 1 and a 1-bit shift to the right of the content of register R2. The
register symbol must be the same on both sides of the arrow. The bit
transferred to the end position through the serial input is assumed to be 0
during a logical shift.
The circular shift (also known as a rotate operation) circulates the bits of
the register around the two ends without loss of information. This is
accomplished by connecting the serial output of the shift register to its
serial input. We will use the symbols cil and cir for the circular shift left and
right, respectively. The symbolic notation for the shift rnicrooperations is
shown in Table 4-7.