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.

Complement Register (PCR)0 5 8 15Op code R Modifier1 1 1 1 1 X XX 0 0 0 011 0 0 01 1 1 1 1 1 1 1F 8-F 0 8The twos-complement of <strong>the</strong> register specified by R replaces <strong>the</strong> contents of <strong>the</strong> sameregister. An R field of 000 specifies <strong>the</strong> accumulator.The carry indicator is not changed. The overflow indicator is set on if <strong>the</strong> number tobe complemented is <strong>the</strong> maximum negative number that can be represented (a I followed byfifteen 0's). The result indicators are changed to reflect <strong>the</strong> final contents of <strong>the</strong>accumulator or index register.The twos-complement of a number is obtained by inverting each bit of <strong>the</strong> number and<strong>the</strong>n adding a binary 1 to <strong>the</strong> result.Example:0PCR instructionR =010 specifies indexregister 2 is to becomplemented)Before PCR operationIndex register 20 5 8 15Op code1 1 1 1 1!IIIR0 1 0 0 0 0 011 0 0 0I I Mil!!F A 0 80 150 0 0 1 1 1 1 0 0 1 1 0 1 0 0 11111111111111111 E 6 9Complement procedure:Invert bitsAdd +1Twos - complement1110 0001 1001 0110+0000 0000 0000 00011110 0001 1001 01110After PCR operationIndex register 20151 1 1 0 0 0 0 1 1 0 0 1 0 1 1 1111111111111111E 1 9 7Processor Instructions 4-19

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

Saved successfully!

Ooh no, something went wrong!