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:PB instruction(R = 110 specifies indexregister 6 is to be used forcalculating <strong>the</strong> branch-tolocation)0 5 8 15Op code R Displacement0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1!III 1 1 III 13 E 015Index register 601I 0 0 10 1 011 0 0 1 0 1 1 11 1 1 1 1 1 1 1 1111110 0 F FEffective address generation:Contents of indexregister 6Expanded displacementEffective address0000 0000 1111 1111+0000 0000 0000 11110000 0001 0000 1110Thus, <strong>the</strong> next instruction to be executed is at storage location 270 (decimal).Branch and Link (PBAL)0 5 8 15Op code0 1 0 1 1I litX X X1 IDisplacement1 1 1 1 1 15 8-F X XThe branch and link instruction (PBAL) branches to ano<strong>the</strong>r storage location and saves<strong>the</strong> contents of <strong>the</strong> IAR for return to <strong>the</strong> original sequence. The PBAL instruction isunconditional; <strong>the</strong> branch is always taken because it is not based upon <strong>the</strong> result ofa condition or test.When <strong>the</strong> PBAL instruction is fetched from storage, <strong>the</strong> IAR contains <strong>the</strong> address of<strong>the</strong> storage location that immediately follows <strong>the</strong> PBAL instruction. Execution of <strong>the</strong> PBALinstruction causes <strong>the</strong> contents of <strong>the</strong> IAR to be stored (and thus saved for future usein returning to <strong>the</strong> original sequence) in <strong>the</strong> index register specified by <strong>the</strong> R field.If R=000, <strong>the</strong> accumulator is used for this purpose.The location of <strong>the</strong> next instruction to be executed (<strong>the</strong> location branched to) isdetermined by <strong>the</strong> effective address as computed from <strong>the</strong> IAR and displacement fields in<strong>the</strong> PBAL instruction. The contents of <strong>the</strong> displacement field are added algebraically to<strong>the</strong> contents of <strong>the</strong> IAR to form this effective address. Thus, <strong>the</strong> IAR now contains <strong>the</strong>address of <strong>the</strong> storage location being branched to. The PBAL instruction does not change<strong>the</strong> carry, overflow, or result indicators.4-30 GA34-0003

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

Saved successfully!

Ooh no, something went wrong!