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.

Example 2:PSKC instruction0 5 8 .9 1501Op code1 0 0I 111R• * •IIF1Conditions1 0 0 10 0 0 0Ili!!!Carry indicator 0Overflow indicator 1114 8 C 0The only test requested (bit 9 set on) is that both <strong>the</strong> carry and overflow indicators areoff. Since <strong>the</strong> overflow indicator is on, <strong>the</strong> test is false and no skip occurs.Example 3: In example 2, if <strong>the</strong> overflow indicator is off, <strong>the</strong> test requested istrue and <strong>the</strong> next word is skipped.Add to Storage and Skip (PAS)0 5 8 15Op code Rtill X0 1 1 1 1X X1 IDisplacement7 8-F X XThe add to storage and skip instruction (PAS) increments by 1 <strong>the</strong> contents of <strong>the</strong> storagelocation specified by <strong>the</strong> effective address. If <strong>the</strong> result in <strong>the</strong> storage location is a0 value, <strong>the</strong> one-word instruction that follows <strong>the</strong> PAS instruction is skipped. Sinceonly one word is skipped, this instruction should never be followed by a long-formatinstruction.The effective address is <strong>the</strong> algebraic sum of <strong>the</strong> contents of <strong>the</strong> displacement fieldand <strong>the</strong> register specified by R. If R=000, <strong>the</strong> IAR contents are used in thiscalculation.The carry and overflow indicators are not changed. The result indicators are changedto reflect <strong>the</strong> final contents of <strong>the</strong> addressed storage location.The PAS instruction can be used in conjunction with a storage word that is set up asa counter. Such counters are frequently set up and incremented each time a particularjob, function, or routine is accomplished. The counter value changing to 0 can be <strong>the</strong>condition for termination of <strong>the</strong> routine and/or branching to ano<strong>the</strong>r portion of <strong>the</strong>program. The add to storage and skip instruction (PAS) is used to increment <strong>the</strong> counterand <strong>the</strong>n skip a storage word when <strong>the</strong> counter value becomes 0.Processor Instructions 4-39

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

Saved successfully!

Ooh no, something went wrong!