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.

Add Immediate (PAI)0 5 8 15Op code0 1 1 1 0III 1R DisplacementX X X1 1 1 1 1 1 1 17 0-7 X XThe contents of <strong>the</strong> displacement field in <strong>the</strong> instruction are added algebraically to<strong>the</strong> contents of <strong>the</strong> register specified by R. An R field of 000 specifies <strong>the</strong> accumulator.Before <strong>the</strong> addition takes place, <strong>the</strong> 8-bit displacement field is expanded to 16 bitsby propagating <strong>the</strong> displacement sign-bit (bit 8) value through <strong>the</strong> high-order bits(that is, bits 0 to 7 take on <strong>the</strong> value of <strong>the</strong> sign bit). The resulting sum replaces<strong>the</strong> contents of <strong>the</strong> index register or accumulator. The instruction word is not changed.The carry and result indicators are set to reflect <strong>the</strong> result in <strong>the</strong> index registeror accumulator.The overflow indicator is set to reflect <strong>the</strong> result only if it has not been set bya previous operation. If <strong>the</strong> overflow indicator was previously set on, it will not bechanged by <strong>the</strong> result of an add immediate instruction. If an overflow occurs, <strong>the</strong>accumulator will contain <strong>the</strong> correct low-order 16 bits of <strong>the</strong> result and <strong>the</strong> carryindicator will be turned on if <strong>the</strong> result is negative.Example:PAI instruction(R=000 specifiesdisplacement is addedto accumulator)0 5 8 15Op code0 1 1 1 0R0 0 0I IDisplacement0 0 1 1 (1 1 1 17 0 3 FContents of accumulator 0011 1111 0000 0000Expanded displacement +0000 0000 0011 1111Result in accumulator 0011 1111 0011 1111Subtract (PS)0 5 8 15Op code R Displacement1 0 0 1 0 X X XIII! 1 I 1 1 1 1 1 1 19 0-7 X XThe contents of <strong>the</strong> storage location specified by <strong>the</strong> effective address are subtractedalgebraically from <strong>the</strong> contents of <strong>the</strong> accumulator. The resulting difference replaces<strong>the</strong> contents of <strong>the</strong> accumulator; <strong>the</strong> contents of <strong>the</strong> addressed storage location arenot changed.If R=000, <strong>the</strong> effective address of <strong>the</strong> data in storage is formed by using <strong>the</strong> IARas <strong>the</strong> base register. If <strong>the</strong> R field is nonzero (R =001 to 111), <strong>the</strong> effective addressis formed using an index register as <strong>the</strong> base register.Processor Instructions 4-15

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

Saved successfully!

Ooh no, something went wrong!