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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Shift Right Logical (PSRL)0 5 8 11 15Op codeRModCount0 0 0 1 0iX X XI I0 1 0iXXXXXlit'1 0-7 4 or 5X<strong>All</strong> 16 bits in <strong>the</strong> index register (R), or <strong>the</strong> accumulator if R=000, are shifted rightby <strong>the</strong> number of bits specified in <strong>the</strong> count field.Vacated high-order bits are set to 0's. <strong>All</strong> bits shifted out of <strong>the</strong> low-order position(bit 15) are lost.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 16 sets<strong>the</strong> entire contents of <strong>the</strong> R register to a 0 value. A shift count of 0 is valid andserves a useful purpose. Although no shifting takes place, this is a simple method ofsetting <strong>the</strong> result indicators to reflect <strong>the</strong> current contents of <strong>the</strong> R register.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. For a shift count greater than 0, <strong>the</strong>result-positive indicator is always set on.Example:Assume a right shift of two bits in <strong>the</strong> accumulator0 5 8 15PSRL instructionOp code R Mod Count0 0 0 1 0 0 0 0 0 1 0 0 10 0 1 0ilii II II III!1 0 4 2Accumulator0 15Original value0 shifted inAfter first shift0 shifted inAfter second shiftProcessor Instructions 4-27

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

Saved successfully!

Ooh no, something went wrong!