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.

NMI INNI 1111=111111 IM11111■111111111111 III II II IIIThe carry indicator is set on if a borrow occurs out of <strong>the</strong> high-order bit in <strong>the</strong>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 a subtract instruction. If an overflow occurs, <strong>the</strong> accumulatorwill contain <strong>the</strong> correct low-order 16 bits of <strong>the</strong> result and <strong>the</strong> carry indicator willbe turned on if <strong>the</strong> result is negative.The result indicators are set to reflect <strong>the</strong> result in <strong>the</strong> accumulator.The sign of <strong>the</strong> result is dependent upon <strong>the</strong> signs and magnitudes of both operands.Possible combinations (where operand B is always numerically greater than operand A,regardless of signs) are:From Operand Subtract Operandin Accumulator in Storage+B +A+B —A—B +A—B —A+A +B+A —B—A +B—A —BSign of Resultin AccumulatorThe value in <strong>the</strong> accumulator is positive if <strong>the</strong> leftmost bit is a 0; <strong>the</strong> value in<strong>the</strong> accumulator is negative if <strong>the</strong> leftmost bit is a 1. Negative numbers are intwos-complement form.Example 1:Contents of accumulator 0 000 0000 0000 0011Contents of storage locationaddressed by PS instruction —0 000 0000 0000 0010Result in accumulator 0 000 0000 0000 0001(In decimal: 3 — 2 = 1)Example 2:Contents of accumulator 1 000 0000 0000 0011Contents of storage locationaddressed by PS instruction —0 000 0000 0000 0010Result in accumulator 1 000 0000 0000 0001(In decimal: —32,765 — 2 = —32,767)Example 3:Contents of accumulator 1 000 0000 0000 0011Contents of storage locationaddressed by PS instruction —1 000 0000 0000 0000Result in accumulator 0 000 0000 0000 0011(In decimal: —32,765 — (-132,768 = —32,765 + 32,768 = +3)+

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

Saved successfully!

Ooh no, something went wrong!