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.

EFFECTIVE ADDRESS GENERATIONThe displacement field is eight bits long. Its function is determined by <strong>the</strong> instructionto be performed, as indicated in <strong>the</strong> operation-code field. The displacement field maycontain:1. Data to be used for generating an effective address (EA) for <strong>the</strong> instruction beingperformed. (See "Effective Address Generation," which follows.)2. Data to be manipulated in some manner by <strong>the</strong> instruction.3. Data that modifies <strong>the</strong> operation code so that a particular instruction isexecuted.The address field of a long-format instruction is 16 bits long. Its contents are used ingenerating an effective address to locate <strong>the</strong> operand in four of <strong>the</strong> eight long-formatinstructions (load index long, branch conditional, branch and link long, branch andunmask long). The remaining four long-format instructions (execute I/O and <strong>the</strong> threestorage protect instructions) use <strong>the</strong> address field to specify additional modifiers and/or<strong>the</strong> address of <strong>the</strong> I/O module and/or device.Storage addresses are expressed internally in 16-bit binary numbers, ranging from 0 (16 bitsset to 0) to a maximum value determined by <strong>the</strong> storage size of <strong>the</strong> <strong>System</strong>/7 processormodule. Any attempt to address a location that is beyond <strong>the</strong> limits of <strong>the</strong> storage installedin <strong>the</strong> system causes a program check class interruption due to <strong>the</strong> invalid storage address.Most instructions refer to a storage address to locate <strong>the</strong> data that is to be used. Thisstorage address is called <strong>the</strong> effective address (EA).Address ArithmeticThe <strong>System</strong>/7 operates on a base-register-displacement principle for storage addressing.In a short-format instruction, <strong>the</strong> effective address is derived by adding algebraically<strong>the</strong> contents of <strong>the</strong> displacement field to <strong>the</strong> contents of <strong>the</strong> register indicated by <strong>the</strong>R field. The R field in <strong>the</strong> instruction specifies that <strong>the</strong> contents of <strong>the</strong> instructionaddress register (R=000) or one of <strong>the</strong> index registers (R=001 to 111) are added to <strong>the</strong>displacement value to compute <strong>the</strong> effective address. An example using <strong>the</strong> IAR (R=000) isshown below:O 5 8 15Add instruction(located at storageaddress 721 decimal)Op code1 0 0 0 0I III0 0 01 1Displacement0 0 1 0 1 0 1 1 011111118 0 2 6(displacement value of +38)0 15IARO 0 0 0 0 0 1 0 1 1 0 1 0 0 1 01111111111 11111O 2 D 2(base register address of 722)0 15O 0 0 0 0 0 1 0 1 1 1 1 1 0 0 0I 1 I 1 I I 1 I 1 I I I 1 1 1O 2 F 8(effective address of 760 decimal)4-6 GA34-0003

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

Saved successfully!

Ooh no, something went wrong!