Source Code

These source-code files are part of a reconstructed copy of Comanche 72/3 (AKA Manche72 revision 3), the final, flown mission release of the Apollo Guidance Computer (AGC) Command Module (CM) software for Apollo 13.

The starting point was the source code of Comanche 72 (itself previously reconstructed). Comanche 72 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 72 and 72/3. The resulting code assembles to have identical memory-bank checksums as those specified in NASA drawing 2021153G; this gives reasonably high confidence that the changes that have been made are correct. In places where ambiguity exists, this ambiguity is discussed in "## Reconstruction:" comments.

Since no contemporary listings of Comanche 72/3 are available as source material, all comments and labels are approximate. They have been taken from other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing.

027296,000002:                                                                                                  ## Copyright:   Public domain.
027297,000003:                                                                                                  ## Filename:    P30,P37.agc
027298,000004:                                                                                                  ## Purpose:     A section of Manche72 revision 3.
027299,000005:                                                                                                  ##              It is part of the reconstructed source code for the final, flown
027300,000006:                                                                                                  ##              release of the software for the Command Module's (CM) Apollo
027301,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 13. No original listings
027302,000008:                                                                                                  ##              of this program are available; instead, this file was recreated
027303,000009:                                                                                                  ##              from a reconstructed copy of Comanche 072. It has been adapted
027304,000010:                                                                                                  ##              such that the resulting bugger words exactly match those
027305,000011:                                                                                                  ##              specified for Manche72 revision 3 in NASA drawing 2021153G,
027306,000012:                                                                                                  ##              which gives relatively high confidence that the reconstruction
027307,000013:                                                                                                  ##              is correct.
027308,000014:                                                                                                  ## Assembler:   yaYUL
027309,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
027310,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
027311,000017:                                                                                                  ## Mod history: 2024-05-19 MAS  Created from Comanche 072.
027312,000018: 
027313,000019: 32,2017                                           BANK     32                                    
027314,000020: 
027315,000021: 35,2000                                           SETLOC   P30S1                                 
027316,000022: 35,2000                                           BANK                                           
027317,000023: 
027318,000024: 35,3264  E7,1625                                  EBANK=   +MGA                                  
027319,000025: 
027320,000026: 35,3264                                           COUNT    35/P34                                
027321,000027: 
027322,000028: 35,3264           77420        DISPMGA            STQ      EXIT                                  #  USED IN P30
027323,000029: 
027324,000030: 35,3265           02370                                    RGEXIT                                
027325,000031: 35,3266           03304                           TC       COMPTGO                               
027326,000032: 
027327,000033: 35,3267           34621        DISP45             CAF      V16N45                                
027328,000034: 35,3270           04676                           TC       BANKCALL                              
027329,000035: 35,3271           21057                           CADR     GOFLASHR                              
027330,000036: 35,3272           04106                           TC       GOTOPOOH                              
027331,000037: 35,3273           03300                           TC       END45                                 
027332,000038: 35,3274           03267                           TC       DISP45                                
027333,000039: 35,3275           05426        P30PHSI            TC       PHASCHNG                              
027334,000040: 35,3276           00014                           OCT      14                                    
027335,000041: 35,3277           05233                           TCR      ENDOFJOB                              
027336,000042: 35,3300           06006        END45              TC       INTPRET                               
027337,000043: 35,3301           52014                           CLEAR    GOTO                                  
027338,000044: 35,3302           03664                                    TIMRFLAG                              
027339,000045: 35,3303           02370                                    RGEXIT                                
027340,000046: 
027341,000047: 35,3304           00006        COMPTGO            EXTEND                                         #  USED TO COMPUTE TTOGO
027342,000048: 35,3305           23066                           QXCH     PHSPRDT6                              #  ** GROUP 6 TEMPORARY USED ,, BEWARE **
027343,000049: 
027344,000050: 35,3306           05562                           TC       UPFLAG                                #  SET TIMRFLAG
027345,000051: 35,3307           00155                           ADRES    TIMRFLAG                              #  BIT 11 FLAG 7
027346,000052: 35,3310           35035                           CAF      ZERO                                  
027347,000053: 35,3311           55145                           TS       NVWORD1                               
027348,000054: 
027349,000055: 35,3312           35033                           CAF      ONE                                   
027350,000056: 35,3313           05261                           TC       WAITLIST                              
027351,000057: 35,3314  E7,1412                                  EBANK=   TIG                                   
027352,000058: 35,3314           03263 50067                     2CADR    CLOKTASK                              
027353,000059: 
027354,000060: 35,3316           05406                           TC       2PHSCHNG                              
027355,000061: 35,3317           40036                           OCT      40036                                 #  6.3SPOT FOR CLOKTASK
027356,000062: 35,3320           05024                           OCT      05024                                 #  GROUP 4 CONTINUES HERE
027357,000063: 35,3321           13000                           OCT      13000                                 
027358,000064: 
027359,000065: 35,3322           01066                           TC       PHSPRDT6                              
027360,000066:                                                                                                  #  PROGRAM DESCRIPTION P30       DATE 3-6-67
027361,000067:                                                                                                  #  MOD. I BY S. ZELDIN-  TO ADD P31 AND ADAPT P30 FOR P31 USE.   22DEC67
027362,000068: 
027363,000069:                                                                                                  #  FUNCTIONAL DESCRIPTION
027364,000070:                                                                                                  #        +30     (EXTERNAL DELTA-V TARGETTING PROGRAM)
027365,000071:                                                                                                  #                ACCEPTS ASTRONAUT INPUTS OF TIG,DELV(LV) AND COMPUTES, FOR DISPLAY,
027366,000072:                                                                                                  #                APOGEE, PERIGEE, DELV(MAG), MGA ASSOCIATED WITH DESIRED MANEUVER
027367,000073:                                                                                                  #        P31     (GENERAL LAMBERT AIMPOINT GUIDANCE)
027368,000074:                                                                                                  #                A GROUND RULE FOR P31 IS THE ANGLE BETWEEN THE TARGET VECTOR AND
027369,000075:                                                                                                  #                POSITION VECTOR AT TIG IS NOT 165-195 DEGREES APART
027370,000076:                                                                                                  #                BASED ON STORED INPUT OF OFFSET TARGET(B+29) AND DELTA T TRANS, AND
027371,000077:                                                                                                  #                ASTRONAUT ENTRY OF TIG, P31 COMPUTES REQUIRED VELOCITY FOR MANEUVER
027372,000078:                                                                                                  #                AND, FOR DISPLAY, APOGEE, PERIGEE, DELV(7AG), +MGA ASSOCIATED WITH
027373,000079:                                                                                                  #                DESIRED MANEUVER
027374,000080: 
027375,000081:                                                                                                  #  THE FOLLOWING SUBROUTINES ARE USED IN P30 AND P31
027376,000082:                                                                                                  #        S30.1 (P30 ONLY)
027377,000083:                                                                                                  #        S31.1 (P31 ONLY)
027378,000084:                                                                                                  #        P30/P31 - DISPLAYS TIG
027379,000085:                                                                                                  #        CNTUP30 - DISPLAYS DELV(LV)
027380,000086:                                                                                                  #        PARAM30 - DISPLAYS APOGEE, PERIGEE, DELV(MAG), MGA, TIME FROM TIG,
027381,000087:                                                                                                  #                  MARKS SINCE LAST THRUSTING MANEUVER
027382,000088: 
027383,000089:                                                                                                  #  CALLING SEQUENCE VIA JOB FROM V37
027384,000090: 
027385,000091:                                                                                                  #  EXIT VIA V37 CALL OR GOTOPOOH
027386,000092: 
027387,000093:                                                                                                  #  OUTPUT FOR POWERED FLIGHT
027388,000094:                                                                                                  #        VTIG    X
027389,000095:                                                                                                  #        RTIG    X       SEE S30.1
027390,000096:                                                                                                  #        DELVSIN X
027391,000097:                                                                                                  #        VGDISP
027392,000098:                                                                                                  #        RTARG   X
027393,000099:                                                                                                  #        TPASS4  X       SEE S31.1
027394,000100:                                                                                                  #                X
027395,000101: 
027396,000102: 35,3323                                           COUNT    35/P30                                
027397,000103: 
027398,000104: 35,3323           03355        P30                TC       P30/P31                               
027399,000105: 35,3324           03374                           TC       CNTNUP30                              
027400,000106: 35,3325           05562                           TC       UPFLAG                                
027401,000107: 35,3326           00045                           ADRES    XDELVFLG                              #  SET XDELVFLG BIT 8 FLAG 2
027402,000108: 35,3327           05574                           TC       DOWNFLAG                              #  RESET UPDATFLG
027403,000109: 35,3330           00027                           ADRES    UPDATFLG                              #  BIT 7 FLAG 1
027404,000110: 35,3331           06006                           TC       INTPRET                               
027405,000111: 35,3332           77624                           CALL                                           
027406,000112: 35,3333           63501                                    S30.1                                 
027407,000113: 35,3334           77776                           EXIT                                           
027408,000114: 35,3335           03404                           TC       PARAM30                               
027409,000115: 35,3336           14106                           TCF      GOTOPOOH                              
027410,000116: 
027411,000117: 35,3337           03355        P31                TC       P30/P31                               
027412,000118: 35,3340           05574                           TC       DOWNFLAG                              
027413,000119: 35,3341           00027                           ADRES    UPDATFLG                              #  RESET UPDATFLG BIT 7 FLAG 1
027414,000120: 35,3342           05574                           TC       DOWNFLAG                              
027415,000121: 35,3343           00156                           ADRES    NORMSW                                #  RESET NORMSW BIT 10 FLAG 7
027416,000122: 35,3344           06006                           TC       INTPRET                               
027417,000123: 35,3345           77624                           CALL                                           
027418,000124: 35,3346           63553                                    S31.1                                 
027419,000125: 35,3347           77776                           EXIT                                           
027420,000126: 35,3350           03374                           TC       CNTNUP30                              
027421,000127: 35,3351           03404                           TC       PARAM30                               
027422,000128: 35,3352           05574                           TC       DOWNFLAG                              
027423,000129: 35,3353           00045                           ADRES    XDELVFLG                              #  BIT 8 FLAG 2
027424,000130: 35,3354           14106                           TCF      GOTOPOOH                              
027425,000131: 
027426,000132: 35,3355           56002        P30/P31            XCH      Q                                     
027427,000133: 35,3356           55664                           TS       P30/31RT                              
027428,000134: 35,3357           05562                           TC       UPFLAG                                
027429,000135: 35,3360           00027                           ADRES    UPDATFLG                              #  SET UPDATFLG BIT 7 FLAG 1
027430,000136: 35,3361           05562                           TC       UPFLAG                                
027431,000137: 35,3362           00031                           ADRES    TRACKFLG                              #  SET TRACKFLG BIT 5 FLAG 1
027432,000138: 35,3363           33441                           CAF      V06N33                                #  T OF IGN
027433,000139: 35,3364           04676                           TC       BANKCALL                              
027434,000140: 35,3365           21057                           CADR     GOFLASHR                              
027435,000141: 35,3366           14106                           TCF      GOTOPOOH                              
027436,000142: 35,3367           01664                           TC       P30/31RT                              
027437,000143: 35,3370           13361                           TCF      P30/P31    +4                         
027438,000144: 35,3371           05426                           TC       PHASCHNG                              
027439,000145: 35,3372           00014                           OCT      00014                                 
027440,000146: 35,3373           05233                           TC       ENDOFJOB                              
027441,000147: 
027442,000148: 35,3374           56002        CNTNUP30           XCH      Q                                     
027443,000149: 35,3375           55127                           TS       P30/RET                               
027444,000150: 35,3376           34620                           CAF      V06N81                                
027445,000151: 35,3377           04676                           TC       BANKCALL                              
027446,000152: 35,3400           20720                           CADR     GOFLASH                               
027447,000153: 35,3401           14106                           TCF      GOTOPOOH                              
027448,000154: 35,3402           01127                           TC       P30/RET                               
027449,000155: 35,3403           13376                           TCF      CNTNUP30   +2                         
027450,000156: 35,3404           56002        PARAM30            XCH      Q                                     
027451,000157: 35,3405           55664                           TS       P30/31RT                              
027452,000158: 35,3406           33442                           CAF      V06N42                                
027453,000159: 35,3407           04676                           TC       BANKCALL                              
027454,000160: 35,3410           20720                           CADR     GOFLASH                               
027455,000161: 35,3411           04106                           TC       GOTOPOOH                              #  ON TERMINATION GOTOPOOH
027456,000162: 35,3412           13414                           TCF      REFTEST                               #  ON PROCEED GO DO REFTEST
027457,000163: 35,3413           13406                           TCF      PARAM30    +2                         
027458,000164: 35,3414           35017        REFTEST            CAF      BIT13                                 
027459,000165: 35,3415           70077                           MASK     STATE      +3                         #  REFSMFLAG
027460,000166: 35,3416           00006                           EXTEND                                         
027461,000167: 35,3417           13427                           BZF      NOTSET                                #  REFSMFLAG =0, THEN BRANCH TO NOTSET
027462,000168: 35,3420           06006                           TC       INTPRET                               
027463,000169: 35,3421           41575                           VLOAD    PUSH                                  
027464,000170: 35,3422           03646                                    DELVSIN                               
027465,000171: 35,3423           77624                           CALL                                           
027466,000172: 35,3424           10654                                    GET+MGA                               
027467,000173: 35,3425           77650                           GOTO                                           
027468,000174: 35,3426           73433                                    FLASHMGA                              
027469,000175: 35,3427           00006        NOTSET             EXTEND                                         
027470,000176: 35,3430           43440                           DCS      MARSDP                                
027471,000177: 35,3431           53626                           DXCH     +MGA                                  #  +MGA, +MGA+1 CONTAINS (-00001)
027472,000178: 35,3432           06006                           TC       INTPRET                               
027473,000179: 35,3433           77624        FLASHMGA           CALL                                           
027474,000180: 35,3434           73264                                    DISPMGA                               
027475,000181: 35,3435           77776                           EXIT                                           
027476,000182: 35,3436           01664                           TC       P30/31RT                              
027477,000183: 35,3437           00000        MARSDP             OCT      00000                                 #  (00000) (16440) = (+00001)
027478,000184: 35,3440           35100                           OCT      35100                                 
027479,000185:                                                                                                  #  ( .01 ) DEGREES IN THE LOW ORDER REGISTE
027480,000186: 
027481,000187: 35,3441           01441        V06N33             VN       0633                                  
027482,000188: 35,3442           01452        V06N42             VN       0642                                  
027483,000189: 35,3443           04043        V16N35             VN       1635                                  
027484,000190: 35,3444           01455        V06N45             VN       0645                                  
027485,000191: 
027486,000192:                                                                                                  #  PROGRAM DESCRIPTION S30.1     DATE 9NOV66
027487,000193:                                                                                                  #  MOD NO 1                      LOG SECTION P30,P37
027488,000194:                                                                                                  #  MOD BY RAMA AIYAWAR **
027489,000195:                                                                                                  #  MOD.2 BY S.ZELDIN - TO CORRECT MOD.1 FOR COLOSSUS             29DEC67
027490,000196: 
027491,000197:                                                                                                  #  FUNCTIONAL DESCRIPTION
027492,000198:                                                                                                  #        BASED ON STORED TARGET PARAMETERS (R OF IGNITION (RTIG), V OF
027493,000199:                                                                                                  #        IGNITION (VTIG), TIME OF IGNITION (TIG), DELV(LV), COMPUTE PERIGEE ALTITUDE
027494,000200:                                                                                                  #        A+OGEE ALTITUDE AND DELTA-V REQUIRED IN REF. COORDS. (DELVSIN)
027495,000201: 
027496,000202:                                                                                                  #  CALLING SEQUENCE
027497,000203:                                                                                                  #        L       CALL
027498,000204:                                                                                                  #        L+1             S30.1
027499,000205: 
027500,000206:                                                                                                  #  NORMAL EXIT MODE
027501,000207:                                                                                                  #        AT L+2 OR CALLING SEQUENCE (GOTO L+2)
027502,000208: 
027503,000209:                                                                                                  #  SUBROUTINES CALLED
027504,000210:                                                                                                  #        THISPREC
027505,000211:                                                                                                  #        PERIAPO
027506,000212: 
027507,000213:                                                                                                  #  ALARM OR ABORT EXIT MODES
027508,000214:                                                                                                  #        NONE
027509,000215: 
027510,000216:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
027511,000217:                                                                                                  #        TIG             TIME OF IGNITION        DP B28CS
027512,000218:                                                                                                  #        DELVSLV         SPECIFIED DELTA-V IN LOCAL VERT.
027513,000219:                                                                                                  #                        COORDS. OF ACTIVE VEHICLE AT
027514,000220:                                                                                                  #                        TIME OF IGNITION        VCT. B+7 M/CS
027515,000221: 
027516,000222:                                                                                                  #  OUTPUT
027517,000223:                                                                                                  #        RTIG            POSITION AT TIG         VCT.    B+29 M
027518,000224:                                                                                                  #        VTIG            VELOCITY AT TIG         VCT.    B+7 M
027519,000225:                                                                                                  #        HAPO            APOGEE ALT.             DP      B+29 M
027520,000226:                                                                                                  #        HPER            PERIGEE ALT.            DP      B+29 M
027521,000227:                                                                                                  #        DELVSIN         DELVSLV IN REF COORDS   VCT.    B+7 M/CS
027522,000228:                                                                                                  #        VGDISP          MAG. OF DELVSIN         DP      B+7 M/CS
027523,000229: 
027524,000230:                                                                                                  #  DEBRIS        QTEMP   TEMP.ERASABLE
027525,000231:                                                                                                  #                QPRET, MPAC
027526,000232:                                                                                                  #                PUSHLIST
027527,000233: 
027528,000234: 31,2000                                           SETLOC   P30S1A                                
027529,000235: 31,2000                                           BANK                                           
027530,000236: 
027531,000237: 31,3501                                           COUNT    35/S30S                               
027532,000238: 
027533,000239: 31,3501           71220        S30.1              STQ      DLOAD                                 
027534,000240: 31,3502           03657                                    QTEMP                                 
027535,000241: 31,3503           03413                                    TIG                                   #  TIME IGNITION SCALED AT 2(+28)CS
027536,000242: 31,3504           34041                           STCALL   TDEC1                                 
027537,000243: 31,3505           27100                                    THISPREC                              #  ENCKE ROUTINE FOR 
027538,000244: 
027539,000245: 31,3506           67175                           VLOAD    SXA,2                                 
027540,000246: 31,3507           00007                                    VATT                                  
027541,000247: 31,3510           03746                                    RTX2                                  
027542,000248: 31,3511           27640                           STOVL    VTIG                                  
027543,000249: 31,3512           00001                                    RATT                                  
027544,000250: 31,3513           03632                           STORE    RTIG                                  
027545,000251: 31,3514           03540                           STORE    RACT3                                 
027546,000252: 31,3515           53435                           VXV      UNIT                                  
027547,000253: 31,3516           03640                                    VTIG                                  
027548,000254: 31,3517           36617                           STCALL   UNRM                                  
027549,000255: 31,3520           72666                                    LOMAT                                 
027550,000256: 31,3521           61375                           VLOAD    VXM                                   
027551,000257: 31,3522           03405                                    DELVSLV                               
027552,000258: 31,3523           00001                                    0                                     
027553,000259: 31,3524           66172                           VSL1     SXA,1                                 
027554,000260: 31,3525           03745                                    RTX1                                  
027555,000261: 31,3526           03646                           STORE    DELVSIN                               
027556,000262: 31,3527           77646                           ABVAL                                          
027557,000263: 31,3530           27773                           STOVL    VGDISP                                #  MAG DELV
027558,000264: 31,3531           03632                                    RTIG                                  
027559,000265: 31,3532           53315                           PDVL     VAD                                   
027560,000266: 31,3533           03646                                    DELVSIN                               
027561,000267: 31,3534           03640                                    VTIG                                  
027562,000268: 31,3535           77624                           CALL                                           
027563,000269: 31,3536           45153                                    PERIAPO1                              
027564,000270: 31,3537           77624                           CALL                                           
027565,000271: 31,3540           45263                                    SHIFTR1                               
027566,000272: 31,3541           77624                           CALL                                           
027567,000273: 31,3542           46756                                    MAXCHK                                
027568,000274: 31,3543           16366                           STODL    HPER                                  #  PERIGEE ALT B+29
027569,000275: 31,3544           00005                                    4D                                    
027570,000276: 31,3545           77624                           CALL                                           
027571,000277: 31,3546           45263                                    SHIFTR1                               
027572,000278: 31,3547           77624                           CALL                                           
027573,000279: 31,3550           46756                                    MAXCHK                                
027574,000280: 31,3551           36364                           STCALL   HAPO                                  #  APOGEE ALT B+29
027575,000281: 31,3552           03657                                    QTEMP                                 
027576,000282: 
027577,000283:                                                                                                  #  S31.1 PROGRAM DESCRIPTION             28DEC67
027578,000284:                                                                                                  #  MOD.1 BY S.ZELDIN
027579,000285: 
027580,000286:                                                                                                  #  S31.1 COMPUTES DELV IN REF AND LV COORDS,MAG OF DELV,INTERCEPT TIME,
027581,000287:                                                                                                  #  APOGEE AND PERIGEE ALT FOR REQUIRED MANEUVER
027582,000288: 
027583,000289:                                                                                                  #  CALLING SEQUENCE
027584,000290:                                                                                                  #        L       CALL
027585,000291:                                                                                                  #        L+1             S31.1
027586,000292: 
027587,000293:                                                                                                  #  NORMAL EXIT MODE
027588,000294:                                                                                                  #        AT L +2 OF CALLING SEQUENCE (GOTO L+2)
027589,000295: 
027590,000296:                                                                                                  #  SUBROUTINES CALLED
027591,000297:                                                                                                  #        AGAIN
027592,000298:                                                                                                  #        PERIAPO1
027593,000299:                                                                                                  #        SHIFTR1
027594,000300:                                                                                                  #        MIDGIM
027595,000301: 
027596,000302:                                                                                                  #  NO ALARM OR ABORT MODES
027597,000303: 
027598,000304:                                                                                                  #  INPUT
027599,000305:                                                                                                  #        DELLT4          DP      +28
027600,000306:                                                                                                  #        TIG             DP      +28
027601,000307:                                                                                                  #        RTARG           VCT     +29
027602,000308: 
027603,000309:                                                                                                  #  OUTPUT
027604,000310:                                                                                                  #        DELVLVC         VCT     +7
027605,000311:                                                                                                  #        VGDISP          DP      +7
027606,000312:                                                                                                  #        HAPO            DP      +29
027607,000313:                                                                                                  #        HPER            DP      +29
027608,000314:                                                                                                  #        TPASS4          DP      +28
027609,000315: 
027610,000316:                                                                                                  #  DEBRIS - QTEMP
027611,000317: 
027612,000318: 31,3553           71220        S31.1              STQ      DLOAD                                 
027613,000319: 31,3554           03657                                    QTEMP                                 
027614,000320: 31,3555           03413                                    TIG                                   
027615,000321: 31,3556           34041                           STCALL   TDEC1                                 
027616,000322: 31,3557           61651                                    AGAIN                                 #  RETURNS RTX2,RTX1,RATT,VATT,VIPRIME
027617,000323: 31,3560           63375                           VLOAD    PDVL                                  #  DELUEET3
027618,000324: 31,3561           03632                                    RTIG                                  
027619,000325: 31,3562           03612                                    VIPRIME                               
027620,000326: 31,3563           77624                           CALL                                           
027621,000327: 31,3564           45153                                    PERIAPO1                              
027622,000328: 31,3565           77624                           CALL                                           
027623,000329: 31,3566           45263                                    SHIFTR1                               
027624,000330: 31,3567           77624                           CALL                                           
027625,000331: 31,3570           46756                                    MAXCHK                                
027626,000332: 31,3571           16366                           STODL    HPER                                  #  B29
027627,000333: 31,3572           00005                                    4D                                    
027628,000334: 31,3573           77624                           CALL                                           
027629,000335: 31,3574           45263                                    SHIFTR1                               
027630,000336: 31,3575           77624                           CALL                                           
027631,000337: 31,3576           46756                                    MAXCHK                                
027632,000338: 31,3577           26364                           STOVL    HAPO                                  #  B29
027633,000339: 31,3600           03646                                    DELVEET3                              
027634,000340: 31,3601           00001                           STORE    0                                     
027635,000341: 31,3602           45014                           SET      CALL                                  
027636,000342: 31,3603           01072                                    AVFLAG                                
027637,000343: 31,3604           10647                                    MIDGIM                                #  GET DELVLVC B7 FOR DISPLAY
027638,000344: 31,3605           77646                           ABVAL                                          
027639,000345: 31,3606           17773                           STODL    VGDISP                                #  B+7 FOR DISPLAY
027640,000346: 31,3607           03423                                    DELLT4                                
027641,000347: 31,3610           77615                           DAD                                            
027642,000348: 31,3611           03413                                    TIG                                   
027643,000349: 31,3612           37656                           STCALL   TPASS4                                #  FOR S40.1
027644,000350: 31,3613           03657                                    QTEMP                                 
027645,000351: 
027646,000352:                                                                                                  #  SUBROUTINE NAME:      DELRSPL         (CONTINUATION OF V 82 IN CSM IF P11 ACTI
027647,000353:                                                                                                  #  TRANSFERRED COMPLETELY FROM SUNDISK, P30S REV 33.  9 SEPT 67.
027648,000354:                                                                                                  #  MOD NO: 0     MOD BY: ZELDIN          DATE:
027649,000355:                                                                                                  #  MOD NO: 1     MOD BY: RR BAIRNSFATHER DATE: 11 APR 67
027650,000356:                                                                                                  #  MOD NO: 2     MOD BY: RR BAIRNSFATHER DATE: 12 MAY 67         ADD UR.RT CALC WHEN BELOW 300K FT
027651,000357:                                                                                                  #  MOD NO: 2.1   MOD BY: RR BAIRNSFATHER DATE: 5 JULY 67         FIX ERROR IN MOD. 2.
027652,000358:                                                                                                  #  MOD NO: 3     MOD BY: RR BAIRNSFATHER DATE: 12 JUL 67         CHANGE SIGN OF DISPLAYED ERROR.
027653,000359:                                                                                                  #  MOD 4         MOD BY  S.ZELDIN        DATE  3 APRIL 68        CHANGE EQUATIONS FOR L/D=.18 WHICH REPLA
027654,000360: 
027655,000361:                                                                                                  #  FUNCTION:     CALCULATE (FOR DISPLAY ON CALL) AN APPROXIMATE MEASURE OF IN-PLANE SPLASH DOWN
027656,000362:                                                                                                  #                ERROR.  IF THE FREE-FALL TRANSFER ANGLE TO 300K FT ABOVE PAD RADIUS IS POSITIVE:
027657,000363:                                                                                                  #                SPLASH ERROR= -RANGE TO TARGET + FREE-FALL TRANSFER ANGLE + ESTIMATED ENTRY ANGLE.
027658,000364:                                                                                                  #                THE TARGET LOCATION AT ESTIMATED TIME OF IMPACT IS USED.  IF THE FREE-FALL TRANSFER
027659,000365:                                                                                                  #                ANGLE IS NEGATIVE:  SPLASH ERROR= -RANGE TO TARGET
027660,000366:                                                                                                  #                THE PRESENT TARGET LOCATION IS USED.
027661,000367: 
027662,000368:                                                                                                  #  CALLING SEQUENCE  CALLED AFTER SR30.1 IF IN CSM AND IF P11 OPERATING (UNDER CONTROL OF V82)
027663,000369: 
027664,000370:                                                                                                  #  SUBROUTINES CALLED:  VGAMCALC, TFF/TRIG, LALOTORV.
027665,000371: 
027666,000372:                                                                                                  #  EXIT          RETURN DIRECTLY TO V 82 PROG. AT SPLRET
027667,000373: 
027668,000374:                                                                                                  #  ERASABLE INITIALIZATION   LEFT BY SR30.1 AND V82GON1
027669,000375: 
027670,000376:                                                                                                  #  OUTPUT:       RSP-RREC RANGE IN REVOLUTIONS                   DSKY DISPLAY IN N. MI.
027671,000377: 
027672,000378:                                                                                                  #  DEBRIS:       QPRET, PDL0 ... PDL7, PDL10
027673,000379: 
027674,000380:                                                                                                  #  THETA(1)
027675,000381: 
027676,000382: 32,2017                                           BANK     32                                    
027677,000383: 32,2000                                           SETLOC   DELRSPL1                              
027678,000384: 32,2000                                           BANK                                           
027679,000385: 32,2017                                           COUNT*   $$/P30                                #  PROGRAMS: P30 EXTERNAL DELTA V
027680,000386: 
027681,000387: 32,2017           00011        DELRSPL            STORE    8D                                    
027682,000388: 32,2020           45244                           BPL      DSU                                   
027683,000389: 32,2021           64067                                    CANTDO                                #  GONE PAST 300K FT ALT
027684,000390: 32,2022           16326                                    1BITDP                                
027685,000391: 32,2023           45000                           BOV      CALL                                  
027686,000392: 32,2024           64067                                    CANTDO                                #  POSMAX INDICATES NO 300K FT SOLUTION.
027687,000393: 32,2025           55050                                    VGAMCALC                              #  +GAMMA(REV) IN PMAC,V300 MAG(B-7)=PDL 0
027688,000394: 32,2026           45006                           PUSH     CALL                                  
027689,000395: 32,2027           56632                                    TFF/TRIG                              
027690,000396: 32,2030           77624                           CALL                                           
027691,000397: 32,2031           64075                                    AUGEKUGL                              
027692,000398: 32,2032           65525                           PDDL     ACOS                                  #  T ENTRY PDL 6
027693,000399: 32,2033           00017                                    CDELF/2                               
027694,000400: 32,2034           77615                           DAD                                            
027695,000401: 32,2035           00005                                    4                                     
027696,000402: 32,2036           26350        GETARG             STOVL    THETA(1)                              
027697,000403: 32,2037           03401                                    LAT(SPL)                              
027698,000404: 32,2040           15104                           STODL    LAT                                   
027699,000405: 32,2041           15334                                    HI6ZEROS                              
027700,000406: 32,2042           15110                           STODL    ALT                                   #  ALT=0 = LAT +4
027701,000407: 32,2043           01205                                    PIPTIME                               
027702,000408: 32,2044           71214                           BON      DLOAD                                 
027703,000409: 32,2045           03711                                    V37FLAG                               
027704,000410: 32,2046           64050                                    +2                                    
027705,000411: 32,2047           02325                                    TSTART82                              
027706,000412: 32,2050           43225                           DSU      DAD                                   
027707,000413: 32,2051           00011                                    8D                                    
027708,000414: 32,2052           45014                           CLEAR    CALL                                  
027709,000415: 32,2053           00662                                    ERADFLAG                              
027710,000416: 32,2054           26447                                    LALOTORV                              #  R RECOV. IN ALPHAV AND MPAC
027711,000417: 
027712,000418: 32,2055           63256                           UNIT     PDVL                                  
027713,000419: 32,2056           02327                                    RONE                                  
027714,000420: 32,2057           50256                           UNIT     DOT                                   
027715,000421: 32,2060           65552                           SL1      ARCCOS                                
027716,000422: 32,2061           77621                           BDSU                                           #  ERROR = THETA EST - THETA TARG
027717,000423:                                                                                                  #  NEGATIVE NUMBER SIGNIFIES THAT WILL FALL SHORT.
027718,000424:                                                                                                  #  POSITIVE NUMBER SIGNIFIES THAT WILL OVERSHOOT.
027719,000425: 32,2062           02350                                    THETA(1)                              
027720,000426: 32,2063           36356        DELRDONE           STCALL   RSP-RREC                              #  DOWNRANGE RECOVERY RANGE ERROR        /360
027721,000427: 32,2064           27461                                    INTWAKE0                              
027722,000428: 32,2065           77624                           CALL                                           
027723,000429: 32,2066           46655                                    SPLRET                                
027724,000430: 32,2067           65345        CANTDO             DLOAD    PDDL                                  #  INITIALIZE ERASE TO DOT TARGET AND UR
027725,000431:                                                                                                  #  FOR RANGE ANGLE.
027726,000432: 32,2070           15332                                    HIDPHALF                              #  TO PDL 0 FOR DEN INDDV.
027727,000433: 32,2071           15334                                    HI6ZEROS                              
027728,000434: 32,2072           77606                           PUSH                                           #  ZERO TO PDL 2 FOR PHI ENTRY
027729,000435: 32,2073           34011                           STCALL   8D                                    
027730,000436: 32,2074           64036                                    GETARG                                #  GO SET RSP-RREC =0
027731,000437: 
027732,000438: 32,2075           77775        AUGEKUGL           VLOAD                                          
027733,000439: 32,2076           24256                                    X1CON      -2                         
027734,000440: 32,2077           14045                           STODL    X1         -2                         
027735,000441: 32,2100           00001                                    0                                     
027736,000442: 32,2101           50025                           DSU      BMN                                   
027737,000443: 32,2102           24250                                    V(21K)                                
027738,000444: 32,2103           64130                                    LOOPSET                               
027739,000445: 32,2104           65060                           XSU,1    XCHX,2                                
027740,000446: 32,2105           00050                                    S1                                    
027741,000447: 32,2106           00046                                    X1                                    
027742,000448: 32,2107           45324                           XCHX,2   DSU                                   
027743,000449: 32,2110           00050                                    S1                                    
027744,000450: 32,2111           24236                                    V(3K)                                 
027745,000451: 32,2112           65040                           BMN      XCHX,2                                
027746,000452: 32,2113           64130                                    LOOPSET                               
027747,000453: 32,2114           00050                                    S1                                    
027748,000454: 32,2115           50025                           DSU      BMN                                   
027749,000455: 32,2116           24246                                    V(4K)                                 
027750,000456: 32,2117           64130                                    LOOPSET                               
027751,000457: 32,2120           65124                           XCHX,2   XCHX,2                                
027752,000458: 32,2121           00050                                    S1                                    
027753,000459: 32,2122           00046                                    X1                                    
027754,000460: 32,2123           50025                           DSU      BMN                                   
027755,000461: 32,2124           24232                                    V(400)                                
027756,000462: 32,2125           64130                                    LOOPSET                               
027757,000463: 32,2126           77730                           SXA,1                                          
027758,000464: 32,2127           00050                                    S1                                    
027759,000465: 32,2130           52110        LOOPSET            INCR,1   GOTO                                  
027760,000466: 32,2131           00001                           DEC      1          B-14                       
027761,000467: 32,2132           64135                                    K1K2LOOP                              
027762,000468: 32,2133           77730        K2CALC             SXA,1                                          
027763,000469: 32,2134           00050                                    S1                                    
027764,000470: 32,2135           44745        K1K2LOOP           DLOAD    DSU*                                  
027765,000471: 32,2136           00001                                    0                                     
027766,000472: 32,2137           24245                                    V(32K)     +1,1                       
027767,000473: 32,2140           42603                           DMP*     DAD*                                  
027768,000474: 32,2141           24231                                    YK1K2      +1,1                       
027769,000475: 32,2142           24215                                    CK1K2      +1,1                       
027770,000476: 32,2143           60125                           PDDL     TIX,1                                 
027771,000477: 32,2144           00003                                    2                                     
027772,000478: 32,2145           64133                                    K2CALC                                
027773,000479: 32,2146           55225                           DSU      BDDV                                  
027774,000480: 32,2147           40006                           PUSH     BOV                                   
027775,000481: 32,2150           64173                                    MAXPHI                                
027776,000482: 32,2151           45240                           BMN      DSU                                   
027777,000483: 32,2152           64173                                    MAXPHI                                
027778,000484: 32,2153           24200                                    MAXPHIC                               
027779,000485: 32,2154           77644                           BPL                                            
027780,000486: 32,2155           64173                                    MAXPHI                                
027781,000487: 32,2156           45345        PHICALC            DLOAD    DSU                                   #  PHI ENTRY PDL 4D
027782,000488: 32,2157           00001                                    0                                     
027783,000489: 32,2160           24256                                    V(26K)                                
027784,000490: 32,2161           71244                           BPL      DLOAD                                 
027785,000491: 32,2162           64170                                    TGR26                                 
027786,000492: 32,2163           24252                                    TLESS26                               
027787,000493: 32,2164           77671                           DDV                                            
027788,000494: 32,2165           00001                                    0                                     
027789,000495: 32,2166           43405        TENT               DMP      RVQ                                   
027790,000496: 32,2167           00005                                    4D                                    
027791,000497: 32,2170           52145        TGR26              DLOAD    GOTO                                  
027792,000498: 32,2171           24254                                    TGR26CON                              
027793,000499: 32,2172           64166                                    TENT                                  
027794,000500: 
027795,000501: 32,2173           65345        MAXPHI             DLOAD    PDDL                                  
027796,000502: 32,2174           24200                                    MAXPHIC                               
027797,000503: 32,2175           77650                           GOTO                                           
027798,000504: 32,2176           64156                                    PHICALC                               
027799,000505: 32,2177           02755 01307  MAXPHIC            2DEC     .09259298                             #  2000 NM FOR MAXIMUM PHI ENTRY
027800,000506: 
027801,000507: 
027802,000508: 32,2201                                           COUNT*   $$/P30                                
027803,000509: 
027804,000510:                                                                                                  #                BELOW
027805,000511:                                                                                                  #  <<<< TABLE IS INDEXED. KEEP IN ORDER >>>
027806,000512: 
027807,000513: 32,2201           00013 22652                     2DEC     7.07304526 E-4                        #  5500
027808,000514: 32,2203           00005 01642                     2DEC     3.08641975 E-4                        #  2400
027809,000515: 32,2205           00005 01642                     2DEC     3.08641975 E-4                        #  2400
027810,000516: 32,2207           77556 53522                     2DEC     -8.8888888 E-3                        #  -3.2
027811,000517: 32,2211           00055 20266                     2DEC     2.7777777  E-3                        #  1
027812,000518: 32,2213           00155 07202  CK1K2              2DEC     6.6666666  E-3                        #  2.4
027813,000519: 32,2215           00000 00000                     2DEC     0          B-28                       #  0
027814,000520: 32,2217           77730 71525                     2DEC*    -1.86909989 E-5        B7*             #  -.443
027815,000521: 32,2221           00000 00000                     2DEC     0          B-28                       
027816,000522: 32,2223           04445 10102                     2DEC*    1.11639691 E-3        B7*             #  .001225
027817,000523: 32,2225           03726 31201                     2DEC*    9.56911636 E-4        B7*             #  .00105
027818,000524: 32,2227           01040 26313  YK1K2              2DEC*    2.59733157 E-4        B7*             #  .000285
027819,000525: 32,2231           00234 01660  V(400)             2DEC     1.2192     B-7                        
027820,000526: 32,2233           25254 01014  V(28K)             2DEC     85.344     B-7                        
027821,000527: 32,2235           02222 15646  V(3K)              2DEC     9.144      B-7                        
027822,000528: 32,2237           22223 16457  V(24K)             2DEC     73.152     B-7                        
027823,000529: 32,2241           25254 01014                     2DEC     85.344     B-7                        
027824,000530: 32,2243           30304 23351  V(32K)             2DEC     97.536     B-7                        
027825,000531: 32,2245           03030 22335  V(4K)              2DEC     12.192     B-7                        
027826,000532: 32,2247           20000 00000  V(21K)             2DEC     64.000     B-7                        
027827,000533: 32,2251           00033 05763  TLESS26            2DEC*    5.70146688 E7         B-35*           #  8660PHI/V
027828,000534: 32,2253           00053 36200  TGR26CON           2DEC     7.2        E5         B-28            #  PHI/3
027829,000535: 32,2255           23637 27636  V(26K)             2DEC     79.248     B-7                        #  26000
027830,000536: 
027831,000537: 
027832,000538: 32,2257           00012        X1CON              DEC      10         B-14                       
027833,000539: 32,2260           00010                           DEC      8          B-14                       
027834,000540: 32,2261           00006                           DEC      6          B-14                       
027835,000541:                                                                                                  #  <<<< TABLE IS INDEXED. KEEP IN ORDER >>>
027836,000542:                                                                                                  #                     ABOVE
027837,000543:                                                                                                  #  ..... AVFLAGA/P .....
027838,000544: 
027839,000545:                                                                                                  #  SUBROUTINES USED
027840,000546: 
027841,000547:                                                                                                  #        UPFLAG
027842,000548:                                                                                                  #        DOWNFLAG
027843,000549: 
027844,000550:    4000                                           SETLOC   P30SUBS                               
027845,000551:    4000                                           BANK                                           
027846,000552:    4627  E4,1770                                  EBANK=   SUBEXIT                               
027847,000553:    4627           00006        AVFLAGA            EXTEND                                         #  AVFLAG = CSM
027848,000554:    4630           23770                           QXCH     SUBEXIT                               
027849,000555:    4631           05574                           TC       DOWNFLAG                              
027850,000556:    4632           00050                           ADRES    AVFLAG                                #  BIT 5 FLAG 2
027851,000557:    4633           35074                           CAF      EBANK7                                
027852,000558:    4634           54003                           TS       EBANK                                 
027853,000559:    4635  E7,1424                                  EBANK=   ECSTEER                               
027854,000560:    4635           35017                           CAF      BIT13                                 
027855,000561:    4636           55424                           TS       ECSTEER                               #  SET ECSTEER = 1
027856,000562:    4637           35021                           CAF      EBANK4                                
027857,000563:    4640           54003                           TS       EBANK                                 
027858,000564:    4641  E4,1770                                  EBANK=   SUBEXIT                               
027859,000565:    4641           01770                           TC       SUBEXIT                               
027860,000566:    4642           00006        AVFLAGP            EXTEND                                         #  AVFLAG = LEM
027861,000567:    4643           23770                           QXCH     SUBEXIT                               
027862,000568:    4644           05562                           TC       UPFLAG                                
027863,000569:    4645           00050                           ADRES    AVFLAG                                #  BIT 5 FLAG 2
027864,000570:    4646           01770                           TC       SUBEXIT                               
027865,000571:    4647           00006        P20FLGON           EXTEND                                         
027866,000572:    4650           23770                           QXCH     SUBEXIT                               
027867,000573:    4651           05562                           TC       UPFLAG                                
027868,000574:    4652           00031                           ADRES    TRACKFLG                              
027869,000575:    4653           05562                           TC       UPFLAG                                
027870,000576:    4654           00027                           ADRES    UPDATFLG                              
027871,000577:    4655           01770                           TC       SUBEXIT                               #  DP B4
027872,000578: 
027873,000579: 

End of include-file P30,P37.agc.  Parent file is MAIN.agc