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.

The branch and link instruction (PBAL) permits branching only to storage locationsthat are +127 or —128 positions away from <strong>the</strong> address contained in <strong>the</strong> IAR when <strong>the</strong>PBAL instruction is fetched. This limit exists because <strong>the</strong> displacement field (bits 8to 15) of <strong>the</strong> instruction can contain only numbers in <strong>the</strong> range of +127 through —128.Example: Assume that <strong>the</strong> PBAL instruction is at storage location 88.0 5 8 15Op codeDisplacementPBAL instruction 0 1 0 1 1 1 1 1 0 0 1 0 1 0 0 0 11 1 1 I 1 1 1 1 f5 F 2 1IAR0 15 0PBAL instruction (Decimal 89)is fetched 0 0 0 0 10 0 0 0 1 0 1 0 1 1 1 0 0 111111 I 111111111 I 1 10 0 5 9Index register 715IAR storedby PBALinstructionBranch-to addressgeneration:PBAL instruction IAR 0000 0000 0101 1001execution Disp +0000 0000 0010 00010000 0000 0111 101000 0 0 0 0 01 1 1 I 10(Decimal 89)150 0 0 1 0 1 1 0 0 11 1111111110 5 9IAR0 15 0 15After PBALinstruction execution(Decimal 122) (Decimal 89)0 0 0 0 10 0 0 0 0 1 1 1 11 0 1 00 0 0 0 0 0 0 0 0 1 0 1 1 0 0 11111111111111111111111111111110 0 7 A 0 0 5 9The IAR contains <strong>the</strong> effective address of <strong>the</strong> next instruction to be executed; that is,<strong>the</strong> instruction branched to, which is at location 122. The branch to location 122 istaken and execution begins. The PBAL instruction does not change <strong>the</strong> carry, overflow,or result indicators.When it is desired to return to <strong>the</strong> original sequence (at location 89), <strong>the</strong> contents ofindex register 7 must be moved to <strong>the</strong> IAR. A branch (PB) instruction, with 0displacement and R=111 (specifying XR7), can be used to accomplish this.Processor Instructions 4-31

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

Saved successfully!

Ooh no, something went wrong!