12.07.2015 Views

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Shift Left Circular (PSLC)0 5 8 11 15Op code0 0 0 1I I10IXRX XIMod0 0 0I ICountXXXXX0-7 0 or 1 X<strong>All</strong> 16 bits in <strong>the</strong> index register (R), or <strong>the</strong> accumulator if R=000, are rotated left by<strong>the</strong> number of bits specified in <strong>the</strong> count field. This means that bits shifted out of <strong>the</strong>high-order position (bit 0) reenter at <strong>the</strong> low-order position (bit 15). Therefore, nobits are lost; <strong>the</strong>y are just rearranged.The shift count field can specify any decimal value from 0 to 16. Shift counts greaterthan 16 are invalid and cause a program check interruption. A shift count of 0 is validand serves a useful purpose. Although no rotating takes place, this is a simple methodof setting <strong>the</strong> result indicators to reflect <strong>the</strong> current contents of <strong>the</strong> R register. Ashift count of 16 has <strong>the</strong> same effect because <strong>the</strong> bits are rotated until <strong>the</strong>y return to<strong>the</strong>ir original positions.The carry and overflow indicators are not changed. The result indicators are changedto reflect <strong>the</strong> final contents of <strong>the</strong> R register.Example:Assume a left circular shift of four bits in index register 40 5 8 15PSLC instructionOp code R Mod Count0 0 0 1 0 1 0 0 0 0 0 010 1 0 0III! It 11 III!1 4 0 4Original valueAfter first shiftAfter second shift• •• •• •After fourth shift0000 0000 0000 111 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!