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.

I/0 Command FunctionsImmediate Write (Fun=001)An immediate write command transfers one word (16 bits) of data from a specifiedprocessor register to <strong>the</strong> addressed device. The result indicators are not changed.Immediate Read (Fun=010)An immediate read command transfers one word (16 bits) of data from <strong>the</strong> addresseddevice to a specified processor register. The result indicators are changed to reflect <strong>the</strong>final contents of <strong>the</strong> specified register.Prepare I/O (Fun=011)The prepare I/O command transfers one word (16 bits) of data from a specified processorregister to <strong>the</strong> addressed device. The difference between this command and <strong>the</strong> immediatewrite command is <strong>the</strong> data and its purpose. The immediate write command transfers datafor transmission to <strong>the</strong> output device or point, or for control of attached I/O devices. Theprepare I/O command transfers information advising <strong>the</strong> device whe<strong>the</strong>r it is allowed tointerrupt and, if so, on what priority level and sublevel.The data sent to <strong>the</strong> device by <strong>the</strong> prepare I/O command has <strong>the</strong> following format andmeaning:0 4 8 15Level Sublevel Zeros00XX X XX X 0 0 0 0 0 0 0 XI I 1 I I 1 I I I I I I0-3 0-F 0 0 or 1The significance of <strong>the</strong> data fields in this word are described as follows.Level: This 4-bit field specifies <strong>the</strong> priority interruption level assigned to <strong>the</strong> interruptingsource. The binary value of bits 2 and 3 indicates <strong>the</strong> priority level (0, 1, 2, or 3). Bits 0and 1 must be 0.Sublevel: This 4-bit field assigns a sublevel (from 0000 to 1111) to <strong>the</strong> interruptingsource. When requesting an interruption, <strong>the</strong> source presents this sublevel so that <strong>the</strong>system can locate <strong>the</strong> starting address of <strong>the</strong> servicing routine in <strong>the</strong> appropriate leveltable. A sublevel of 0000 accesses <strong>the</strong> second word in <strong>the</strong> table; a sublevel of 1111 accesses<strong>the</strong> seventeenth (last) word. The first word in each level table is reserved for <strong>the</strong> oldinstruction address associated with a program check interruption. (Refer to Chapter 3,"<strong>System</strong>/7 Interruptions," for more detail.)Zeros: This field is not used, but its value must be set to 0.I. This bit determines whe<strong>the</strong>r <strong>the</strong> device is allowed to request an interruption. An I-bitvalue of 1 permits <strong>the</strong> device to request an interrupt, and a value of 0 prevents it. (Theinterruption mask determines whe<strong>the</strong>r <strong>the</strong> device can actually interrupt <strong>the</strong> processor.)If <strong>the</strong> device is not permitted to cause an interruption, issuing an interruption-causingcommand results in:1. Condition code 1 being set.2. The command reject indicator being set in <strong>the</strong> DSW.3. The command not being executed.The prepared device stores <strong>the</strong> PIO data and presents <strong>the</strong> priority level and sublevelto <strong>the</strong> processor each time <strong>the</strong> device presents an interruption request (and interruptionsare enabled). Data stored at <strong>the</strong> device is reset on a system reset, a power-on reset, or change(by <strong>the</strong> successfu' execution of ano<strong>the</strong>r prepare I/O command to <strong>the</strong> device.Processor Instructions 4-57

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

Saved successfully!

Ooh no, something went wrong!