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.

Branch Conditional (PBC►0 5 8 9 1631Op code0 1 0 01 1 1010 0 01FConditionsI I 1 1 1 1 1 1 1Address1 1 1 1 1 1 1 1 1 1 1 14 0 X XXX X XOp code0 1 0 01 I 15 8 9 150 XXX1 1FConditionsI I 1 1 1 14 1-7 X XThe branch conditional instruction (PBC) branches to ano<strong>the</strong>r storage location only ifcertain conditions are not present. These conditions are specified within <strong>the</strong> PBC instruction.If any one of <strong>the</strong> specified conditions is present, <strong>the</strong> PBC instruction does not branch,but continues program execution with <strong>the</strong> instruction that immediately follows <strong>the</strong> PBCinstruction.There are two ways of determining <strong>the</strong> effective address of <strong>the</strong> storage location that isto be branched to. When R=000, <strong>the</strong> effective address is in <strong>the</strong> address field of a longformatPBC instruction. When R does not equal 000, <strong>the</strong> effective address is contained in<strong>the</strong> specified index register (R) and <strong>the</strong> short-format PBC instruction is used. In ei<strong>the</strong>r case,if test results cause <strong>the</strong> branch to be taken, <strong>the</strong> effective address is loaded into <strong>the</strong> IAR,and <strong>the</strong> instruction sequence begins at <strong>the</strong> effective address.The programmer determines what tests are conducted to decide whe<strong>the</strong>r a branch willbe taken. This is accomplished by setting bits on or off in <strong>the</strong> condition field (bits 8 to 15)of <strong>the</strong> instruction.The bits and <strong>the</strong>ir meanings are shown below:Bit Set On Condition Tested9 Carry and overflow indicators both off10 Zero-result indicator on11 Negative-result indicator on12 Positive-result indicator on13 Even-result indicator on14 Carry indicator off15 Overflow indicator offIf no conditions are tested (all condition field bits are set to 0's), <strong>the</strong> PBC functions as anunconditional branch. Any combination of testing can be requested.If none of <strong>the</strong> specified test conditions are present, <strong>the</strong> branch is taken. If any are present,<strong>the</strong> branch does not occur and program execution proceeds with <strong>the</strong> instruction thatimmediately follows <strong>the</strong> PBC instruction.The branch conditional instruction does not change <strong>the</strong> carry and result indicators.Testing <strong>the</strong> overflow indicator with bit 15 always sets <strong>the</strong> overflow indicator off unlesscondition field bit 8 (overflow-save flag) of <strong>the</strong> instruction is set on. Testing <strong>the</strong> overflowindicator with bit 9 does not change <strong>the</strong> overflow indicator; <strong>the</strong> overflow-save flag hasno effect.

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

Saved successfully!

Ooh no, something went wrong!