11.07.2015 Views

Program Logic Manual - All about the IBM 1130 Computing System

Program Logic Manual - All about the IBM 1130 Computing System

Program Logic Manual - All about the IBM 1130 Computing System

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Acknowledge and Receive. If <strong>the</strong> operation is anAcknowledge and Receive, SCAT11. puts <strong>the</strong> addresses of <strong>the</strong> read response, writeresponse, and timeout routines for <strong>the</strong> Receiveoperation into <strong>the</strong> interrupt branch addresses2. determines <strong>the</strong> type of acknowledgement to betransmitted from digit 2 of <strong>the</strong> control parameter(digit 2 zero indicates a positive acknowledgement,non-zero indicates a negative acknowledgment)3. performs a Start Write (puts <strong>the</strong> SCA in <strong>the</strong>transmit mode and causes a write responseinterrupt)4. sets <strong>the</strong> retry counter to 75. sets RTBSY on (non-zero)0, returns to <strong>the</strong> calling routine at LIBF+4ErrorsWhen SCAT1 detects an error in <strong>the</strong> calling processing,a code indicating <strong>the</strong> error found is placed in<strong>the</strong> accumulator, <strong>the</strong> address of <strong>the</strong> LIBF is placedinto location 40 in COMMA, and a branch is takento location 41, a WAIT. When PROGRAM STARTis pressed, a branch is taken to <strong>the</strong> address inlocation 40 (i.e. , <strong>the</strong> LIBF is re-executed).Interrupt ProcessingThe interrupt processing routine• Handles read response, write response, andtimeout interrupts for <strong>the</strong> Open, Transmit, andReceive operations• Handles <strong>the</strong> auto answer request interrupt• Maintains an error statistics log of certain error• Is able to log timeouts and all characters transmittedand receivedOperationThe paragraphs below describe <strong>the</strong> processing performedby SCAT1 to accomplish an entire operation(Open-Data In, Open-Data Out, Transmit, orAcknowledge and Receive). Actually, this processingis accomplished in a series of interrupts initiated by<strong>the</strong> user's call to SCAT1.An interrupt occurs for each character receivedor transmitted. SCAT1, by means of programmedindicators, keeps track of <strong>the</strong> characters to bereceived or transmitted next. After transmissionor reception of each character, SCAT1 returns to<strong>the</strong> interrupted program.At <strong>the</strong> completion of an entire operation, a turnaroundof <strong>the</strong> line occurs and IDLE characters aretransmitted for 1.5 seconds. During this 1.5seconds <strong>the</strong> user must call SCAT1, specifying <strong>the</strong>next operation to be performed.When entered from ILSO1 due to an interrupt by<strong>the</strong> SCA, SCAT1 senses <strong>the</strong> device status word todetermine <strong>the</strong> type of interrupt.Write Response Interrupt. If a write responseinterrupt has occurred, SCAT11. branches to <strong>the</strong> write response routine pointedto by <strong>the</strong> interrupt response addresses as setup in <strong>the</strong> call processingRead Response Interrupt. If a read responseinterrupt has occurred, SCAT11. checks to determine if a simultaneous timeoutinterrupt has occurred2. branches to <strong>the</strong> timeout routine pointed to by<strong>the</strong> interrupt response addresses as set up in<strong>the</strong> call processing if a simultaneous timeoutinterrupt has occurred3. reads <strong>the</strong> character received by <strong>the</strong> SCA intocore storage if no simultaneous timeoutinterrupt has occurred4. branches to <strong>the</strong> read response routine pointedto by <strong>the</strong> interrupt response addresses as §etup in <strong>the</strong> call processingTimeout Interrupt. If a timeout interrupt has occurred,SCAT11. branches to <strong>the</strong> timeout routine pointed to by <strong>the</strong>interrupt response addresses as set by <strong>the</strong>call processingAuto Answer Interrupt. If an auto answer interrupthas occurred, SCAT11. determines from bit 6 of <strong>the</strong> DSW if <strong>the</strong> autoanswer interrupt is disabled/enabled (bit 6zero indicates disabled, 1 enabled)2. returns to ILSO1 if <strong>the</strong> auto answer interruptis disabled3. stores a non-zero value at <strong>the</strong> I/O area addressif <strong>the</strong> auto answer interrupt is enabled4. disables <strong>the</strong> auto answer interrupt5. returns to ILSO1Write Response (Open). If <strong>the</strong> mode of operationis Data In, <strong>the</strong> write response routine1. transmits <strong>the</strong> End of Idle sequence2. performs a Start Read (puts <strong>the</strong> SCA in <strong>the</strong>1 08. 1

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

Saved successfully!

Ooh no, something went wrong!