QC011             0                    1                     2                     3                     4                     5                     6                     7                     8                     9

                                                                                                                                   This routine contains the completion of CAW check for
                                                                                                                                   the Start I/O instruction and the final breakout of SIO 
A                                                                                                                                  and TIO to the designated channel routines, also found
                                                                                                                                   on this page is the Transfer-in-Channel (TIC) routine
                                                                                                                                   used when specified in command-chaining (CC) and data
                                                                                                                                   chaining (CDA). TIC is an illegal initial command (the
                                                                                                                                   CAW cannot legally specify a 1st CCW which contains a
                                                                                                                                   TIC command-format XXXX1000).
B
                                                                                                                                   On TIC error (bad format or address S2=1) we update the
                                                    10 --- 058A           11 006 050B           00 --- 050C                        next CCW address in the UCW +8 in preparation for
                                                |             |       |             |       |             |                        a full CSW store. If no error we update UCW
                                                A R>Z         |       A RL>Z        |       A UL!RH>U     |                        and IJ with the new CCW address +8 as
C   QC001.JHE-------------------------------O---S T>MN     MS S*------S WRITE       |*------|             |*---                    specified by the TIC.
    (11,10)                                 |   C ANSNZ>S2    |       C ANSNZ>S2    |       |             |   |
    CAW handling                            |   |             |       |          006V       |             |   |
    routine for                             |   R 1,1       0BR       R 0,0       0CR       R 1,0       72R   |
    Start IO-                               |   C2--    11 --CB       C3--    00 --CC       C4--    10 --CD   |
    MP portion                              |  A8-Mem Prot           Chk lo 4 bits         Load prot tag      |
D                                           |  byte in CAW           must be zero          into U high        |
                                            ------------------------------------------------------------------+----------------------
                                                                                                              |       10 --- 0572   |       11 --- 058B
                                                                                                              |   K 0111        |   ---*K 0111,1      |
                                                                                                              |   A U.KL>Z      |       A 0+KL>LC     |
E   QC351.EHE-------------------------------------------------------------------------------------------------O---S IJ>MN    MS S*--O---S WRITE       |*-------------------------------------------------------------------------------QD461------EFE
    (10)                                                                                                          C ANSNZ>S2    |   |   C 1>S7        |                                                                                (01) JB
    IPL entry                                                                                                     |             |   |   |             |                                                                                Program err
    to Start IO                                                                                                   R S2,1      89R   |   R 0,CA0A>W  89R                                                                                Interrupt
    routine                                                                                                       E5--    *1 --EE   |   E6--    01 --EF                                                                                exit
                                                                                                                 Chk chnl addr      |  CAW format bad                                                                                  L=07
F                                                                                                                in U lo for 000    |
    QC001.LDE-------------------------------------------------------------------------------------------------   Begin access       |
    (01)                                                                                                     |   to CCW cmd         |       01 --- 0589           11 014 058F
    From Test                                                                                                |   byte--000          |   K 1001,0      |       K 1001,1      |
    IO or Intrpt                                                                                             |                      |   A J+0+1>J     |       A UL>Z        |
G   initialization                                                                                           -----------------------O---S WRITE       |*--O---|         K>W R*--O------------------------------------------------------QD131------GGE
                                                                                                                                        C K>FB        |   |   |             |   |                                                      (11)
                                                                                                                                        |             |   |   |          014V   |                                                      Selr ch
                                                                                                                                        R S2,G7     8CR   |   R S4,1      1BR   |                                                      I-O commands
                                                                                                                                        G6--    ** --GF   |   G7--    *1 --GG   |
                                                                                                                                       Good CAW pnt       |  Selr TIO cmd       |
H                                                                                                                                      Load XH,XL=00      |  or interrupt       |
                                                                                                                                                          |                     |
                                                    00 --- 0544           10 --- 0512                                                                     |       10 014 058E   |
    QC131.LHE----------------------------------*K 0010        |       K 0111        |                                                                     |   K 1001,1      |   |
    (00)                                        A J+KL>J      |       A J!KL>J      |                                                                     |   A UL>Z        |   |
J   Enter CCW                                   S IJ>MN    MS S*--O---S WRITE       |*---                                                                 O---|         K>W R---O------------------------------------------------------QD011------GGE
    chk routine                                 |             |   |   |             |   |                                                                 |   |             |                                                          (01)
    from command                            ---*|             |   |   |             |   |                                                                 |   |             |                                                          Selr ch
    chaining                                |   R 1,Z=0     12R   |   R 0,0       1CR   |                                                                 |   R 0,1       19R                                                          I-O commands
    S0=0                                    |   J2--    1* --JB   |   J3--    00 --JC   |                                                                 |   J7--    *1 --JG    
                                            |  CCW byte 1         |  No TIC             |                                                                 |  Selr Stt IO
K                                           |  (must be zero)     |                     |                                                                 |
    QC101.CGE--------------------------------  BR on TIC cmd      |                     ------------------------------------------------------------------+----------------------------------------------------------------------------QC021------JCE
    (00)                                                          |       11 --- 0513                                 10 --- 0526                         |                                                                            (00) JD
    Enter TIC                                                     |   |             |                             K 1001,1      |                         |                                                                            Enter CCW cmd
    check rtne                                                    |   A R>Z         |                             A 0+KL>L      |                         |                                                                            routine
L   from CDA                                                      ----S WRITE       |*---                     ----|             |*------------------------+----------------------------------------------------------------------------QC461------LEE
    routine                                                           C ANSNZ>S2    |   |                     |   C 1>S7        |                         |                                                                            (01,11) JB,NB
                                                                      |             |   |                     |   |             |                         |                                                                            Program err
                                                                      R 0,1       19R   |                     |   R ?0,CA0A>W 89R                         |                                                                            interrupt
                                                                      L3--    01 --LC   |                     |   L5--    *1 --LE                         |                                                                            Exit-L=09
                                                                     TIC on chaning     |                     |  TIC cmd format                           |
M                                                                    Chk byte 1 for NZ  |                     |  bad-bad addr                             |
                                            ---------------------------------------------                     -------------------------                   |
                                            |       01 --- 0519           01 --- 0821                                                 |     00 --- 0524   |       00 --- 058C
                                            |   K 0011,1      |       K 0111        |                                                 | |             |   O---K 1000        |
                                            |   A J^KL>J      |       A RL.KL>Z     |                                                 | A J+0+1>JC    |   |   A RL^KL>Z     |
N                                           ----S IJ>MN    MS S*------S WRITE       |*---                                             O-S IJ>MN    MS S*--+---S WRITE       |*---------------------------------------------------------QC021------NGE
                                                |             |       C ANSNZ>S2    |   |                                             | |             |   |   |             |                                                          (00) EB
                                                |             |       |             |   |                                             | |             |   |   |             |                                                          TIC complete
                                                R 0,1       21R       R 0,1       0DR   |                                             | R 0,0       8CR   |   R 0,0       1?R                                                          Enter CCW chk
                                                N2--    01 --NB       N3--    01 --NC   |                                             | N6--    00 --NF   |   N7--    00 --NG                                                          routine
                                               CCW byte 3            Chk lo 3 bits      |                                             |Read-out CCW       |  SIO or Chain
P                                              New CCW adr lo        for non zero       |                                             |op byte 0          |  Chk for TIC
                      -------------------------------------------------------------------                                             |                   |
                      |       01 --- 050D           00 --- 0522           01 --- 05AD           11 --- 05CB           .00--- 0510     | New CCW addr      |       01 --- 058D           01 --- 0561
                      |   K 0111        |       K 1000        |       K 0001        |       |             |       |             |     | is now in IJ      |   |             |       K 1001,0      |
                      |   A T!KL>T      |       A J+KL>RC     |       A T^KL>T      |       A I+0+C>RC    |       |             |     |                   |   A 0>S         |       A 0-0>L       |
Q                     ---*|             |*--O---S T>MN    MPX S*------S STORE       |*------S T>MN    MPX S*------S STORE       |*-----                   ----|             |*------|             |*-----------------------------------QC041------QHE
                          |             |   |   |             |       |             |       |             |       |             |                             |             |       C K>FB        |                                    (01) ED
                          |             |   |   |             |       |             |       |             |       |             |                             |             |       |             |                                    Enter T addr
                          R S2,0      20R   |   R 0,1       ADR       R 1,1       CBR       R 0,0       10R       R S2,0      24R                             R 0,1       61R       R 0,1       9?R                                    formation
                          Q1--    *0 --QA   |   Q2--    01 --QB       Q3--    11 --QC       Q4--    00 --QD       Q5--    *0 --QE                             Q7--    01 --QG       Q8--    01 --QH                                    routine-TIO
                                            |                                                                                                                Mplx chnl TIO         Set L=FF as
R                                           --------------------------------------------O------------------------------------------------------------------  or interrupt          a mask for
                                                                                        |                                                                 |                        later use,
                                                                                        |       00 --- 0520           01 --- 0541           11 --- 0543   |                        XXH,XH,XL=000
                    This version for system with                                        |   K 0010        |       |             |       |             |   |
                    memory protect and with at least                                    |   A J!KL>J      |       A R>J         |       A R>Z         |   |
S                   one selector channel                                                ----|             |*------S IJ>MN    MS S*------S WRITE       |----
                                                                                            |             |       |             |       |             |
 Q                                                                                          |             |       |             |       |             |
 C                                                                                          R 0,1       41R       R 1,1       43R       R 1,0       22R
 0                                                                                          S4--    01 --SD       S5--    11  -SE       S6--    *0 --SF
 1                                                                                                                                                | 128065        07/26/67 | Mach          2030       | Date  09/24/68          Sheet    1  QC011 |
 1                                                                                                                                                | 128066        11/14/67 | Name                     | Log    2016             Version    A03    |
                                                                                                                                                  | 128069        09/09/68 | Mode          Manual     |                                           |
                                                                                                                                                  |                        | P.N.          837142     |    Selector Cnl op breakout               |
                                                                                                                                                  |                        | IBM Corp.     SDD        |    and Mplx Cnl TIC routine               |