Attention Interrupt Processing Routine

The entry conditions for the Attention Interrupt Processing exit routine vary for ASCII-type links or TCPASCII-type links.

For ASCII-type links, an attention interrupt is generated each time RSCS sends a data buffer. RSCS performs a Read Modified operation each time it receives an attention interrupt. This is required by the 7171 ASCII Device Attachment Control Unit to obtain the Attention Identifier (AID) byte. A null AID (X'E8') is usually returned. If the ASCII device has a keyboard, the attention generating keys (ENTER, PF key, or PA) can change the value of the AID. The exit routine can examine the AID byte and optionally pass a RSCS command back to the link driver for execution.

A TCPASCII-type link does not receive a single AID character. Rather, the exit is passed all data received from the terminal server as it arrives on the link.

If your routine passes a command to RSCS for execution, it must use the workstation operator form of the command. The length and address of the command are returned in registers 0 and 1. Setting register 0 to zero means that no command is to be processed and the default PF key commands are to be ignored. The only way to have RSCS use the default PF key commands is not to code an attention interrupt processing exit routine. A command length that is negative or exceeds 80 bytes terminates the link with user ABEND 012.

Entry Conditions

Register Contents
R0 Not applicable
R1 Address of a parameter list that contains:
Word 1 (+0)
Address of the CVT
Word 2 (+4)
Address of the LINKTABL entry
Word 3 (+8)
0
Word 4 (+12)
Address of the TAG element
Word 5 (+16)
Address of the EPARM value
Word 6 (+20)
Content varies, depending on the link type:
ASCII-type:
Address of the Attention Identifier (AID).
TCPASCII-type:
Address of a 1-byte field containing the length of the received data; the actual data follows.
Word 7 (+24)
Address of the work area established by the initialization routine
R2 - R12 Not applicable
R13 Save area address
R14 Return address
R15 Entry address

Exit Conditions

On return, this routine sets the register conditions described in Exit Conditions.