Source Code

These source-code files were derived from scans of the Colossus 237 (Apollo 8 Command Module) program listing from the private collection of original AGC developer Fred Martin. Scanning was by Ron Burkey. Pre-existing Colossus 249 (Apollo 9 CM) source files were used as a template, and changes between Colossus 249 and Colossus 237 were manually transcribed by a team of volunteers. Note that the page images presented online are of reduced quality, and that additional images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP: ASSEMBLE REVISION 237 OF AGC PROGRAM COLOSSUS 
	BY NASA 2021111-031  1:17 AUG. 24, 1968
Note that the date is the date of the printout, not the date of the program revision.

022710,000002:                                                                                                  ## Copyright:   Public domain.
022711,000003:                                                                                                  ## Filename:    P11.agc
022712,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus build 237.
022713,000005:                                                                                                  ##              This is for the Command Module's (CM) Apollo Guidance
022714,000006:                                                                                                  ##              Computer (AGC), for Apollo 8.
022715,000007:                                                                                                  ## Assembler:   yaYUL
022716,000008:                                                                                                  ## Contact:     Jim Lawton <jim DOT lawton AT gmail DOT com>
022717,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
022718,000010:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Colossus237/
022719,000011:                                                                                                  ## Mod history: 2011-02-06 JL   Adapted from corresponding Colossus 249 file.
022720,000012:                                                                                                  ##              2016-08-14 RSB  Added SBANKs for addressing discrepancies.
022721,000013:                                                                                                  ##              2016-12-31 RSB  Proofed comment text using octopus/ProoferComments,
022722,000014:                                                                                                  ##                              and corrected errors found.
022723,000015:                                                                                                  ##              2017-01-15 RSB  Corrected comment-text errors observed while
022724,000016:                                                                                                  ##                              diff'ing vs Colossus 249.
022725,000017:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
022726,000018: 

Page 522

022728,000020:                                                                                                  #  EARTH ORBIT INSERTION MONITOR PROGRAM
022729,000021:                                                                                                  #  *************************************
022730,000022: 
022731,000023:                                                                                                  #  PROGRAM DESCRIPTION -P11-
022732,000024: 
022733,000025:                                                                                                  #      MOD NO. 1
022734,000026:                                                                                                  #      MOD BY ELIASSEN
022735,000027: 
022736,000028:                                                                                                  #  FUNCTIONAL DESCRIPTION
022737,000029: 
022738,000030:                                                                                                  #      P11 IS INITIATED BY
022739,000031: 
022740,000032:                                                                                                  #            A) GYROCOMPASS PRG P02 WHEN LIFTOFF DISCRETE IS RECEIVED OR
022741,000033:                                                                                                  #            B) BACKUP THRU VERB 75 ENTER
022742,000034: 
022743,000035:                                                                                                  #      PROGRAM WILL
022744,000036:                                                                                                  #           1. ZERO CMC CLOCK AT LIFTOFF (OR UPON RECEIPT OF BACKUP)
022745,000037:                                                                                                  #           2. UPDATE TEPHEM TO TIME CMC CLOCK WAS ZEROED
022746,000038:                                                                                                  #           3. INITIATE SERVICER AT PREREAD1
022747,000039:                                                                                                  #           4. CHANGE MAJOR MODE TO 11
022748,000040:                                                                                                  #           5. CLEAR DSKY IN CASE OF V 75
022749,000041:                                                                                                  #           6. STORE LIFTOFF IMU-CDU ANGLES FOR ATT. ERROR DISPLAY
022750,000042:                                                                                                  #           7. TERMINATE GYROCOMPASSING -   -
022751,000043:                                                                                                  #           8. COMPUTE INITIAL VECTORS  RN, VN                -  -  -
022752,000044:                                                                                                  #           9. COMPUTE REFSMMAT FOR PRELAUNCH ALIGNMENT WHERE U ,U ,U  ARE
022753,000045:                                                                                                  #                  -        -                                  X  Y  Z
022754,000046:                                                                                                  #                  U =UNIT(-R) LOCAL VERTICAL AT TIME OF LIFTOFF
022755,000047:                                                                                                  #                   Z
022756,000048:                                                                                                  #                  -        -   -
022757,000049:                                                                                                  #                  U =UNIT (A), A=HOR VECTOR AT LAUNCH AZIMUTH
022758,000050:                                                                                                  #                   X
022759,000051:                                                                                                  #                  -  -   -
022760,000052:                                                                                                  #                  U =U * U
022761,000053:                                                                                                  #                   U  Z   X
022762,000054: 
022763,000055:                                                                                                  #           10. SET REFSMMAT KNOWN FLAG
022764,000056:                                                                                                  #           11. SET AVGEXIT IN SERVICER TO VHHDOT TO
022765,000057:                                                                                                  #               COMPUTE AND DISPLAY NOUN 62 EVERY 2 SECONDS
022766,000058: 
022767,000059:                                                                                                  #               R1  V1  - INTERTIAL VELOCITY MAGNITUDE IN FPS
022768,000060:                                                                                                  #               R2  HDOT - RATE OF CHANGE OF VEHICLE VEL IN FPS
022769,000061:                                                                                                  #               R3  H    - VEHICLE ALTITUDE ABOVE PAD IN NM
022770,000062: 
022771,000063:                                                                                                  #           12. DISPLAY BODY AXES ATT. ERRORS ON FDAI NEEDLES
022772,000064: 
022773,000065:                                                                                                  #               A) FROM L.O. TO RPSTART (APPROX. 0 TO +10SECS AFTER L.O.)
022774,000066:                                                                                                  #                  DESIRED ATTITUDE IS AS STORED AT L.O.
022775,000067:                                                                                                  #               B) FROM RPSTART TO POLYSTOP (APPROX. +10 TO +133SECS AFTER LO)
022776,000068:                                                                                                  #                  DESIRED ATTITUDE IS SPECIFIED BY CMC PITCH AND ROLL
022777,000069:                                                                                                  #                  POLYNOMIALS DURING SATURN ROLLOUT AND PITCHOVER
022778,000070: 

Page 523

022780,000072:                                                                                                  #                  THE DISPLAY IS RUN AS LOW PRIORITY JOB APPROX.
022781,000073:                                                                                                  #                  EVERY 1/2 SEC OR LESS AND IS DISABLED UPON OVFLO OF TIME1
022782,000074: 
022783,000075:                                                                                                  #  SUBROUTINES CALLED
022784,000076: 
022785,000077:                                                                                                  #           2PHSCHNG  BANKCALL  CALCGRA   CDUTRIG   CLEANDSP  DANZIG
022786,000078:                                                                                                  #           DELAYJOB  EARTHR    ENDOFJOB  FINDVAC   IBNKCALL
022787,000079:                                                                                                  #           INTPRET   LALOTORV  NEEDLER   NEWMODEX  PHASCHNG
022788,000080:                                                                                                  #           POSTJUMP  POWRSERS  PREREAD1  REGODSPR  S11.1
022789,000081:                                                                                                  #           SERVEXIT  TASKOVER  TCDANZIG  V1ST02S   WAITLIST
022790,000082: 
022791,000083:                                                                                                  #  ASTRONAUT REQUESTS (IF ALTITUDE ABOVE 300,000 FT)
022792,000084: 
022793,000085:                                                                                                  #      DSKY -
022794,000086:                                                                                                  #           MONITOR DISPLAY OF TIME TO PERIGEE R1 HOURS
022795,000087:                                                                                                  #                                              R2 MINUTES
022796,000088: 
022797,000089:                                                                                                  #      DSKY -
022798,000090:                                                                                                  #           MONITOR DISPLAY OF R1 APOGEE ALTITUDE IN NAUTICAL MILES
022799,000091:                                                                                                  #                              R2 PERIGEE ALTITUDE IN NAUTICAL MILES
022800,000092:                                                                                                  #                              R3 TFF IN MINUTES/SECS
022801,000093: 
022802,000094:                                                                                                  #      IF ASTRONAUT HAS REQUESTED ANY OF THESE DISPLAYS HE MUST
022803,000095:                                                                                                  #      HIT KEY RELEASE BUTTON TO RETURN TO NORMAL NOUN 62 DISPLAY
022804,000096: 
022805,000097:                                                                                                  #  NORMAL EXIT MODE
022806,000098: 
022807,000099:                                                                                                  #      ASTRONAUT  VERB 37 ENTER 00 ENTER
022808,000100: 
022809,000101:                                                                                                  #  ALARM MODES - NONE
022810,000102: 
022811,000103:                                                                                                  #  ABORT EXIT MODES -
022812,000104: 
022813,000105:                                                                                                  #      EARLY BOOST ABORT FOLLOWED BY REENTRY   V 37 E 62 E
022814,000106:                                                                                                  #      LATE  BOOST ABORT FOLLOWED BY REENTRY   V 37 E 61 E
022815,000107: 
022816,000108:                                                                                                  #  OUTPUT
022817,000109: 
022818,000110:                                                                                                  #      TLIFTOFF (DP)  TEPHEM (TP)
022819,000111:                                                                                                  #      REFSMMAT
022820,000112:                                                                                                  #      DSKY DISPLAY
022821,000113:                                                                                                  #      FDAI DISPLAY
022822,000114: 
022823,000115:                                                                                                  #  ERASABLE INITIALIZATION
022824,000116: 
022825,000117:                                                                                                  #      AZO, AXO, -AYO
022826,000118:                                                                                                  #      LATITUDE
022827,000119:                                                                                                  #      PADLONG
022828,000120:                                                                                                  #      TEPHEM
022829,000121:                                                                                                  #      PGNCSALT

Page 524

022831,000123:                                                                                                  #      POLYNUM THRU POLYNUM +14D)
022832,000124:                                                                                                  #      RPSTART
022833,000125:                                                                                                  #      POLYSTOP
022834,000126:                                                                                                  #  FLAGS SET OR RESET
022835,000127: 
022836,000128:                                                                                                  #      SET REFSMFLG
022837,000129:                                                                                                  #      SET DVMON IDLE FLAG
022838,000130:                                                                                                  #      CLEAR ERADFLAG
022839,000131: 
022840,000132:                                                                                                  #  DEBRIS
022841,000133: 
022842,000134:                                                                                                  #      LIFTTEMP
022843,000135:                                                                                                  #      POLYNUM THRU POLYNUM +7
022844,000136:                                                                                                  #      SPOLYARG
022845,000137:                                                                                                  #      BODY1, BODY2, BODY3
022846,000138:                                                                                                  #      VMAG2, ALTI, HDOT
022847,000139:                                                                                                  #      CENTRALS, CORE SET AND VAC AREAS
022848,000140: 
022849,000141: 04,3444                                           COUNT    34/P11                                
022850,000142: 
022851,000143: 04,3444     4730               BITS5-6            =        SUPER011                              
022852,000144: 42,3521                                           BANK     42                                    
022853,000145: 34,2000                                           SETLOC   P11ONE                                
022854,000146: 34,2000                                           BANK                                           
022855,000147: 
022856,000148: 34,2002  E3,1706                                  EBANK=   TEPHEM                                
022857,000149: 34,2002           34744        P11                CA       EBANK3                                
022858,000150: 34,2003           54003                           TS       EBANK                                 
022859,000151: 
022860,000152: 34,2004           00006                           EXTEND                                         
022861,000153: 34,2005           32273                           DCA      REP11S                                #  DIRECT RESTARTS TO REP11
022862,000154: 34,2006           52757                           DXCH     -PHASE3                               
022863,000155: 34,2007           44714                           CS       ZERO                                  
022864,000156: 34,2010           22007                           ZL                                             
022865,000157: 34,2011           55265                           TS       LIFTTEMP                              
022866,000158: 34,2012           52763                           DXCH     -PHASE5                               #  INACTIVE GROUP 5, PRELAUNCH PROTECTION
022867,000159: 34,2013           00006        P11+7              EXTEND                                         
022868,000160: 34,2014           32275                           DCA      REP11SA                               
022869,000161: 34,2015           53337                           DXCH     TLIFTOFF                              
022870,000162: 
022871,000163: 34,2016           00006                           EXTEND                                         
022872,000164: 34,2017           30025                           DCA      TIME2                                 
022873,000165: 34,2020           53266                           DXCH     LIFTTEMP                              #  FOR RESTARTS
022874,000166: 
022875,000167: 34,2021           34714                           CA       ZERO                                  
022876,000168: 34,2022           22007                           ZL                                             
022877,000169: 34,2023           52025                           DXCH     TIME2                                 
022878,000170: 34,2024           53337        REP11A-2           DXCH     TLIFTOFF                              
022879,000171: 34,2025           52757        REP11A-1           DXCH     -PHASE3                               #  RESET PHASE
022880,000172: 

Page 525

022882,000174: 34,2026           00004        REP11A             INHINT                                         
022883,000175: 34,2027           00006                           EXTEND                                         
022884,000176: 34,2030           31710                           DCA      TEPHEM     +1                         
022885,000177: 34,2031           53271                           DXCH     TEPHEM1    +1                         
022886,000178: 34,2032           31706                           CA       TEPHEM                                
022887,000179: 34,2033           57267                           XCH      TEPHEM1                               
022888,000180: 
022889,000181: 34,2034           00006                           EXTEND                                         
022890,000182: 34,2035           31337                           DCA      TLIFTOFF                              
022891,000183: 34,2036           21271                           DAS      TEPHEM1    +1                         
022892,000184: 34,2037           27267                           ADS      TEPHEM1                               #  CORRECTOFOR OVERFLOW
022893,000185: 
022894,000186: 34,2040           05301                           TC       PHASCHNG                              
022895,000187: 34,2041           05023                           OCT      05023                                 
022896,000188: 34,2042           22000                           OCT      22000                                 
022897,000189: 
022898,000190: 34,2043           00004                           INHINT                                         
022899,000191: 34,2044           00006                           EXTEND                                         
022900,000192: 34,2045           31270                           DCA      TEPHEM1                               
022901,000193: 34,2046           53707                           DXCH     TEPHEM                                
022902,000194: 34,2047           31271                           CA       TEPHEM1    +2                         
022903,000195: 34,2050           57710                           XCH      TEPHEM     +2                         
022904,000196: 
022905,000197: 34,2051           32000                           CAF      EBDVCNT                               
022906,000198: 34,2052           54003                           TS       EBANK                                 
022907,000199: 34,2053  E7,1431                                  EBANK=   DVCNTR                                
022908,000200: 34,2053           04633                           TC       IBNKCALL                              
022909,000201: 34,2054           76631                           CADR     PREREAD1                              #  ZERO PIPS AND INITIALIZE AVERAGEG
022910,000202: 
022911,000203: 34,2055           05301                           TC       PHASCHNG                              
022912,000204: 34,2056           05023                           OCT      05023                                 #  CONTINUE HERE ON RESTART
022913,000205: 34,2057           22000                           OCT      22000                                 
022914,000206: 
022915,000207: 34,2060           34731                           CAF      .5SEC                                 #  START ATT ERROR DISPLAY
022916,000208: 34,2061           05140                           TC       WAITLIST                              #  IN .5 SEC
022917,000209: 34,2062  E6,1704                                  EBANK=   BODY3                                 
022918,000210: 34,2062           02314 70066                     2CADR    ATERTASK                              
022919,000211: 
022920,000212: 34,2064           05243                           TC       NEWMODEX                              #  DISPLAY MM 11
022921,000213: 34,2065           00013                           MM       11         B-14                       
022922,000214: 
022923,000215: 34,2066           04555                           TC       BANKCALL                              
022924,000216: 34,2067           20607                           CADR     CLEANDSP                              #  CLEAR DSKY IN CASE OF V75
022925,000217: 
022926,000218: 34,2070           05261                           TC       2PHSCHNG                              
022927,000219: 34,2071           40514                           OCT      40514                                 #  PROTECT ATERTASK
022928,000220: 34,2072           00073                           OCT      00073                                 
022929,000221: 34,2073           32001                           CAF      EBQPLACE                              
022930,000222: 34,2074           54003                           TS       EBANK                                 

Page 526

022932,000224: 34,2075  E5,1426                                  EBANK=   QPLACES                               
022933,000225: 34,2075           32276                           CA       P11XIT                                #  SET EXIT FROM PROUT IN EARTHR
022934,000226: 34,2076           55426                           TS       QPLACES                               
022935,000227: 34,2077           22007                           ZL                                             #  STORE DP GIMBAL
022936,000228: 34,2100           30032                           CA       CDUX                                  #  ANGLES FOR ATTITUDE
022937,000229: 34,2101           53760                           DXCH     OGC                                   #  ERROR DISPLAY
022938,000230: 34,2102           22007                           ZL                                             #  AFTER L.O.
022939,000231: 34,2103           30033                           CA       CDUY                                  
022940,000232: 34,2104           53762                           DXCH     IGC                                   
022941,000233: 34,2105           22007                           ZL                                             
022942,000234: 34,2106           30034                           CA       CDUZ                                  
022943,000235: 34,2107           53764                           DXCH     MGC                                   
022944,000236: 34,2110           06006                           TC       INTPRET                               #        -
022945,000237: 34,2111           74575                           VLOAD    VSR1                                  #  SCALE OGC B-1
022946,000238: 34,2112           02760                                    OGC                                   
022947,000239: 34,2113           02760                           STORE    OGC                                   
022948,000240: 34,2114           64375                           VLOAD    MXV                                   
022949,000241: 34,2115           02467                                    THETAN                                
022950,000242: 34,2116           02672                                    XSM                                   
022951,000243: 34,2117           53372                           VSL1     VAD                                   
022952,000244: 34,2120           02650                                    ERCOMP                                
022953,000245: 34,2121           16650                           STODL    ERCOMP                                
022954,000246: 34,2122           01337                                    TLIFTOFF                              
022955,000247: 34,2123           52131                           SSP      GOTO                                  
022956,000248: 34,2124           00052                                    S2                                    
022957,000249: 34,2125           66424                           CADR     PROUT                                 #  RETURN FROM EARTHR
022958,000250: 34,2126           66373                                    EARTHR     +3                         
022959,000251: 34,2127           06006        MATRXJOB           TC       INTPRET                               
022960,000252: 34,2130           77731                           SSP                                            #  ZERO RTX2
022961,000253: 34,2131           03747                                    RTX2                                  #  FOR
022962,000254: 34,2132           00000                                    0                                     #  EARTH
022963,000255: 34,2133           65345                           DLOAD    PDDL                                  
022964,000256: 34,2134           01273                                    PGNCSALT                              #  ALTITUDE OF PGNCS
022965,000257: 34,2135           01264                                    PADLONG                               #  LONGITUDE
022966,000258: 34,2136           55525                           PDDL     VDEF                                  
022967,000259: 34,2137           02403                                    LATITUDE                              #  GEODETIC LATITUDE
022968,000260: 34,2140           15104                           STODL    LAT                                   #  LAT,LONG,ALT ARE CONSECUTIVE
022969,000261: 34,2141           15332                                    HI6ZEROS                              #  TIME = 0
022970,000262: 34,2142           45014                           CLEAR    CALL                                  
022971,000263: 34,2143           00662                                    ERADFLAG                              
022972,000264: 34,2144           26373                                    LALOTORV                              #  CONVERT TO POSITION VECTOR IN REF.COORDS
022973,000265: 
022974,000266: 34,2145           35232                           STCALL   RN1                                   #               -
022975,000267: 34,2146           77260                                    CALCGRAV                              #  RETURN WITH GRAVITY
022976,000268: 34,2147           77656                           UNIT                                           #  IN MPAC
022977,000269: 34,2150           25752                           STOVL    REFSMMAT   +12D                       #  UNITZ = UNIT(GRAV)
022978,000270: 34,2151           01232                                    RN1                                   
022979,000271: 34,2152           74235                           VXV      VXSC                                  
022980,000272: 34,2153           01714                                    UNITW                                 #  SCALED AT 1
022981,000273: 34,2154           30300                                    -ERTHRAT                              #  V = EARTHRATE X R

Page 527

022983,000275: 34,2155           77712                           VSL4                                           #  SCALE TO 2(7) M/CS
022984,000276: 34,2156           25240                           STOVL    VN1                                   
022985,000277: 34,2157           01752                                    REFSMMAT   +12D                       
022986,000278: 34,2160           53435                           VXV      UNIT                                  
022987,000279: 34,2161           01714                                    UNITW                                 #  (REF3 X UNITW) = EAST
022988,000280: 34,2162           47206                           PUSH     VXV                                   
022989,000281: 34,2163           01752                                    REFSMMAT   +12D                       #   (EAST X REF3) = -SOUTH
022990,000282: 34,2164           65256                           UNIT     PDDL                                  
022991,000283: 34,2165           02634                                    LAUNCHAZ                              #   COS(AZ)*SOUTH
022992,000284: 34,2166           74346                           COS      VXSC                                  
022993,000285: 34,2167           77626                           STADR                                          
022994,000286: 34,2170           62041                           STODL    REFSMMAT                              #  TEMPORARY STORAGE
022995,000287: 34,2171           02634                                    LAUNCHAZ                              
022996,000288: 34,2172           74356                           SIN      VXSC                                  #   SIN(AZ)*EAST
022997,000289: 34,2173           53455                           VAD      UNIT                                  #   SIN(AZ)*EAST - COS(AZ)*SOUTH = REF1
022998,000290: 34,2174           01736                                    REFSMMAT                              
022999,000291: 34,2175           01736                           STORE    REFSMMAT                              
023000,000292: 
023001,000293: 34,2176           53435                           VXV      UNIT                                  #   (REF1 X REF3) = -REF3
023002,000294: 34,2177           01752                                    REFSMMAT   +12D                       
023003,000295: 34,2200           77676                           VCOMP                                          
023004,000296: 34,2201           01744                           STORE    REFSMMAT   +6                         
023005,000297: 34,2202           45345                           DLOAD    DSU                                   
023006,000298: 34,2203           15330                                    DPHALF                                #  1/2 REV
023007,000299: 34,2204           02634                                    LAUNCHAZ                              
023008,000300: 34,2205           65215                           DAD      PDDL                                  
023009,000301: 34,2206           02401                                    AZIMUTH                               
023010,000302: 34,2207           03301                                    SATRLRT                               #  SET  SATRLRT = -SATRLRT IF
023011,000303: 34,2210           45565                           SIGN     STADR                                 #  (1/2REV -LAVNCHAZ +AZIMUTH) IS NEGATIVE
023012,000304: 34,2211           74476                           STORE    SATRLRT                               #  FOR ROLL CALC IN FDAI ATT. ERROR DISPLAY
023013,000305: 34,2212           77414                           SET      EXIT                                  
023014,000306: 34,2213           01462                                    REFSMFLG                              #  SET REFSMMAT KNOWN FLAG
023015,000307: 
023016,000308: 34,2214           05301                           TC       PHASCHNG                              
023017,000309: 34,2215           04023                           OCT      04023                                 
023018,000310: 
023019,000311: 34,2216           00006                           EXTEND                                         
023020,000312: 34,2217           32302                           DCA      P11SCADR                              
023021,000313: 34,2220           53223                           DXCH     AVGEXIT                               #  SET AVGEXIT
023022,000314: 
023023,000315: 34,2221           37665                           CA       PRIO31                                #  2 SECONDS AT 2(+8)
023024,000316: 34,2222           55074                           TS       1/PIPADT                              
023025,000317: 
023026,000318: 34,2223  E6,1501                                  EBANK=   RCSFLAGS                              
023027,000319: 34,2223           34752                           CA       EBANK6                                
023028,000320: 34,2224           54003                           TS       EBANK                                 
023029,000321: 
023030,000322: 34,2225           00004                           INHINT                                         
023031,000323: 34,2226           44714                           CS       ZERO                                  
023032,000324: 34,2227           55063                           TS       TBASE5                                #  RESTART READACCS 2 SECONDS AFTER LIFTOFF

Page 528

023034,000326: 34,2230           40025                           CS       TIME1                                 
023035,000327: 34,2231           64735                           AD       2SECS                                 #  DO READACCS 2 SECONDS AFTER LIFTOFF
023036,000328: 
023037,000329: 34,2232           10000                           CCS      A                                     #  CHECK TO INSURE DT IS POSITIVE
023038,000330: 34,2233           12236                           TCF      +3                                    #  TIME POSITIVE
023039,000331: 34,2234           12236                           TCF      +2                                    #  CANNOT GET HERE
023040,000332: 34,2235           34714                           CA       ZERO                                  #  TIME NEGATIVE - SET TO 1
023041,000333: 34,2236           64712                           AD       ONE                                   #  RESTORE TIME  -  OR MAKE POSITIVE
023042,000334: 
023043,000335: 34,2237           05140                           TC       WAITLIST                              
023044,000336: 34,2240  E6,1661                                  EBANK=   AOG                                   
023045,000337: 34,2240           02653 76066                     2CADR    READACCS                              
023046,000338: 34,2242           05261                           TC       2PHSCHNG                              
023047,000339: 34,2243           00003                           OCT      00003                                 #  TURN OFF GROUP 3
023048,000340: 34,2244           00025                           OCT      00025                                 #  PROTECT NORMLIZE AND READACCS
023049,000341: 
023050,000342: 34,2245           04574                           TC       POSTJUMP                              
023051,000343: 34,2246           77145                           CADR     NORMLIZE                              #  DO NORMLIZE AND ENDOFJOB
023052,000344: 
023053,000345: 
023054,000346: 34,2247  E3,1706                                  EBANK=   TEPHEM                                
023055,000347: 34,2247           00004        REP11              INHINT                                         
023056,000348: 34,2250           10763                           CCS      PHASE5                                
023057,000349: 34,2251           05112                           TC       ENDOFJOB                              
023058,000350: 
023059,000351: 34,2252           11265                           CCS      LIFTTEMP                              
023060,000352: 34,2253           12257                           TCF      +4                                    
023061,000353: 34,2254           12257                           TCF      +3                                    
023062,000354: 34,2255           12257                           TCF      +2                                    
023063,000355: 34,2256           12013                           TCF      P11+7                                 
023064,000356: 
023065,000357: 34,2257           41336                           CS       TLIFTOFF                              
023066,000358: 34,2260           00006                           EXTEND                                         
023067,000359: 34,2261           62267                           BZMF     ENDREP11                              
023068,000360: 
023069,000361: 34,2262           10024                           CCS      TIME2                                 #  **TIME2 MUST BE NON-ZERO AT LIFTOFF**
023070,000362: 34,2263           12021                           TCF      REP11A     -5                         #  T2,T1 NOT YET ZEROED, GO AND DO IT
023071,000363: 
023072,000364: 34,2264           00006                           EXTEND                                         #  T2,T1 ZEROED, SET TLIFTOFF
023073,000365: 34,2265           31266                           DCA      LIFTTEMP                              
023074,000366: 34,2266           12024                           TCF      REP11A-2                              
023075,000367: 
023076,000368: 34,2267           00006        ENDREP11           EXTEND                                         
023077,000369: 34,2270           32275                           DCA      REP11SA                               
023078,000370: 34,2271           12025                           TCF      REP11A-1                              
023079,000371: 
023080,000372: 
023081,000373: 34,2272           77766 00011  REP11S             2OCT     77766      00011                      

Page 529

023083,000375: 34,2274           77764 00013  REP11SA            2OCT     77764      00013                      
023084,000376: 
023085,000377: 
023086,000378: 34,2276           02451        P11XIT             GENADR   P11OUT                                
023087,000379: 34,2277           71704 41735  -ERTHRAT           2DEC*    -7.292115138 E-7        B18*            #  - EARTH RATE AT 2(18)
023088,000380: 34,2301  E6,1704                                  EBANK=   BODY3                                 
023089,000381: 34,2301           02303 70066  P11SCADR           2CADR    VHHDOT                                
023090,000382: 34,2303  E6,1704                                  EBANK=   BODY3                                 
023091,000383:                                                                                                  #  VHHDOT IS EXECUTED EVERY 2 SECONDS TO DISPLAY ON DSKY
023092,000384:                                                                                                  #                      VI INERTIAL VELOCITY MAGNITUDE
023093,000385:                                                                                                  #                      HDOT  RATE OF CHANGE OF ALT ABOVE L PAD RADIUS
023094,000386:                                                                                                  #                      H   ALTITUDE ABOVE L PAD RADIUS
023095,000387: 
023096,000388: 34,2303           06006        VHHDOT             TC       INTPRET                               
023097,000389: 34,2304           77624                           CALL                                           #  LOAD VMAGI, ALTI,
023098,000390: 34,2305           70436                                    S11.1                                 #  HDOT FOR DISPLAY
023099,000391: 34,2306           77776                           EXIT                                           
023100,000392: 34,2307           32511                           CAF      V06N62                                #  DISPLAY IN R1   R2    R3
023101,000393: 34,2310           04555                           TC       BANKCALL                              #             VI   HDOT  H
023102,000394: 34,2311           20621                           CADR     REGODSPR                              #  DISPLAY INTERFACE - IMMEDIATE RETURN
023103,000395: 34,2312           04555                           TC       BANKCALL                              
023104,000396: 34,2313           77136                           CADR     SERVEXIT                              #  END OF P11SERVE CYCLE
023105,000397: 34,2314           34701        ATERTASK           CAF      PRIO1                                 #  ESTABLISH JOB TO DISPLAY ATT ERRORS
023106,000398: 34,2315           05042                           TC       FINDVAC                               #  COMES HERE AT L.O. + .33 SEC
023107,000399: 34,2316  E6,1704                                  EBANK=   BODY3                                 
023108,000400: 34,2316           02326 70066                     2CADR    ATERJOB                               
023109,000401: 34,2320           41501                           CS       RCSFLAGS                              #  SET BIT3 FOR
023110,000402: 34,2321           74710                           MASK     BIT3                                  #  NEEDLER
023111,000403: 34,2322           27501                           ADS      RCSFLAGS                              #  INITIALIZATION PASS
023112,000404: 34,2323           04633                           TC       IBNKCALL                              #  AND GO
023113,000405: 34,2324           42404                           CADR     NEEDLER                               #  DO IT
023114,000406: 34,2325           05213                           TC       TASKOVER                              
023115,000407:                                                                                                  #  THIS SECTION PROVIDES ATTITUDE ERROR DISPLAYS TO THE FDAI DURING SONE BOOST
023116,000408: 
023117,000409:                                                                                                  #                                          COMPUTE DESIRED PITCH W.R.T. LAUNCH SITE LOCAL VERTICAL.
023118,000410:                                                                                                  #                                          PITCH = -.0000469184028+.00137571556*T+.0231502280*T*T-.0205929365*T*T*T
023119,000411:                                                                                                  #                                                  SCALED TO 32 REVOLUTIONS
023120,000412:                                                                                                  #                                          IF TL = TIME FROM LAUNCH IN SECONDS, THEN   T = 100(TL-10SEC)/(2**14)
023121,000413:                                                                                                  #                                          WHERE   TL GE  10 SEC
023122,000414:                                                                                                  #                                                  TL LE 133 SEC .
023123,000415: 
023124,000416:                                                                                                  #                                          COMPUTE DESIRED ROLL WHERE ROLL EQUALS COUNTER-CLOCKWISE ANGLE FROM
023125,000417:                                                                                                  #                                          LAUNCHAZ TO -Z(S/C) AS SEEN FROM X(S/C).
023126,000418:                                                                                                  #                                          ROLL = LAUNCHAZ-AZIMUTH-.5 +SATRLRT*T      IN REV
023127,000419:                                                                                                  #                                          SATRLRT = RATE OF ROLL IN REV/CENTI-SEC
023128,000420:                                                                                                  #                                          T,IN CENTI-SEC,IS DEFINED AS ABOVE,INCLUSIVE OF TIME RESTRICTIONS

Page 530

023130,000422:                                                                                                  #                                          FOR SIMPLICITY, LET   P = 2*PI*PITCH
023131,000423:                                                                                                  #                                                                R = 2*PI*ROLL
023132,000424: 
023133,000425:                                                                                                  #                                          CONSTRUCT THE TRANSFORMATION MATRIX, TSMV, GIVING DESIRED S/C AXES IN
023134,000426:                                                                                                  #                                          TERMS OF SM COORDINATES. LET THE RESULTING ROWS EQUAL THE VECTORS XDC,
023135,000427:                                                                                                  #                                          YDC,AND ZDC.
023136,000428: 
023137,000429:                                                                                                  #                                           *     (    SIN(P)          0         -COS(P)    )   (XDC)
023138,000430:                                                                                                  #                                          TSMV = (-SIN(R)*COS(P)   -COS(R)   -SIN(R)*SIN(P)) = (YDC)
023139,000431:                                                                                                  #                                                 (-COS(R)*COS(P)    SIN(R)   -COS(R)*SIN(P))   (ZDC)
023140,000432: 
023141,000433:                                                                                                  #                                          XDC,YDC,ZDC ARE USED AS INPUT TO CALCGTA FOR THE EXTRACTION OF THE 
023142,000434:                                                                                                  #                                          EULER SET OF ANGLES WHICH WILL BRING THE SM INTO THE DESIRED
023143,000435:                                                                                                  #                                          ORIENTATION. THIS EULER SET, OGC, IGC, AND MGC, MAY BE IDENTIFIED
023144,000436:                                                                                                  #                                          AS THE DESIRED CDU ANGLES.
023145,000437: 
023146,000438:                                                                                                  #                                          (XDC)                   (OGC)
023147,000439:                                                                                                  #                                          (YDC) ---) CALCGTA ---) (IGC)
023148,000440:                                                                                                  #                                          (ZDC)                   (MGC)
023149,000441: 
023150,000442:                                                                                                  #                                                             -
023151,000443:                                                                                                  #                                          DEFINE THE VECTOR DELTACDU.
023152,000444: 
023153,000445:                                                                                                  #                                           -         (OGC)   (CDUX)
023154,000446:                                                                                                  #                                          DELTACDU = (IGC) - (CDUY)
023155,000447:                                                                                                  #                                                     (MGC)   (CDUZ)
023156,000448: 
023157,000449:                                                                                                  #                                                                   -          -    *    -
023158,000450:                                                                                                  #                                          COMPUTE ATTITUDE ERRORS, A, WHERE   A = TGSC*DELTACDU
023159,000451: 
023160,000452:                                                                                                  #                                           *     (1        SIN(CDUZ)            0    )   THE GIMBAL ANGLES
023161,000453:                                                                                                  #                                          TGSC = (0   COS(CDUX)*COS(CDUZ)   SIN(CDUX)) = TO SPACECRAFT AXES
023162,000454:                                                                                                  #                                                 (0  -SIN(CDUX)*COS(CDUZ)   COS(CDUX))   CONVERSION MATRIX
023163,000455: 
023164,000456:                                                                                                  #                                                               -
023165,000457:                                                                                                  #                                          THE ATTITUDE ERRORS, A, ARE STORED ONE HALF SINGLE PRECISION IN
023166,000458:                                                                                                  #                                          THE REGISTERS AK, AK1, AK2 AS INPUT TO NEEDLER, THE FDAI ATTITUDE
023167,000459:                                                                                                  #                                          ERROR DISPLAY ROUTINE.
023168,000460: 
023169,000461: 34,2326           30024        ATERJOB            CAE      TIME2                                 #  CHECK IF MORE THAN
023170,000462: 34,2327           00006                           EXTEND                                         #  164 SECONDS FROM L.O.
023171,000463: 34,2330           62332                           BZMF     +2                                    
023172,000464: 34,2331           12424                           TCF      SATCLEAR                              #  YES - CLEAR ERROR COUNTER + EXIT
023173,000465: 34,2332           30102                           CAE      FLAGWRD6                              #  CHECK FLAGWRD6
023174,000466: 34,2333           74105                           MASK     OCT60000                              #  BITS 14 + 15
023175,000467: 34,2334           00006                           EXTEND                                         
023176,000468: 34,2335           12337                           BZF      ATTDISP                               #  NO SATURN STICK ON
023177,000469: 34,2336           02420                           TC       ATERSET                               #  EXIT - SATURN STICK IN USE
023178,000470: 34,2337           41702        ATTDISP            CS       RPSTART                               #  PITCH/ROLL START TIME
023179,000471: 34,2340           60025                           AD       TIME1                                 

Page 531

023181,000473: 34,2341           00006                           EXTEND                                         
023182,000474: 34,2342           62504                           BZMF     NOPOLY                                #  IF MINUS THEN ATTITUDE HOLD
023183,000475: 34,2343           54154                           TS       MPAC                                  #  MPAC = TIME1 - RPSTART
023184,000476: 34,2344           55707                           TS       SPOLYARG                              #  SAVE FOR USE IN ROLL CALCULATION
023185,000477: 34,2345           61703                           AD       POLYSTOP                              #  NEG PITCHOVER TIME IN CSECS
023186,000478: 34,2346           00006                           EXTEND                                         
023187,000479: 34,2347           62351                           BZMF     +2                                    
023188,000480: 34,2350           12416                           TCF      SATOUT                                #  EXIT IF TIME1 GR THAN (RPSTART-POLYSTOP)
023189,000481: 34,2351           31661                           CAE      POLYNUM                               
023190,000482: 34,2352           54001                           TS       L                                     
023191,000483: 34,2353           32510                           CAF      COEFPOLY                              #  EVALUATE PITCH POLYNOMIAL
023192,000484: 34,2354           07164                           TC       POWRSERS                              #  SCALED TO 32 REVOLUTIONS
023193,000485: 
023194,000486:                                                                                                  #                                          THE FOLLOWING PAD LOADED COEFFICIENTS ARE
023195,000487:                                                                                                  #                                          USED TO COMPUTE THE PITCH POLYNOMIAL
023196,000488: 
023197,000489:                                                                                                  #                                          ----- SUNDISK SI COEFS -----
023198,000490:                                                                                                  #                                          POLYNUM         FIVE                    POLYNOMIAL DEGREE -1
023199,000491:                                                                                                  #                                                  +1      2DEC    -.469184028 E-4 A0
023200,000492:                                                                                                  #                                                  +3      2DEC    .137571556 E-2  A1
023201,000493:                                                                                                  #                                                  +5      2DEC    .231502280 E-1  A2
023202,000494:                                                                                                  #                                                  +7      2DEC    -.205929365 E-1 A3
023203,000495:                                                                                                  #                                                  +9D     2DEC    0               A4
023204,000496:                                                                                                  #                                                  +11D    2DEC    0               A5
023205,000497:                                                                                                  #                                                  +13D    2DEC    0               A6
023206,000498:                                                                                                  #                                          POLYLOC         =       POLYNUM +10D
023207,000499: 
023208,000500: 34,2355           34714                           CA       ZERO                                  #  RETURN WITH PITCH(32REV)
023209,000501: 34,2356           54163                           TS       MODE                                  #  STORED IN MPAC, MPAC +1
023210,000502: 34,2357           06006                           TC       INTPRET                               
023211,000503: 34,2360           54201                           SETPD    SL                                    #  32(PITCH(32REV)) = PITCH(REV)
023212,000504: 34,2361           00001                                    0                                     
023213,000505: 34,2362           20206                                    5                                     
023214,000506: 34,2363           77606                           PUSH                                           #  LET  P(RAD) = 2*PI*PITCH(REV)
023215,000507: 
023216,000508: 34,2364           77650                           GOTO                                           
023217,000509: 34,2365           76103                                    ATTDISP1                              #  AROUND SETLOC
023218,000510:                                                                                                  #                                                                       *
023219,000511:                                                                                                  #                                          CONSTRUCT SM TO S/C MATRIX, TSMV
023220,000512: 
023221,000513: 37,2000                                           SETLOC   P11TWO                                
023222,000514: 37,2000                                           BANK                                           #  36 IN COL., 34 IN DISK
023223,000515: 
023224,000516: 37,2103                                           COUNT    36/P11                                
023225,000517: 
023226,000518: 37,2103           57546        ATTDISP1           COS      DCOMP                                 
023227,000519: 37,2104           14017                           STODL    14D                                   #  -.5*COS(P)
023228,000520: 37,2105           77756                           SIN                                            
023229,000521: 37,2106           14013                           STODL    10D                                   #  .5*SIN(P)
023230,000522: 37,2107           15332                                    ZEROVECS                              

Page 532

023232,000524: 37,2110           00015                           STORE    12D                                   #  0
023233,000525: 
023234,000526:                                                                                                  #                                          EVALUATE ROLL = LAUNCHAZ-AZIMUTH-.5+SATRLRT*T
023235,000527: 37,2111           41335                           SLOAD    DMP                                   
023236,000528: 37,2112           03310                                    SPOLYARG                              #  TIME1 - RPSTART ,CSECS B-14.
023237,000529: 37,2113           03301                                    SATRLRT                               
023238,000530: 37,2114           45261                           SL       DSU                                   
023239,000531: 37,2115           20217                                    14D                                   
023240,000532: 37,2116           15330                                    DPHALF                                
023241,000533: 37,2117           45215                           DAD      DSU                                   #  ASSUMING X(SM) ALONG LAUNCH AZIMUTH,
023242,000534: 37,2120           02634                                    LAUNCHAZ                              #  LAUNCHAZ = ANGLE FROM NORTH TO X(SM).
023243,000535: 37,2121           02401                                    AZIMUTH                               #  AZIMUTH = -ANGLE FROM NORTH TO Z(S/C)
023244,000536: 37,2122           77634                           RTB                                            #  DETERMINE IF ROLLOUT
023245,000537: 37,2123           70473                                    RLTST                                 #  IS COMPLETED
023246,000538: 37,2124           71406        ATTDISPR           PUSH     COS                                   #  CONTINUE COMPUTING TSMV
023247,000539: 37,2125           77606                           PUSH                                           #  LET  R(RAD) = 2*PI*ROLL(REV)
023248,000540: 37,2126           72405                           DMP      SL1                                   
023249,000541: 37,2127           00017                                    14D                                   
023250,000542: 37,2130           14027                           STODL    22D                                   #  -.5*COS(R)*COS(P)
023251,000543: 37,2131           77676                           DCOMP                                          
023252,000544: 37,2132           00023                           STORE    18D                                   #  -.5*COS(R)
023253,000545: 37,2133           72405                           DMP      SL1                                   
023254,000546: 37,2134           00013                                    10D                                   
023255,000547: 37,2135           14033                           STODL    26D                                   #  -.5*COS(R)*SIN(P)
023256,000548: 37,2136           41556                           SIN      PUSH                                  
023257,000549: 37,2137           00031                           STORE    24D                                   #  .5*SIN(R)
023258,000550: 37,2140           72405                           DMP      SL1                                   
023259,000551: 37,2141           00017                                    14D                                   
023260,000552: 37,2142           14021                           STODL    16D                                   #  -.5*SIN(R)*COS(P)
023261,000553: 37,2143           77676                           DCOMP                                          
023262,000554: 37,2144           72405                           DMP      SL1                                   
023263,000555: 37,2145           00013                                    10D                                   
023264,000556: 37,2146           24025                           STOVL    20D                                   #  -.5*SIN(R)*SIN(P)
023265,000557: 37,2147           00013                                    10D                                   
023266,000558: 
023267,000559:                                                                                                  #                                          FROM TSMV FIND THE HALF UNIT VECTORS  XDC,YDC,ZDC = INPUT TO CALCGTA
023268,000560: 
023269,000561: 37,2150           77656                           UNIT                                           
023270,000562: 37,2151           26714                           STOVL    XDC                                   #  XDC = .5*UNIT(SIN(P),0,-COS(P))
023271,000563: 37,2152           00021                                    16D                                   
023272,000564: 37,2153           77656                           UNIT                                           
023273,000565: 37,2154           26722                           STOVL    YDC                                   #  YDC = .5*UNIT(-SIN(R)*COS(P),-COS(R),
023274,000566: 37,2155           00027                                    22D                                   #                           -SIN(R)*SIN(P))
023275,000567: 37,2156           77656                           UNIT                                           
023276,000568: 37,2157           36730                           STCALL   ZDC                                   #  ZDC = .5*UNIT(-COS(R)*COS(P),SIN(R),
023277,000569: 37,2160           47140                                    CALCGTA                               #                           -COS(R)*SIN(P))
023278,000570: 
023279,000571:                                                                                                  #                                          CALL CALCGTA TO COMPUTE DESIRED SM ORIENTATION  OGC,IGC,AND MGC
023280,000572:                                                                                                  #                                                                    -          -   -
023281,000573:                                                                                                  #                                          FIND DIFFERENCE VECTOR   DELTACDU = OGC-CDUX

Page 533

023283,000575:                                                                                                  #                                          ENTER HERE IF ATTITUDE HOLD
023284,000576: 
023285,000577: 37,2161           41575        NOPOLYM            VLOAD    PUSH                                  #         OGC      IGC
023286,000578: 37,2162           02760                                    OGC                                   #  CHANGE IGC  TO  MGC FOR COMPATIBILITY
023287,000579: 37,2163           45006                           PUSH     CALL                                  #         MGC      OGC
023288,000580: 37,2164           47432                                    CDUTRIG                               #  WITH Y,Z,X ORDER OF CDUSPOT
023289,000581: 37,2165           47175                           VLOAD    RTB                                   #   -         DPHI     OGC-CDUX ,PD4
023290,000582: 37,2166           00003                                    2                                     #  DELTACDU = DTHETA = IGC-CDUY ,   0
023291,000583: 37,2167           45547                                    V1STO2S                               #             DPSI     MGC-CDUZ ,   2
023292,000584: 37,2170           27317                           STOVL    BOOSTEMP                              
023293,000585: 37,2171           15332                                    ZEROVECS                              
023294,000586: 37,2172           24001                           STOVL    0                                     
023295,000587: 37,2173           00767                                    CDUSPOT                               
023296,000588: 37,2174           47034                           RTB      RTB                                   
023297,000589: 37,2175           45547                                    V1STO2S                               
023298,000590: 37,2176           70453                                    DELSTOR                               
023299,000591: 37,2177           14013                           STODL    10D                                   
023300,000592: 37,2200           00741                                    SINCDUZ                               
023301,000593: 37,2201           72405                           DMP      SL1                                   
023302,000594: 37,2202           00001                                    0                                     
023303,000595: 37,2203           60415                           DAD      SR2                                   #  CHANGE SCALE OF AK TO 2REVS
023304,000596: 37,2204           00005                                    4                                     
023305,000597: 37,2205           77650                           GOTO                                           
023306,000598: 37,2206           70366                                    ATTDISP2                              
023307,000599: 
023308,000600: 34,2000                                           SETLOC   P11ONE                                
023309,000601: 34,2000                                           BANK                                           
023310,000602: 34,2366                                           COUNT    34/P11                                
023311,000603: 
023312,000604: 34,2366           14021        ATTDISP2           STODL    16D                                   #  16D,  .5(DPHI + DTHETA*SIN(CDUZ))
023313,000605: 34,2367           00747                                    COSCDUZ                               
023314,000606: 34,2370           41405                           DMP      PUSH                                  
023315,000607: 34,2371           00001                                    0                                     
023316,000608: 34,2372           72405                           DMP      SL1                                   
023317,000609: 34,2373           00751                                    COSCDUX                               
023318,000610: 34,2374           41325                           PDDL     DMP                                   
023319,000611: 34,2375           00743                                    SINCDUX                               
023320,000612: 34,2376           00003                                    2                                     
023321,000613: 34,2377           72415                           DAD      SL1                                   
023322,000614: 34,2400           77626                           STADR                                          
023323,000615: 34,2401           63755                           STODL    17D                                   #  17D,  .5(DTHETA*COS(CDUX)*COS(CDUZ)
023324,000616: 34,2402           72405                           DMP      SL1                                   #                          +DPSI*SIN(CDUX))
023325,000617: 34,2403           00743                                    SINCDUX                               
023326,000618: 34,2404           41325                           PDDL     DMP                                   
023327,000619: 34,2405           00751                                    COSCDUX                               
023328,000620: 34,2406           00003                                    2                                     
023329,000621: 34,2407           72425                           DSU      SL1                                   
023330,000622: 34,2410           77626                           STADR                                          
023331,000623: 34,2411           77754                           STORE    18D                                   #  18D,  .5(-DTHETA*SIN(CDUX)*COS(CDUZ)
023332,000624: 34,2412           77751                           TLOAD                                          #                          +DPSI*COS(CDUX))

Page 534

023334,000626: 34,2413           00021                                    16D                                   
023335,000627: 34,2414           03077                           STORE    AK                                    #  STORE ATTITUDE ERRORS IN AK,AK1,AK2
023336,000628: 34,2415           77776                           EXIT                                           
023337,000629: 
023338,000630:                                                                                                  #                                          DISPLAY ATTITUDE ERRORS ON FDAI VIA NEEDLER
023339,000631: 
023340,000632: 34,2416           04555        SATOUT             TC       BANKCALL                              
023341,000633: 34,2417           42404                           CADR     NEEDLER                               
023342,000634: 34,2420           34113        ATERSET            CAF      OCT31                                 #  DELAY .25 SEC
023343,000635: 34,2421           04555                           TC       BANKCALL                              #  EXECUTION + DELAY =.56SEC APPROX
023344,000636: 34,2422           01730                           CADR     DELAYJOB                              
023345,000637: 34,2423           02326                           TC       ATERJOB                               #  END OF ATT ERROR DISPLAY CYCLE
023346,000638: 
023347,000639: 34,2424           44705        SATCLEAR           CS       BIT6                                  
023348,000640: 34,2425           00006                           EXTEND                                         
023349,000641: 34,2426           03012                           WAND     CHAN12                                #  CLEAR IMU ERROR COUNTER
023350,000642: 34,2427           05301                           TC       PHASCHNG                              #  TURN OFF PROTECTION
023351,000643: 34,2430           00004                           OCT      00004                                 #  FOR ATTITUDE ERROR DISPLAY
023352,000644: 34,2431           34714                           CAF      ZERO                                  
023353,000645: 34,2432           55476                           TS       AK                                    #  ZERO OUT
023354,000646: 34,2433           55477                           TS       AK1                                   #  AKS FOR
023355,000647: 34,2434           55500                           TS       AK2                                   #  DOWNLINK
023356,000648: 34,2435           05112                           TC       ENDOFJOB                              
023357,000649: 
023358,000650: 34,2436           51575        S11.1              VLOAD    ABVAL                                 
023359,000651: 34,2437           01177                                    VN                                    
023360,000652: 34,2440           27723                           STOVL    VMAGI                                 #  VI     SCALED  2(7)  IN METERS/CSEC
023361,000653: 34,2441           01171                                    RN                                    
023362,000654: 34,2442           45246                           ABVAL    DSU                                   
023363,000655: 34,2443           05311                                    RPAD                                  
023364,000656: 34,2444           27735                           STOVL    ALTI                                  #  H      SCALED  2(29)  IN METERS
023365,000657: 34,2445           01171                                    RN                                    
023366,000658: 34,2446           50256                           UNIT     DOT                                   
023367,000659: 34,2447           01177                                    VN                                    
023368,000660: 34,2450           77752                           SL1                                            
023369,000661: 34,2451           03737                           STORE    HDOT                                  #  HDOT   SCALED  2(7)  IN METERS/CSEC
023370,000662: 34,2452           77616                           RVQ                                            
023371,000663: 34,2453           31716        DELSTOR            CA       BOOSTEMP                              
023372,000664: 34,2454           00006                           EXTEND                                         #  STORE DELTACDU INTO PDL 0,2,4
023373,000665: 34,2455           20154                           MSU      MPAC                                  
023374,000666: 34,2456           50120                           INDEX    FIXLOC                                
023375,000667: 34,2457           54000                           TS       0                                     
023376,000668: 34,2460           31717                           CA       BOOSTEMP   +1                         
023377,000669: 34,2461           00006                           EXTEND                                         
023378,000670: 34,2462           20155                           MSU      MPAC       +1                         
023379,000671: 34,2463           50120                           INDEX    FIXLOC                                
023380,000672: 34,2464           54002                           TS       2                                     
023381,000673: 34,2465           31720                           CA       BOOSTEMP   +2                         
023382,000674: 34,2466           00006                           EXTEND                                         
023383,000675: 34,2467           20156                           MSU      MPAC       +2                         

Page 535

023385,000677: 34,2470           50120                           INDEX    FIXLOC                                
023386,000678: 34,2471           54004                           TS       4                                     
023387,000679: 34,2472           16030                           TCF      DANZIG                                
023388,000680: 34,2473           30154        RLTST              CA       MPAC                                  #  DETERMINE IF ROLLOUT
023389,000681: 34,2474           00006                           EXTEND                                         #  IS COMPLETED
023390,000682: 34,2475           71701                           MP       SATRLRT    +1                         
023391,000683: 34,2476           00006                           EXTEND                                         
023392,000684: 34,2477           66030                           BZMF     DANZIG                                #  UNLIKE SIGNS  STILL ROLLING
023393,000685: 34,2500           00006                           EXTEND                                         #  ROLLOUT COMPLETED
023394,000686: 34,2501           33563                           DCA      MBDYTCTL   +2                         #  ZERO OUT ROLL CONTRIBUTION
023395,000687: 34,2502           52155                           DXCH     MPAC                                  
023396,000688: 34,2503           06030                           TC       DANZIG                                
023397,000689: 34,2504           06006        NOPOLY             TC       INTPRET                               #  COMES HERE IF
023398,000690: 34,2505           52001                           SETPD    GOTO                                  #  ATTITUDE HOLD
023399,000691: 34,2506           00001                                    0                                     
023400,000692: 34,2507           76161                                    NOPOLYM                               
023401,000693: 34,2510           01673        COEFPOLY           ADRES    POLYLOC                               
023402,000694: 34,2511           01476        V06N62             VN       0662                                  
023403,000695:                                                                                                  #  SATURN TAKEOVER FUNCTION
023404,000696:                                                                                                  #  ************************
023405,000697: 
023406,000698:                                                                                                  #  PROGRAM DESCRIPTION
023407,000699: 
023408,000700:                                                                                                  #      MOD NUMBER 1
023409,000701:                                                                                                  #      MOD BY ELIASSEN
023410,000702: 
023411,000703:                                                                                                  #  FUNCTIONAL DESCRIPTION
023412,000704: 
023413,000705:                                                                                                  #      DURING THE COASTING PHASE OF SIVB ATTACHED, THE
023414,000706:                                                                                                  #      ASTRONAUT MAY REQUEST SATURN TAKEOVER THROUGH
023415,000707:                                                                                                  #      EXTENDED VERB 46 (BITS 13,14 OF DAPDATR1 SET ).
023416,000708:                                                                                                  #      THE CMC REGARDS RHC COMMANDS AS BODY-AXES RATE
023417,000709:                                                                                                  #      COMMANDS AND IT TRANSMITS THESE TO SATURN AS DC
023418,000710:                                                                                                  #      VOLTAGES. THE VALUE OF THE CONSTANT RATE COMMAND
023419,000711:                                                                                                  #      IS 0.5 DEG/SEC. AN ABSENCE OF RHC ACTIVITY RE-
023420,000712:                                                                                                  #      SULTS IN A ZERO RATE COMMAND.
023421,000713: 
023422,000714:                                                                                                  #      THE FDAI ERROR NEEDLES WILL INDICATE THE VALUE
023423,000715:                                                                                                  #      OF THE RATE COMMAND.
023424,000716: 
023425,000717:                                                                                                  #  CALLING SEQUENCE
023426,000718: 
023427,000719:                                                                                                  #      DAPFIG +9D  TC      POSTJUMP
023428,000720:                                                                                                  #                  CADR    SATSTKON
023429,000721: 
023430,000722:                                                                                                  #  SUBROUTINES CALLED
023431,000723: 
023432,000724:                                                                                                  #      ENDEXT
023433,000725:                                                                                                  #      IBNKCALL
023434,000726:                                                                                                  #      STICKCHK

Page 536

023436,000728:                                                                                                  #      NEEDLER
023437,000729:                                                                                                  #      T5RUPT
023438,000730:                                                                                                  #      RESUME
023439,000731: 
023440,000732:                                                                                                  #  ASTRONAUT REQUESTS
023441,000733: 
023442,000734:                                                                                                  #      ENTRY -  VERB 46 ENTER
023443,000735:                                                                                                  #               (CONDITION - BITS 13, 14 OF DAPDATR1 SET)
023444,000736: 
023445,000737:                                                                                                  #      EXIT  -  VERB 48 ENTER  (FLASH V06N46)
023446,000738:                                                                                                  #               VERB 21 ENTER  AXXXX ENTER WHERE  A=0 OR 1
023447,000739:                                                                                                  #               VERB 34 ENTER
023448,000740:                                                                                                  #               VERB 46 ENTER
023449,000741: 
023450,000742:                                                                                                  #  NORMAL EXIT MODE
023451,000743: 
023452,000744:                                                                                                  #               VERB 46 ENTER  (SEE ASTRONAUT ABOVE)
023453,000745: 
023454,000746:                                                                                                  #  ALARM OR ABORT EXIT MODES
023455,000747: 
023456,000748:                                                                                                  #      NONE
023457,000749: 
023458,000750:                                                                                                  #  OUTPUT
023459,000751: 
023460,000752:                                                                                                  #      SATURN RATES IN  CDUXCMD, CDUYCMD, CDUZCMD
023461,000753: 
023462,000754:                                                                                                  #  ERASABLE INITIALIZATION
023463,000755: 
023464,000756:                                                                                                  #      DAPDATR1  (BITS 13, 14 MUST BE SET)
023465,000757: 
023466,000758:                                                                                                  #  DEBRIS
023467,000759: 
023468,000760:                                                                                                  #      CENTRALS
023469,000761:                                                                                                  #      CDUXCMD, CDUYCMD, CDUZCMD
023470,000762: 
023471,000763: 43,3210                                           BANK     43                                    
023472,000764: 43,2000                                           SETLOC   EXTVERBS                              
023473,000765: 43,2000                                           BANK                                           
023474,000766: 
023475,000767: 43,3210                                           COUNT    23/STTKE                              
023476,000768: 43,3210           00006        SATSTKON           EXTEND                                         
023477,000769: 43,3211           33226                           DCA      2REDOSAT                              
023478,000770: 43,3212           00004                           INHINT                                         
023479,000771: 43,3213           53313                           DXCH     T5LOC                                 
023480,000772: 43,3214           34672                           CAF      POSMAX                                
023481,000773: 43,3215           54030                           TS       TIME5                                 
023482,000774: 43,3216           40102                           CS       FLAGWRD6                              #  TURN ON BITS 15,14 OF
023483,000775: 43,3217           74105                           MASK     RELTAB11                              #  FLAGWRD6
023484,000776: 43,3220           26102                           ADS      FLAGWRD6                              #      SATSTICK CONTROL OF T5
023485,000777: 43,3221           04633                           TC       IBNKCALL                              #  ZERO JET CHANNELS IN 14 MS AND THEN

Page 537

023487,000779: 43,3222           42616                           CADR     ZEROJET                               #  LEAVE THE T6 CLOCK DISABLED
023488,000780: 43,3223           00003                           RELINT                                         
023489,000781: 43,3224           02125                           TC       GOPIN                                 #  EXIT THUS BECAUSE WE CAME VIA V46
023490,000782: 
023491,000783: 43,3225  E6,1704                                  EBANK=   BODY3                                 
023492,000784: 43,3225           02765 46106  2REDOSAT           2CADR    REDOSAT                               
023493,000785: 
023494,000786: 32,2017                                           BANK     32                                    
023495,000787: 23,2000                                           SETLOC   P11FOUR                               
023496,000788: 23,2000                                           BANK                                           
023497,000789: 
023498,000790: 23,2765           22016        REDOSAT            LXCH     BANKRUPT                              #  ALSO COMES HERE FOR RESTARTS
023499,000791: 23,2766           00006                           EXTEND                                         
023500,000792: 23,2767           22012                           QXCH     QRUPT                                 
023501,000793: 23,2770           41501                           CS       RCSFLAGS                              #  TURN ON BIT3 OF RCSFLAGX
023502,000794: 23,2771           74710                           MASK     BIT3                                  #  FOR
023503,000795: 23,2772           27501                           ADS      RCSFLAGS                              #  NEEDLER INITIALIZATION
023504,000796: 23,2773           04633                           TC       IBNKCALL                              
023505,000797: 23,2774           42404                           CADR     NEEDLER                               #  DISABLE IMU ERR COUNTERS ETC.
023506,000798: 23,2775           34702                           CAF      BIT9                                  #  SIVB
023507,000799: 23,2776           00006                           EXTEND                                         #  TAKEOVER
023508,000800: 23,2777           05012                           WOR      CHAN12                                #  ENABLE
023509,000801: 23,3000           00006                           EXTEND                                         #  SET UP T5 CYCLE
023510,000802: 23,3001           33046                           DCA      2SATSTCK                              
023511,000803: 23,3002           53313                           DXCH     T5LOC                                 
023512,000804: 23,3003           33044                           CAF      100MST5                               #  IN 100 MSECS
023513,000805: 23,3004           54030                           TS       TIME5                                 
023514,000806: 23,3005           15222                           TCF      RESUME                                #  END OF SATURN STICK INITIALIZATION
023515,000807: 
023516,000808:                                                                                                  #                                          THIS SECTION IS EXECUTED EVERY 100 MSECS
023517,000809: 
023518,000810: 23,3006           22016        SATSTICK           LXCH     BANKRUPT                              
023519,000811: 23,3007           00006                           EXTEND                                         
023520,000812: 23,3010           22012                           QXCH     QRUPT                                 
023521,000813: 
023522,000814: 23,3011           33045                           CAF      2SATSTCK                              #  SET UP RUPT
023523,000815: 23,3012           55312                           TS       T5LOC                                 #  LO ORDER LOC SET
023524,000816: 23,3013           33044                           CAF      100MST5                               #  100 MSECS
023525,000817: 23,3014           54030                           TS       TIME5                                 
023526,000818: 23,3015           33043                           CAF      STIKBITS                              
023527,000819: 23,3016           00006                           EXTEND                                         
023528,000820: 23,3017           06031                           RXOR     CHAN31                                #  CHECK IF MAN ROT BITS SAME
023529,000821: 23,3020           73043                           MASK     STIKBITS                              
023530,000822: 23,3021           04633                           TC       IBNKCALL                              #  SET RATE INDICES
023531,000823: 23,3022           43114                           CADR     STICKCHK                              #  FOR PITCH YAW AND ROLL
023532,000824: 
023533,000825: 23,3023           51656                           INDEX    RMANNDX                               #  SET SATURN RATES
023534,000826: 23,3024           33037                           CA       SATRATE                               
023535,000827: 23,3025           55476                           TS       AK                                    #                   ROLL

Page 538

023537,000829: 23,3026           51657                           INDEX    PMANNDX                               
023538,000830: 23,3027           33037                           CA       SATRATE                               
023539,000831: 23,3030           55477                           TS       AK1                                   #                   PITCH
023540,000832: 23,3031           51660                           INDEX    YMANNDX                               
023541,000833: 23,3032           33037                           CA       SATRATE                               
023542,000834: 23,3033           55500                           TS       AK2                                   #                   YAW
023543,000835: 
023544,000836: 23,3034           04633                           TC       IBNKCALL                              #  FOR SATURN INTERFACE AND FDAI DISPLAY
023545,000837: 23,3035           42404                           CADR     NEEDLER                               
023546,000838: 23,3036           15222                           TCF      RESUME                                #  END OF SATURN STICK CONTROL
023547,000839: 
023548,000840: 
023549,000841: 23,3037           00000        SATRATE            DEC      0          B-14                       #  IN DETENT - ZERO RATE
023550,000842: 23,3040           00476                           DEC      +318       B-14                       #  POS RATE .5D/S R, .3D/S P AND Y
023551,000843: 23,3041           77301                           DEC      -318       B-14                       #  NEG RATE       DITTO
023552,000844: 23,3042           00000                           DEC      0          B-14                       #  POS NEG BITS ON  ASSUME IN DETENT
023553,000845: 
023554,000846: 23,3043           00077        STIKBITS           OCT      00077                                 
023555,000847: 23,3044           37766        100MST5            DEC      16374      B-14                       
023556,000848: 23,3045  E6,1704                                  EBANK=   BODY3                                 
023557,000849: 23,3045           03006 46106  2SATSTCK           2CADR    SATSTICK                              
023558,000850: 

End of include-file P11.agc.  Parent file is MAIN.agc