Source Code

These source-code files are part of a reconstructed copy of Comanche 45, the second release, though not the final mission release, of the Apollo 10 Command Module (CM) Apollo Guidance Computer (AGC) software. Comanche 45 was preceded by Comanche 44 and followed by Comanche 45/2 (the flown release). The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 45, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 44 (itself previously accurately reconstructed). Comanche 44 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 44 and 45. The now-reconstructed Comanche 45 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 listing.

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
There is also a detailed commentary about the reconstruction process.

Comments expected to have been present in the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC Project's GitHub repository.

027686,000002:                                                                                                  ## Copyright:   Public domain.
027687,000003:                                                                                                  ## Filename:    P30,P37.agc
027688,000004:                                                                                                  ## Purpose:     A section of Comanche revision 045.
027689,000005:                                                                                                  ##              It is part of the reconstructed source code for the
027690,000006:                                                                                                  ##              second release of the flight software for the Command
027691,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
027692,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
027693,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
027694,000010:                                                                                                  ##              exactly match those specified for Comanche 45 in NASA drawing
027695,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
027696,000012:                                                                                                  ##              reconstruction is correct.
027697,000013:                                                                                                  ## Assembler:   yaYUL
027698,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
027699,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
027700,000016:                                                                                                  ## Mod history: 2020-12-06 MAS  Created from Comanche 44.
027701,000017: 

Page 635

027703,000019: 32,2017                                           BANK     32                                    
027704,000020: 
027705,000021: 35,2000                                           SETLOC   P30S1                                 
027706,000022: 35,2000                                           BANK                                           
027707,000023: 
027708,000024: 35,3270  E7,1625                                  EBANK=   +MGA                                  
027709,000025: 
027710,000026: 35,3270                                           COUNT    35/P34                                
027711,000027: 
027712,000028: 35,3270           77420        DISPMGA            STQ      EXIT                                  #  USED IN P30
027713,000029: 
027714,000030: 35,3271           02370                                    RGEXIT                                
027715,000031: 35,3272           03310                           TC       COMPTGO                               
027716,000032: 
027717,000033: 35,3273           34621        DISP45             CAF      V16N45                                
027718,000034: 35,3274           04662                           TC       BANKCALL                              
027719,000035: 35,3275           21057                           CADR     GOFLASHR                              
027720,000036: 35,3276           04106                           TC       GOTOPOOH                              
027721,000037: 35,3277           03304                           TC       END45                                 
027722,000038: 35,3300           03273                           TC       DISP45                                
027723,000039: 35,3301           05412        P30PHSI            TC       PHASCHNG                              
027724,000040: 35,3302           00014                           OCT      14                                    
027725,000041: 35,3303           05217                           TCR      ENDOFJOB                              
027726,000042: 35,3304           06006        END45              TC       INTPRET                               
027727,000043: 35,3305           52014                           CLEAR    GOTO                                  
027728,000044: 35,3306           03664                                    TIMRFLAG                              
027729,000045: 35,3307           02370                                    RGEXIT                                
027730,000046: 
027731,000047: 35,3310           00006        COMPTGO            EXTEND                                         #  USED TO COMPUTE TTOGO
027732,000048: 35,3311           23066                           QXCH     PHSPRDT6                              #  ** GROUP 6 TEMPORARY USED ,, BEWARE **
027733,000049: 
027734,000050: 35,3312           05546                           TC       UPFLAG                                #  SET TIMRFLAG
027735,000051: 35,3313           00155                           ADRES    TIMRFLAG                              #  BIT 11 FLAG 7
027736,000052: 35,3314           35021                           CAF      ZERO                                  
027737,000053: 35,3315           55145                           TS       NVWORD1                               
027738,000054: 35,3316           00004                           INHINT                                         
027739,000055: 35,3317           35017                           CAF      ONE                                   
027740,000056: 35,3320           05245                           TC       WAITLIST                              
027741,000057: 35,3321  E7,1412                                  EBANK=   TIG                                   
027742,000058: 35,3321           03260 50067                     2CADR    CLOKTASK                              
027743,000059: 
027744,000060: 35,3323           05372                           TC       2PHSCHNG                              
027745,000061: 35,3324           40036                           OCT      40036                                 #  6.3SPOT FOR CLOKTASK
027746,000062: 35,3325           05024                           OCT      05024                                 #  GROUP 4 CONTINUES HERE
027747,000063: 35,3326           13000                           OCT      13000                                 
027748,000064: 
027749,000065: 35,3327           01066                           TC       PHSPRDT6                              

Page 636

027751,000067:                                                                                                  #  PROGRAM DESCRIPTION P30       DATE 3-6-67
027752,000068:                                                                                                  #  MOD. I BY S. ZELDIN-  TO ADD P31 AND ADAPT P30 FOR P31 USE.   22DEC67
027753,000069: 
027754,000070:                                                                                                  #  FUNCTIONAL DESCRIPTION
027755,000071:                                                                                                  #        +30     (EXTERNAL DELTA-V TARGETTING PROGRAM)
027756,000072:                                                                                                  #                ACCEPTS ASTRONAUT INPUTS OF TIG,DELV(LV) AND COMPUTES, FOR DISPLAY,
027757,000073:                                                                                                  #                APOGEE, PERIGEE, DELV(MAG), MGA ASSOCIATED WITH DESIRED MANEUVER
027758,000074:                                                                                                  #        P31     (GENERAL LAMBERT AIMPOINT GUIDANCE)
027759,000075:                                                                                                  #                A GROUND RULE FOR P31 IS THE ANGLE BETWEEN THE TARGET VECTOR AND
027760,000076:                                                                                                  #                POSITION VECTOR AT TIG IS NOT 165-195 DEGREES APART
027761,000077:                                                                                                  #                BASED ON STORED INPUT OF OFFSET TARGET(B+29) AND DELTA T TRANS, AND
027762,000078:                                                                                                  #                ASTRONAUT ENTRY OF TIG, P31 COMPUTES REQUIRED VELOCITY FOR MANEUVER
027763,000079:                                                                                                  #                AND, FOR DISPLAY, APOGEE, PERIGEE, DELV(7AG), +MGA ASSOCIATED WITH
027764,000080:                                                                                                  #                DESIRED MANEUVER
027765,000081: 
027766,000082:                                                                                                  #  THE FOLLOWING SUBROUTINES ARE USED IN P30 AND P31
027767,000083:                                                                                                  #        S30.1 (P30 ONLY)
027768,000084:                                                                                                  #        S31.1 (P31 ONLY)
027769,000085:                                                                                                  #        P30/P31 - DISPLAYS TIG
027770,000086:                                                                                                  #        CNTUP30 - DISPLAYS DELV(LV)
027771,000087:                                                                                                  #        PARAM30 - DISPLAYS APOGEE, PERIGEE, DELV(MAG), MGA, TIME FROM TIG,
027772,000088:                                                                                                  #                  MARKS SINCE LAST THRUSTING MANEUVER
027773,000089: 
027774,000090:                                                                                                  #  CALLING SEQUENCE VIA JOB FROM V37
027775,000091: 
027776,000092:                                                                                                  #  EXIT VIA V37 CALL OR GOTOPOOH
027777,000093: 
027778,000094:                                                                                                  #  OUTPUT FOR POWERED FLIGHT
027779,000095:                                                                                                  #        VTIG    X
027780,000096:                                                                                                  #        RTIG    X       SEE S30.1
027781,000097:                                                                                                  #        DELVSIN X
027782,000098:                                                                                                  #        VGDISP
027783,000099:                                                                                                  #        RTARG   X
027784,000100:                                                                                                  #        TPASS4  X       SEE S31.1
027785,000101:                                                                                                  #                X
027786,000102: 
027787,000103: 35,3330                                           COUNT    35/P30                                
027788,000104: 
027789,000105: 35,3330           03362        P30                TC       P30/P31                               
027790,000106: 35,3331           03401                           TC       CNTNUP30                              
027791,000107: 35,3332           05560                           TC       DOWNFLAG                              #  RESET UPDATFLG
027792,000108: 35,3333           00027                           ADRES    UPDATFLG                              #  BIT 7 FLAG 1
027793,000109: 35,3334           06006                           TC       INTPRET                               
027794,000110: 35,3335           77624                           CALL                                           
027795,000111: 35,3336           63475                                    S30.1                                 
027796,000112: 35,3337           77776                           EXIT                                           
027797,000113: 35,3340           03411                           TC       PARAM30                               
027798,000114: 35,3341           05546                           TC       UPFLAG                                

Page 637

027800,000116: 35,3342           00045                           ADRES    XDELVFLG                              #  SET XDELVFLG BIT 8 FLAG 2
027801,000117: 35,3343           14106                           TCF      GOTOPOOH                              
027802,000118: 
027803,000119: 35,3344           03362        P31                TC       P30/P31                               
027804,000120: 35,3345           05560                           TC       DOWNFLAG                              
027805,000121: 35,3346           00027                           ADRES    UPDATFLG                              #  RESET UPDATFLG BIT 7 FLAG 1
027806,000122: 35,3347           05560                           TC       DOWNFLAG                              
027807,000123: 35,3350           00156                           ADRES    NORMSW                                #  RESET NORMSW BIT 10 FLAG 7
027808,000124: 35,3351           06006                           TC       INTPRET                               
027809,000125: 35,3352           77624                           CALL                                           
027810,000126: 35,3353           63547                                    S31.1                                 
027811,000127: 35,3354           77776                           EXIT                                           
027812,000128: 35,3355           03401                           TC       CNTNUP30                              
027813,000129: 35,3356           03411                           TC       PARAM30                               
027814,000130: 35,3357           05560                           TC       DOWNFLAG                              
027815,000131: 35,3360           00045                           ADRES    XDELVFLG                              #  BIT 8 FLAG 2
027816,000132: 35,3361           14106                           TCF      GOTOPOOH                              
027817,000133: 
027818,000134: 35,3362           56002        P30/P31            XCH      Q                                     
027819,000135: 35,3363           55664                           TS       P30/31RT                              
027820,000136: 35,3364           05546                           TC       UPFLAG                                
027821,000137: 35,3365           00027                           ADRES    UPDATFLG                              #  SET UPDATFLG BIT 7 FLAG 1
027822,000138: 35,3366           05546                           TC       UPFLAG                                
027823,000139: 35,3367           00031                           ADRES    TRACKFLG                              #  SET TRACKFLG BIT 5 FLAG 1
027824,000140: 35,3370           33446                           CAF      V06N33                                #  T OF IGN
027825,000141: 35,3371           04662                           TC       BANKCALL                              
027826,000142: 35,3372           21057                           CADR     GOFLASHR                              
027827,000143: 35,3373           14106                           TCF      GOTOPOOH                              
027828,000144: 35,3374           01664                           TC       P30/31RT                              
027829,000145: 35,3375           13366                           TCF      P30/P31    +4                         
027830,000146: 35,3376           05412                           TC       PHASCHNG                              
027831,000147: 35,3377           00014                           OCT      00014                                 
027832,000148: 35,3400           05217                           TC       ENDOFJOB                              
027833,000149: 
027834,000150: 35,3401           56002        CNTNUP30           XCH      Q                                     
027835,000151: 35,3402           55127                           TS       P30/RET                               
027836,000152: 35,3403           34620                           CAF      V06N81                                
027837,000153: 35,3404           04662                           TC       BANKCALL                              
027838,000154: 35,3405           20720                           CADR     GOFLASH                               
027839,000155: 35,3406           14106                           TCF      GOTOPOOH                              
027840,000156: 35,3407           01127                           TC       P30/RET                               
027841,000157: 35,3410           13403                           TCF      CNTNUP30   +2                         
027842,000158: 35,3411           56002        PARAM30            XCH      Q                                     
027843,000159: 35,3412           55664                           TS       P30/31RT                              
027844,000160: 35,3413           33447                           CAF      V06N42                                
027845,000161: 35,3414           04662                           TC       BANKCALL                              
027846,000162: 35,3415           20720                           CADR     GOFLASH                               
027847,000163: 35,3416           04106                           TC       GOTOPOOH                              #  ON TERMINATION GOTOPOOH
027848,000164: 35,3417           13421                           TCF      REFTEST                               #  ON PROCEED GO DO REFTEST

Page 638

027850,000166: 35,3420           13413                           TCF      PARAM30    +2                         
027851,000167: 35,3421           35003        REFTEST            CAF      BIT13                                 
027852,000168: 35,3422           70077                           MASK     STATE      +3                         #  REFSMFLAG
027853,000169: 35,3423           00006                           EXTEND                                         
027854,000170: 35,3424           13434                           BZF      NOTSET                                #  REFSMFLAG =0, THEN BRANCH TO NOTSET
027855,000171: 35,3425           06006                           TC       INTPRET                               
027856,000172: 35,3426           41575                           VLOAD    PUSH                                  
027857,000173: 35,3427           03646                                    DELVSIN                               
027858,000174: 35,3430           77624                           CALL                                           
027859,000175: 35,3431           10654                                    GET+MGA                               
027860,000176: 35,3432           77650                           GOTO                                           
027861,000177: 35,3433           73440                                    FLASHMGA                              
027862,000178: 35,3434           00006        NOTSET             EXTEND                                         
027863,000179: 35,3435           43445                           DCS      MARSDP                                
027864,000180: 35,3436           53626                           DXCH     +MGA                                  #  +MGA, +MGA+1 CONTAINS (-00001)
027865,000181: 35,3437           06006                           TC       INTPRET                               
027866,000182: 35,3440           77624        FLASHMGA           CALL                                           
027867,000183: 35,3441           73270                                    DISPMGA                               
027868,000184: 35,3442           77776                           EXIT                                           
027869,000185: 35,3443           01664                           TC       P30/31RT                              
027870,000186: 35,3444           00000        MARSDP             OCT      00000                                 #  (00000) (16440) = (+00001)
027871,000187: 35,3445           35100                           OCT      35100                                 
027872,000188:                                                                                                  #  ( .01 ) DEGREES IN THE LOW ORDER REGISTE
027873,000189: 
027874,000190: 35,3446           01441        V06N33             VN       0633                                  
027875,000191: 35,3447           01452        V06N42             VN       0642                                  
027876,000192: 35,3450           04043        V16N35             VN       1635                                  
027877,000193: 35,3451           01455        V06N45             VN       0645                                  
027878,000194: 

Page 639

027880,000196:                                                                                                  #  PROGRAM DESCRIPTION S30.1     DATE 9NOV66
027881,000197:                                                                                                  #  MOD NO 1                      LOG SECTION P30,P37
027882,000198:                                                                                                  #  MOD BY RAMA AIYAWAR **
027883,000199:                                                                                                  #  MOD.2 BY S.ZELDIN - TO CORRECT MOD.1 FOR COLOSSUS             29DEC67
027884,000200: 
027885,000201:                                                                                                  #  FUNCTIONAL DESCRIPTION
027886,000202:                                                                                                  #        BASED ON STORED TARGET PARAMETERS (R OF IGNITION (RTIG), V OF
027887,000203:                                                                                                  #        IGNITION (VTIG), TIME OF IGNITION (TIG), DELV(LV), COMPUTE PERIGEE ALTITUDE
027888,000204:                                                                                                  #        A+OGEE ALTITUDE AND DELTA-V REQUIRED IN REF. COORDS. (DELVSIN)
027889,000205: 
027890,000206:                                                                                                  #  CALLING SEQUENCE
027891,000207:                                                                                                  #        L       CALL
027892,000208:                                                                                                  #        L+1             S30.1
027893,000209: 
027894,000210:                                                                                                  #  NORMAL EXIT MODE
027895,000211:                                                                                                  #        AT L+2 OR CALLING SEQUENCE (GOTO L+2)
027896,000212: 
027897,000213:                                                                                                  #  SUBROUTINES CALLED
027898,000214:                                                                                                  #        THISPREC
027899,000215:                                                                                                  #        PERIAPO
027900,000216: 
027901,000217:                                                                                                  #  ALARM OR ABORT EXIT MODES
027902,000218:                                                                                                  #        NONE
027903,000219: 
027904,000220:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
027905,000221:                                                                                                  #        TIG             TIME OF IGNITION        DP B28CS
027906,000222:                                                                                                  #        DELVSLV         SPECIFIED DELTA-V IN LOCAL VERT.
027907,000223:                                                                                                  #                        COORDS. OF ACTIVE VEHICLE AT
027908,000224:                                                                                                  #                        TIME OF IGNITION        VCT. B+7 M/CS
027909,000225: 
027910,000226:                                                                                                  #  OUTPUT
027911,000227:                                                                                                  #        RTIG            POSITION AT TIG         VCT.    B+29 M
027912,000228:                                                                                                  #        VTIG            VELOCITY AT TIG         VCT.    B+7 M
027913,000229:                                                                                                  #        HAPO            APOGEE ALT.             DP      B+29 M
027914,000230:                                                                                                  #        HPER            PERIGEE ALT.            DP      B+29 M
027915,000231:                                                                                                  #        DELVSIN         DELVSLV IN REF COORDS   VCT.    B+7 M/CS
027916,000232:                                                                                                  #        VGDISP          MAG. OF DELVSIN         DP      B+7 M/CS
027917,000233: 
027918,000234:                                                                                                  #  DEBRIS        QTEMP   TEMP.ERASABLE
027919,000235:                                                                                                  #                QPRET, MPAC
027920,000236:                                                                                                  #                PUSHLIST
027921,000237: 
027922,000238: 31,2000                                           SETLOC   P30S1A                                
027923,000239: 31,2000                                           BANK                                           
027924,000240: 
027925,000241: 31,3475                                           COUNT    35/S30S                               
027926,000242: 
027927,000243: 31,3475           71220        S30.1              STQ      DLOAD                                 
027928,000244: 31,3476           03657                                    QTEMP                                 
027929,000245: 31,3477           03413                                    TIG                                   #  TIME IGNITION SCALED AT 2(+28)CS
027930,000246: 31,3500           34041                           STCALL   TDEC1                                 
027931,000247: 31,3501           27071                                    THISPREC                              #  ENCKE ROUTINE FOR 
027932,000248: 
027933,000249: 31,3502           67175                           VLOAD    SXA,2                                 
027934,000250: 31,3503           00007                                    VATT                                  
027935,000251: 31,3504           03746                                    RTX2                                  
027936,000252: 31,3505           27640                           STOVL    VTIG                                  

Page 640

027938,000254: 31,3506           00001                                    RATT                                  
027939,000255: 31,3507           03632                           STORE    RTIG                                  
027940,000256: 31,3510           03540                           STORE    RACT3                                 
027941,000257: 31,3511           53435                           VXV      UNIT                                  
027942,000258: 31,3512           03640                                    VTIG                                  
027943,000259: 31,3513           36617                           STCALL   UNRM                                  
027944,000260: 31,3514           72667                                    LOMAT                                 
027945,000261: 31,3515           61375                           VLOAD    VXM                                   
027946,000262: 31,3516           03405                                    DELVSLV                               
027947,000263: 31,3517           00001                                    0                                     
027948,000264: 31,3520           66172                           VSL1     SXA,1                                 
027949,000265: 31,3521           03745                                    RTX1                                  
027950,000266: 31,3522           03646                           STORE    DELVSIN                               
027951,000267: 31,3523           77646                           ABVAL                                          
027952,000268: 31,3524           27773                           STOVL    VGDISP                                #  MAG DELV
027953,000269: 31,3525           03632                                    RTIG                                  
027954,000270: 31,3526           53315                           PDVL     VAD                                   
027955,000271: 31,3527           03646                                    DELVSIN                               
027956,000272: 31,3530           03640                                    VTIG                                  
027957,000273: 31,3531           77624                           CALL                                           
027958,000274: 31,3532           45153                                    PERIAPO1                              
027959,000275: 31,3533           77624                           CALL                                           
027960,000276: 31,3534           45263                                    SHIFTR1                               
027961,000277: 31,3535           77624                           CALL                                           
027962,000278: 31,3536           46754                                    MAXCHK                                
027963,000279: 31,3537           16366                           STODL    HPER                                  #  PERIGEE ALT B+29
027964,000280: 31,3540           00005                                    4D                                    
027965,000281: 31,3541           77624                           CALL                                           
027966,000282: 31,3542           45263                                    SHIFTR1                               
027967,000283: 31,3543           77624                           CALL                                           
027968,000284: 31,3544           46754                                    MAXCHK                                
027969,000285: 31,3545           36364                           STCALL   HAPO                                  #  APOGEE ALT B+29
027970,000286: 31,3546           03657                                    QTEMP                                 
027971,000287: 

Page 641

027973,000289:                                                                                                  #  S31.1 PROGRAM DESCRIPTION             28DEC67
027974,000290:                                                                                                  #  MOD.1 BY S.ZELDIN
027975,000291: 
027976,000292:                                                                                                  #  S31.1 COMPUTES DELV IN REF AND LV COORDS,MAG OF DELV,INTERCEPT TIME,
027977,000293:                                                                                                  #  APOGEE AND PERIGEE ALT FOR REQUIRED MANEUVER
027978,000294: 
027979,000295:                                                                                                  #  CALLING SEQUENCE
027980,000296:                                                                                                  #        L       CALL
027981,000297:                                                                                                  #        L+1             S31.1
027982,000298: 
027983,000299:                                                                                                  #  NORMAL EXIT MODE
027984,000300:                                                                                                  #        AT L +2 OF CALLING SEQUENCE (GOTO L+2)
027985,000301: 
027986,000302:                                                                                                  #  SUBROUTINES CALLED
027987,000303:                                                                                                  #        AGAIN
027988,000304:                                                                                                  #        PERIAPO1
027989,000305:                                                                                                  #        SHIFTR1
027990,000306:                                                                                                  #        MIDGIM
027991,000307: 
027992,000308:                                                                                                  #  NO ALARM OR ABORT MODES
027993,000309: 
027994,000310:                                                                                                  #  INPUT
027995,000311:                                                                                                  #        DELLT4          DP      +28
027996,000312:                                                                                                  #        TIG             DP      +28
027997,000313:                                                                                                  #        RTARG           VCT     +29
027998,000314: 
027999,000315:                                                                                                  #  OUTPUT
028000,000316:                                                                                                  #        DELVLVC         VCT     +7
028001,000317:                                                                                                  #        VGDISP          DP      +7
028002,000318:                                                                                                  #        HAPO            DP      +29
028003,000319:                                                                                                  #        HPER            DP      +29
028004,000320:                                                                                                  #        TPASS4          DP      +28
028005,000321: 
028006,000322:                                                                                                  #  DEBRIS - QTEMP
028007,000323: 
028008,000324: 31,3547           71220        S31.1              STQ      DLOAD                                 
028009,000325: 31,3550           03657                                    QTEMP                                 
028010,000326: 31,3551           03413                                    TIG                                   
028011,000327: 31,3552           34041                           STCALL   TDEC1                                 
028012,000328: 31,3553           61651                                    AGAIN                                 #  RETURNS RTX2,RTX1,RATT,VATT,VIPRIME
028013,000329: 31,3554           63375                           VLOAD    PDVL                                  #  DELUEET3
028014,000330: 31,3555           03632                                    RTIG                                  
028015,000331: 31,3556           03612                                    VIPRIME                               
028016,000332: 31,3557           77624                           CALL                                           
028017,000333: 31,3560           45153                                    PERIAPO1                              
028018,000334: 31,3561           77624                           CALL                                           
028019,000335: 31,3562           45263                                    SHIFTR1                               
028020,000336: 31,3563           77624                           CALL                                           
028021,000337: 31,3564           46754                                    MAXCHK                                
028022,000338: 31,3565           16366                           STODL    HPER                                  #  B29
028023,000339: 31,3566           00005                                    4D                                    
028024,000340: 31,3567           77624                           CALL                                           
028025,000341: 31,3570           45263                                    SHIFTR1                               
028026,000342: 31,3571           77624                           CALL                                           
028027,000343: 31,3572           46754                                    MAXCHK                                
028028,000344: 31,3573           26364                           STOVL    HAPO                                  #  B29

Page 642

028030,000346: 31,3574           03646                                    DELVEET3                              
028031,000347: 31,3575           00001                           STORE    0                                     
028032,000348: 31,3576           45014                           SET      CALL                                  
028033,000349: 31,3577           01072                                    AVFLAG                                
028034,000350: 31,3600           10647                                    MIDGIM                                #  GET DELVLVC B7 FOR DISPLAY
028035,000351: 31,3601           77646                           ABVAL                                          
028036,000352: 31,3602           17773                           STODL    VGDISP                                #  B+7 FOR DISPLAY
028037,000353: 31,3603           03423                                    DELLT4                                
028038,000354: 31,3604           77615                           DAD                                            
028039,000355: 31,3605           03413                                    TIG                                   
028040,000356: 31,3606           37656                           STCALL   TPASS4                                #  FOR S40.1
028041,000357: 31,3607           03657                                    QTEMP                                 
028042,000358: 

Page 643

028044,000360:                                                                                                  #  SUBROUTINE NAME:      DELRSPL         (CONTINUATION OF V 82 IN CSM IF P11 ACTI
028045,000361:                                                                                                  #  TRANSFERRED COMPLETELY FROM SUNDISK, P30S REV 33.  9 SEPT 67.
028046,000362:                                                                                                  #  MOD NO: 0     MOD BY: ZELDIN          DATE:
028047,000363:                                                                                                  #  MOD NO: 1     MOD BY: RR BAIRNSFATHER DATE: 11 APR 67
028048,000364:                                                                                                  #  MOD NO: 2     MOD BY: RR BAIRNSFATHER DATE: 12 MAY 67         ADD UR.RT CALC WHEN BELOW 300K FT
028049,000365:                                                                                                  #  MOD NO: 2.1   MOD BY: RR BAIRNSFATHER DATE: 5 JULY 67         FIX ERROR IN MOD. 2.
028050,000366:                                                                                                  #  MOD NO: 3     MOD BY: RR BAIRNSFATHER DATE: 12 JUL 67         CHANGE SIGN OF DISPLAYED ERROR.
028051,000367:                                                                                                  #  MOD 4         MOD BY  S.ZELDIN        DATE  3 APRIL 68        CHANGE EQUATIONS FOR L/D=.18 WHICH REPLA
028052,000368: 
028053,000369:                                                                                                  #  FUNCTION:     CALCULATE (FOR DISPLAY ON CALL) AN APPROXIMATE MEASURE OF IN-PLANE SPLASH DOWN
028054,000370:                                                                                                  #                ERROR.  IF THE FREE-FALL TRANSFER ANGLE TO 300K FT ABOVE PAD RADIUS IS POSITIVE:
028055,000371:                                                                                                  #                SPLASH ERROR= -RANGE TO TARGET + FREE-FALL TRANSFER ANGLE + ESTIMATED ENTRY ANGLE.
028056,000372:                                                                                                  #                THE TARGET LOCATION AT ESTIMATED TIME OF IMPACT IS USED.  IF THE FREE-FALL TRANSFER
028057,000373:                                                                                                  #                ANGLE IS NEGATIVE:  SPLASH ERROR= -RANGE TO TARGET
028058,000374:                                                                                                  #                THE PRESENT TARGET LOCATION IS USED.
028059,000375: 
028060,000376:                                                                                                  #  CALLING SEQUENCE  CALLED AFTER SR30.1 IF IN CSM AND IF P11 OPERATING (UNDER CONTROL OF V82)
028061,000377: 
028062,000378:                                                                                                  #  SUBROUTINES CALLED:  VGAMCALC, TFF/TRIG, LALOTORV.
028063,000379: 
028064,000380:                                                                                                  #  EXIT          RETURN DIRECTLY TO V 82 PROG. AT SPLRET
028065,000381: 
028066,000382:                                                                                                  #  ERASABLE INITIALIZATION   LEFT BY SR30.1 AND V82GON1
028067,000383: 
028068,000384:                                                                                                  #  OUTPUT:       RSP-RREC RANGE IN REVOLUTIONS                   DSKY DISPLAY IN N. MI.
028069,000385: 
028070,000386:                                                                                                  #  DEBRIS:       QPRET, PDL0 ... PDL7, PDL10
028071,000387: 
028072,000388:                                                                                                  #  THETA(1)
028073,000389: 
028074,000390: 32,2017                                           BANK     32                                    
028075,000391: 32,2000                                           SETLOC   DELRSPL1                              
028076,000392: 32,2000                                           BANK                                           
028077,000393: 32,2017                                           COUNT*   $$/P30                                #  PROGRAMS: P30 EXTERNAL DELTA V
028078,000394: 
028079,000395: 32,2017           00011        DELRSPL            STORE    8D                                    
028080,000396: 32,2020           45244                           BPL      DSU                                   
028081,000397: 32,2021           64067                                    CANTDO                                #  GONE PAST 300K FT ALT
028082,000398: 32,2022           16326                                    1BITDP                                
028083,000399: 32,2023           45000                           BOV      CALL                                  
028084,000400: 32,2024           64067                                    CANTDO                                #  POSMAX INDICATES NO 300K FT SOLUTION.
028085,000401: 32,2025           55051                                    VGAMCALC                              #  +GAMMA(REV) IN PMAC,V300 MAG(B-7)=PDL 0
028086,000402: 32,2026           45006                           PUSH     CALL                                  
028087,000403: 32,2027           56631                                    TFF/TRIG                              
028088,000404: 32,2030           77624                           CALL                                           
028089,000405: 32,2031           64075                                    AUGEKUGL                              
028090,000406: 32,2032           65525                           PDDL     ACOS                                  #  T ENTRY PDL 6
028091,000407: 32,2033           00017                                    CDELF/2                               
028092,000408: 32,2034           77615                           DAD                                            
028093,000409: 32,2035           00005                                    4                                     
028094,000410: 32,2036           26350        GETARG             STOVL    THETA(1)                              
028095,000411: 32,2037           03401                                    LAT(SPL)                              
028096,000412: 32,2040           15104                           STODL    LAT                                   
028097,000413: 32,2041           15335                                    HI6ZEROS                              
028098,000414: 32,2042           15110                           STODL    ALT                                   #  ALT=0 = LAT +4
028099,000415: 32,2043           01205                                    PIPTIME                               

Page 644

028101,000417: 32,2044           71214                           BON      DLOAD                                 
028102,000418: 32,2045           03711                                    V37FLAG                               
028103,000419: 32,2046           64050                                    +2                                    
028104,000420: 32,2047           02325                                    TSTART82                              
028105,000421: 32,2050           43225                           DSU      DAD                                   
028106,000422: 32,2051           00011                                    8D                                    
028107,000423: 32,2052           45014                           CLEAR    CALL                                  
028108,000424: 32,2053           00662                                    ERADFLAG                              
028109,000425: 32,2054           26441                                    LALOTORV                              #  R RECOV. IN ALPHAV AND MPAC
028110,000426: 
028111,000427: 32,2055           63256                           UNIT     PDVL                                  
028112,000428: 32,2056           02327                                    RONE                                  
028113,000429: 32,2057           50256                           UNIT     DOT                                   
028114,000430: 32,2060           65552                           SL1      ARCCOS                                
028115,000431: 32,2061           77621                           BDSU                                           #  ERROR = THETA EST - THETA TARG
028116,000432:                                                                                                  #  NEGATIVE NUMBER SIGNIFIES THAT WILL FALL SHORT.
028117,000433:                                                                                                  #  POSITIVE NUMBER SIGNIFIES THAT WILL OVERSHOOT.
028118,000434: 32,2062           02350                                    THETA(1)                              
028119,000435: 32,2063           36356        DELRDONE           STCALL   RSP-RREC                              #  DOWNRANGE RECOVERY RANGE ERROR        /360
028120,000436: 32,2064           27455                                    INTWAKE0                              
028121,000437: 32,2065           77624                           CALL                                           
028122,000438: 32,2066           46653                                    SPLRET                                
028123,000439: 32,2067           65345        CANTDO             DLOAD    PDDL                                  #  INITIALIZE ERASE TO DOT TARGET AND UR
028124,000440:                                                                                                  #  FOR RANGE ANGLE.
028125,000441: 32,2070           15333                                    HIDPHALF                              #  TO PDL 0 FOR DEN INDDV.
028126,000442: 32,2071           15335                                    HI6ZEROS                              
028127,000443: 32,2072           77606                           PUSH                                           #  ZERO TO PDL 2 FOR PHI ENTRY
028128,000444: 32,2073           34011                           STCALL   8D                                    
028129,000445: 32,2074           64036                                    GETARG                                #  GO SET RSP-RREC =0
028130,000446: 
028131,000447: 32,2075           77775        AUGEKUGL           VLOAD                                          
028132,000448: 32,2076           24256                                    X1CON      -2                         
028133,000449: 32,2077           14045                           STODL    X1         -2                         
028134,000450: 32,2100           00001                                    0                                     
028135,000451: 32,2101           50025                           DSU      BMN                                   
028136,000452: 32,2102           24250                                    V(21K)                                
028137,000453: 32,2103           64130                                    LOOPSET                               
028138,000454: 32,2104           65060                           XSU,1    XCHX,2                                
028139,000455: 32,2105           00050                                    S1                                    
028140,000456: 32,2106           00046                                    X1                                    
028141,000457: 32,2107           45324                           XCHX,2   DSU                                   
028142,000458: 32,2110           00050                                    S1                                    
028143,000459: 32,2111           24236                                    V(3K)                                 
028144,000460: 32,2112           65040                           BMN      XCHX,2                                
028145,000461: 32,2113           64130                                    LOOPSET                               
028146,000462: 32,2114           00050                                    S1                                    
028147,000463: 32,2115           50025                           DSU      BMN                                   
028148,000464: 32,2116           24246                                    V(4K)                                 
028149,000465: 32,2117           64130                                    LOOPSET                               
028150,000466: 32,2120           65124                           XCHX,2   XCHX,2                                

Page 645

028152,000468: 32,2121           00050                                    S1                                    
028153,000469: 32,2122           00046                                    X1                                    
028154,000470: 32,2123           50025                           DSU      BMN                                   
028155,000471: 32,2124           24232                                    V(400)                                
028156,000472: 32,2125           64130                                    LOOPSET                               
028157,000473: 32,2126           77730                           SXA,1                                          
028158,000474: 32,2127           00050                                    S1                                    
028159,000475: 32,2130           52110        LOOPSET            INCR,1   GOTO                                  
028160,000476: 32,2131           00001                           DEC      1          B-14                       
028161,000477: 32,2132           64135                                    K1K2LOOP                              
028162,000478: 32,2133           77730        K2CALC             SXA,1                                          
028163,000479: 32,2134           00050                                    S1                                    
028164,000480: 32,2135           44745        K1K2LOOP           DLOAD    DSU*                                  
028165,000481: 32,2136           00001                                    0                                     
028166,000482: 32,2137           24245                                    V(32K)     +1,1                       
028167,000483: 32,2140           42603                           DMP*     DAD*                                  
028168,000484: 32,2141           24231                                    YK1K2      +1,1                       
028169,000485: 32,2142           24215                                    CK1K2      +1,1                       
028170,000486: 32,2143           60125                           PDDL     TIX,1                                 
028171,000487: 32,2144           00003                                    2                                     
028172,000488: 32,2145           64133                                    K2CALC                                
028173,000489: 32,2146           55225                           DSU      BDDV                                  
028174,000490: 32,2147           40006                           PUSH     BOV                                   
028175,000491: 32,2150           64173                                    MAXPHI                                
028176,000492: 32,2151           45240                           BMN      DSU                                   
028177,000493: 32,2152           64173                                    MAXPHI                                
028178,000494: 32,2153           24200                                    MAXPHIC                               
028179,000495: 32,2154           77644                           BPL                                            
028180,000496: 32,2155           64173                                    MAXPHI                                
028181,000497: 32,2156           45345        PHICALC            DLOAD    DSU                                   #  PHI ENTRY PDL 4D
028182,000498: 32,2157           00001                                    0                                     
028183,000499: 32,2160           24256                                    V(26K)                                
028184,000500: 32,2161           71244                           BPL      DLOAD                                 
028185,000501: 32,2162           64170                                    TGR26                                 
028186,000502: 32,2163           24252                                    TLESS26                               
028187,000503: 32,2164           77671                           DDV                                            
028188,000504: 32,2165           00001                                    0                                     
028189,000505: 32,2166           43405        TENT               DMP      RVQ                                   
028190,000506: 32,2167           00005                                    4D                                    
028191,000507: 32,2170           52145        TGR26              DLOAD    GOTO                                  
028192,000508: 32,2171           24254                                    TGR26CON                              
028193,000509: 32,2172           64166                                    TENT                                  
028194,000510: 
028195,000511: 32,2173           65345        MAXPHI             DLOAD    PDDL                                  
028196,000512: 32,2174           24200                                    MAXPHIC                               
028197,000513: 32,2175           77650                           GOTO                                           
028198,000514: 32,2176           64156                                    PHICALC                               
028199,000515: 32,2177           02755 01307  MAXPHIC            2DEC     .09259298                             #  2000 NM FOR MAXIMUM PHI ENTRY
028200,000516: 

Page 646

028202,000518: 
028203,000519: 32,2201                                           COUNT*   $$/P30                                
028204,000520: 
028205,000521:                                                                                                  #                BELOW
028206,000522:                                                                                                  #  <<<< TABLE IS INDEXED. KEEP IN ORDER >>>
028207,000523: 
028208,000524: 32,2201           00013 22652                     2DEC     7.07304526 E-4                        #  5500
028209,000525: 32,2203           00005 01642                     2DEC     3.08641975 E-4                        #  2400
028210,000526: 32,2205           00005 01642                     2DEC     3.08641975 E-4                        #  2400
028211,000527: 32,2207           77556 53522                     2DEC     -8.8888888 E-3                        #  -3.2
028212,000528: 32,2211           00055 20266                     2DEC     2.7777777  E-3                        #  1
028213,000529: 32,2213           00155 07202  CK1K2              2DEC     6.6666666  E-3                        #  2.4
028214,000530: 32,2215           00000 00000                     2DEC     0          B-28                       #  0
028215,000531: 32,2217           77730 71525                     2DEC*    -1.86909989 E-5        B7*             #  -.443
028216,000532: 32,2221           00000 00000                     2DEC     0          B-28                       
028217,000533: 32,2223           04445 10102                     2DEC*    1.11639691 E-3        B7*             #  .001225
028218,000534: 32,2225           03726 31201                     2DEC*    9.56911636 E-4        B7*             #  .00105
028219,000535: 32,2227           01040 26313  YK1K2              2DEC*    2.59733157 E-4        B7*             #  .000285
028220,000536: 32,2231           00234 01660  V(400)             2DEC     1.2192     B-7                        
028221,000537: 32,2233           25254 01014  V(28K)             2DEC     85.344     B-7                        
028222,000538: 32,2235           02222 15646  V(3K)              2DEC     9.144      B-7                        
028223,000539: 32,2237           22223 16457  V(24K)             2DEC     73.152     B-7                        
028224,000540: 32,2241           25254 01014                     2DEC     85.344     B-7                        
028225,000541: 32,2243           30304 23351  V(32K)             2DEC     97.536     B-7                        
028226,000542: 32,2245           03030 22335  V(4K)              2DEC     12.192     B-7                        
028227,000543: 32,2247           20000 00000  V(21K)             2DEC     64.000     B-7                        
028228,000544: 32,2251           00033 05763  TLESS26            2DEC*    5.70146688 E7         B-35*           #  8660PHI/V
028229,000545: 32,2253           00053 36200  TGR26CON           2DEC     7.2        E5         B-28            #  PHI/3
028230,000546: 32,2255           23637 27636  V(26K)             2DEC     79.248     B-7                        #  26000
028231,000547: 

Page 647

028233,000549: 
028234,000550: 32,2257           00012        X1CON              DEC      10         B-14                       
028235,000551: 32,2260           00010                           DEC      8          B-14                       
028236,000552: 32,2261           00006                           DEC      6          B-14                       
028237,000553:                                                                                                  #  <<<< TABLE IS INDEXED. KEEP IN ORDER >>>
028238,000554:                                                                                                  #                     ABOVE

Page 648

028240,000556:                                                                                                  #  ..... AVFLAGA/P .....
028241,000557: 
028242,000558:                                                                                                  #  SUBROUTINES USED
028243,000559: 
028244,000560:                                                                                                  #        UPFLAG
028245,000561:                                                                                                  #        DOWNFLAG
028246,000562: 
028247,000563:    4000                                           SETLOC   P30SUBS                               
028248,000564:    4000                                           BANK                                           
028249,000565:    4627  E4,1770                                  EBANK=   SUBEXIT                               
028250,000566:    4627           00006        AVFLAGA            EXTEND                                         #  AVFLAG = CSM
028251,000567:    4630           23770                           QXCH     SUBEXIT                               
028252,000568:    4631           05560                           TC       DOWNFLAG                              
028253,000569:    4632           00050                           ADRES    AVFLAG                                #  BIT 5 FLAG 2
028254,000570:    4633           35060                           CAF      EBANK7                                
028255,000571:    4634           54003                           TS       EBANK                                 
028256,000572:    4635  E7,1424                                  EBANK=   ECSTEER                               
028257,000573:    4635           35003                           CAF      BIT13                                 
028258,000574:    4636           55424                           TS       ECSTEER                               #  SET ECSTEER = 1
028259,000575:    4637           35005                           CAF      EBANK4                                
028260,000576:    4640           54003                           TS       EBANK                                 
028261,000577:    4641  E4,1770                                  EBANK=   SUBEXIT                               
028262,000578:    4641           01770                           TC       SUBEXIT                               
028263,000579:    4642           00006        AVFLAGP            EXTEND                                         #  AVFLAG = LEM
028264,000580:    4643           23770                           QXCH     SUBEXIT                               
028265,000581:    4644           05546                           TC       UPFLAG                                
028266,000582:    4645           00050                           ADRES    AVFLAG                                #  BIT 5 FLAG 2
028267,000583:    4646           01770                           TC       SUBEXIT                               
028268,000584:    4647           00006        P20FLGON           EXTEND                                         
028269,000585:    4650           23770                           QXCH     SUBEXIT                               
028270,000586:    4651           05546                           TC       UPFLAG                                
028271,000587:    4652           00031                           ADRES    TRACKFLG                              
028272,000588:    4653           05546                           TC       UPFLAG                                
028273,000589:    4654           00027                           ADRES    UPDATFLG                              
028274,000590:    4655           01770                           TC       SUBEXIT                               #  DP B4
028275,000591: 
028276,000592: 

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