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.

I i 1111111'1Np■I0111m PIP ,ili111.111II 'Ail, II pp IlOIAi 1141111111.111.11FIIIIIIIIPUILOGICAL INSTRUCTIONSA logical instruction is one that is defined in symbolic logic, such as AND, OR, andexclusive OR_Six-instructions are provided to perform logical operations with data instorage and/or <strong>the</strong> index registers or <strong>the</strong> accumulator. Two words of data are used by <strong>the</strong>seinstructions in order to produce a one-word logical result.AND (PN)0 5 8 15Op code R1 1 1 0 0i III X X X1 1DisplacementE 0-7 X XThe contents of <strong>the</strong> accumulator are ANDed, bit by bit, with <strong>the</strong> contents of <strong>the</strong> storagelocation specified by <strong>the</strong> effective address. The result replaces <strong>the</strong> contents of <strong>the</strong>accumulator. The contents of <strong>the</strong> addressed storage word are not changed.An R field of 000 means that <strong>the</strong> effective address of <strong>the</strong> storage data is generatedusing <strong>the</strong> IAR as <strong>the</strong> base register.The carry and overflow indicators are not changed. The result indicators are changedto reflect <strong>the</strong> fmal contents of <strong>the</strong> accumulator.ANDing occurs only between corresponding bits in <strong>the</strong> accumulator and <strong>the</strong> storage word:bit 0 is ANDed only with bit 0, bit 1 only with bit 1, and so on. The four possibleANDing combinations are:Bit Value fromStorage WordBit Value fromAccumulator0 0 00 1 01 0 01 1 1Result inAccumulatorThus, a bit value of 1 will result in <strong>the</strong> accumulator only if a . corresponding bit positionis set to a value of 1 in both <strong>the</strong> accumulator and <strong>the</strong> storage word.Example:Word in accumulatorWord from storageResult in accumulator01 01 0000 1111 101 01010 1111 1010 11110000 0000 1010 1010OR (P0)05 8 15Op code R1111 X1 1 1 0 1X X1 1DisplacementE 8-F X XThe contents of <strong>the</strong> accumulator are ORed, bit by bit, with <strong>the</strong> contents of <strong>the</strong> storagelocation specified by <strong>the</strong> effective address. The result replaces <strong>the</strong> contents of <strong>the</strong>accumulator. The contents of <strong>the</strong> addressed storage word are not changed.4-20 GA34-0003

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

Saved successfully!

Ooh no, something went wrong!