Source Code

These source-code files are part of a reconstructed copy of Comanche 51, the initial release (though not the final mission release) of the Apollo 11 Command Module (CM) Apollo Guidance Computer (AGC) software. The flown, final release was Comanche 55. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 51, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 55, whose original source code is available. Comanche 55 source code was then modified by undoing changes known to have been made between revisions 51 and 55. The most-significant steps involved reverting changes related to the R-2 lunar potential model, the details of which were known from the previous, separate, independent reconstruction of the Apollo 10 Lunar Module software Luminary 69/2. The now-reconstructed Comanche 51 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 match those on the Comanche 55 or Luminary 69 printouts, although the source code would likely have different page numbers in a contemporary Comanche 51 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 55. Here's a guide to some of the Apollo documentation relevant to those annotations:
Among documentation not actually referenced in the annotations, there is a short writeup about the reconstruction process in our software repository that may be helpful in understanding it from a different perspective. There's also a handy table that lists what the number of memory-words should be for each routine in Comanche 51, which could make a nice double-check; however, we've not performed that double-check ourselves.

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.

027732,000002:                                                                                                  ## Copyright:   Public domain.
027733,000003:                                                                                                  ## Filename:    P30,P37.agc
027734,000004:                                                                                                  ## Purpose:     A section of Comanche revision 051.
027735,000005:                                                                                                  ##              It is part of the reconstructed source code for the
027736,000006:                                                                                                  ##              original release of the flight software for the Command
027737,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 11.
027738,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
027739,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
027740,000010:                                                                                                  ##              exactly match those specified for Comanche 51 in NASA drawing
027741,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
027742,000012:                                                                                                  ##              reconstruction is correct.
027743,000013:                                                                                                  ## Reference:   pp. 635-648
027744,000014:                                                                                                  ## Assembler:   yaYUL
027745,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
027746,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
027747,000017:                                                                                                  ## Mod history: 2019-07-30 MAS  Created from Comanche 55.
027748,000018: 

Page 635

027750,000020: 32,2017                                           BANK     32                                    
027751,000021: 
027752,000022: 35,2000                                           SETLOC   P30S1                                 
027753,000023: 35,2000                                           BANK                                           
027754,000024: 
027755,000025: 35,3264  E7,1625                                  EBANK=   +MGA                                  
027756,000026: 
027757,000027: 35,3264                                           COUNT    35/P34                                
027758,000028: 
027759,000029: 35,3264           77420        DISPMGA            STQ      EXIT                                  #  USED IN P30
027760,000030: 
027761,000031: 35,3265           02370                                    RGEXIT                                
027762,000032: 35,3266           03304                           TC       COMPTGO                               
027763,000033: 
027764,000034: 35,3267           34621        DISP45             CAF      V16N45                                
027765,000035: 35,3270           04662                           TC       BANKCALL                              
027766,000036: 35,3271           21057                           CADR     GOFLASHR                              
027767,000037: 35,3272           04106                           TC       GOTOPOOH                              
027768,000038: 35,3273           03300                           TC       END45                                 
027769,000039: 35,3274           03267                           TC       DISP45                                
027770,000040: 35,3275           05412        P30PHSI            TC       PHASCHNG                              
027771,000041: 35,3276           00014                           OCT      14                                    
027772,000042: 35,3277           05217                           TCR      ENDOFJOB                              
027773,000043: 35,3300           06006        END45              TC       INTPRET                               
027774,000044: 35,3301           52014                           CLEAR    GOTO                                  
027775,000045: 35,3302           03664                                    TIMRFLAG                              
027776,000046: 35,3303           02370                                    RGEXIT                                
027777,000047: 
027778,000048: 35,3304           00006        COMPTGO            EXTEND                                         #  USED TO COMPUTE TTOGO
027779,000049: 35,3305           23066                           QXCH     PHSPRDT6                              #  ** GROUP 6 TEMPORARY USED ,, BEWARE **
027780,000050: 
027781,000051: 35,3306           05546                           TC       UPFLAG                                #  SET TIMRFLAG
027782,000052: 35,3307           00155                           ADRES    TIMRFLAG                              #  BIT 11 FLAG 7
027783,000053: 35,3310           35021                           CAF      ZERO                                  
027784,000054: 35,3311           55145                           TS       NVWORD1                               
027785,000055: 
027786,000056: 35,3312           35017                           CAF      ONE                                   
027787,000057: 35,3313           05245                           TC       WAITLIST                              
027788,000058: 35,3314  E7,1412                                  EBANK=   TIG                                   
027789,000059: 35,3314           03260 50067                     2CADR    CLOKTASK                              
027790,000060: 
027791,000061: 35,3316           05372                           TC       2PHSCHNG                              
027792,000062: 35,3317           40036                           OCT      40036                                 #  6.3SPOT FOR CLOKTASK
027793,000063: 35,3320           05024                           OCT      05024                                 #  GROUP 4 CONTINUES HERE
027794,000064: 35,3321           13000                           OCT      13000                                 
027795,000065: 
027796,000066: 35,3322           01066                           TC       PHSPRDT6                              

Page 636

027798,000068:                                                                                                  #  PROGRAM DESCRIPTION P30       DATE 3-6-67
027799,000069:                                                                                                  #  MOD. I BY S. ZELDIN-  TO ADD P31 AND ADAPT P30 FOR P31 USE.   22DEC67
027800,000070: 
027801,000071:                                                                                                  #  FUNCTIONAL DESCRIPTION
027802,000072:                                                                                                  #        +30     (EXTERNAL DELTA-V TARGETTING PROGRAM)
027803,000073:                                                                                                  #                ACCEPTS ASTRONAUT INPUTS OF TIG,DELV(LV) AND COMPUTES, FOR DISPLAY,
027804,000074:                                                                                                  #                APOGEE, PERIGEE, DELV(MAG), MGA ASSOCIATED WITH DESIRED MANEUVER
027805,000075:                                                                                                  #        P31     (GENERAL LAMBERT AIMPOINT GUIDANCE)
027806,000076:                                                                                                  #                A GROUND RULE FOR P31 IS THE ANGLE BETWEEN THE TARGET VECTOR AND
027807,000077:                                                                                                  #                POSITION VECTOR AT TIG IS NOT 165-195 DEGREES APART
027808,000078:                                                                                                  #                BASED ON STORED INPUT OF OFFSET TARGET(B+29) AND DELTA T TRANS, AND
027809,000079:                                                                                                  #                ASTRONAUT ENTRY OF TIG, P31 COMPUTES REQUIRED VELOCITY FOR MANEUVER
027810,000080:                                                                                                  #                AND, FOR DISPLAY, APOGEE, PERIGEE, DELV(7AG), +MGA ASSOCIATED WITH
027811,000081:                                                                                                  #                DESIRED MANEUVER
027812,000082: 
027813,000083:                                                                                                  #  THE FOLLOWING SUBROUTINES ARE USED IN P30 AND P31
027814,000084:                                                                                                  #        S30.1 (P30 ONLY)
027815,000085:                                                                                                  #        S31.1 (P31 ONLY)
027816,000086:                                                                                                  #        P30/P31 - DISPLAYS TIG
027817,000087:                                                                                                  #        CNTUP30 - DISPLAYS DELV(LV)
027818,000088:                                                                                                  #        PARAM30 - DISPLAYS APOGEE, PERIGEE, DELV(MAG), MGA, TIME FROM TIG,
027819,000089:                                                                                                  #                  MARKS SINCE LAST THRUSTING MANEUVER
027820,000090: 
027821,000091:                                                                                                  #  CALLING SEQUENCE VIA JOB FROM V37
027822,000092: 
027823,000093:                                                                                                  #  EXIT VIA V37 CALL OR GOTOPOOH
027824,000094: 
027825,000095:                                                                                                  #  OUTPUT FOR POWERED FLIGHT
027826,000096:                                                                                                  #        VTIG    X
027827,000097:                                                                                                  #        RTIG    X       SEE S30.1
027828,000098:                                                                                                  #        DELVSIN X
027829,000099:                                                                                                  #        VGDISP
027830,000100:                                                                                                  #        RTARG   X
027831,000101:                                                                                                  #        TPASS4  X       SEE S31.1
027832,000102:                                                                                                  #                X
027833,000103: 
027834,000104: 35,3323                                           COUNT    35/P30                                
027835,000105: 
027836,000106: 35,3323           03355        P30                TC       P30/P31                               
027837,000107: 35,3324           03374                           TC       CNTNUP30                              
027838,000108: 35,3325           05560                           TC       DOWNFLAG                              #  RESET UPDATFLG
027839,000109: 35,3326           00027                           ADRES    UPDATFLG                              #  BIT 7 FLAG 1
027840,000110: 35,3327           06006                           TC       INTPRET                               
027841,000111: 35,3330           77624                           CALL                                           
027842,000112: 35,3331           63475                                    S30.1                                 
027843,000113: 35,3332           77776                           EXIT                                           
027844,000114: 35,3333           03404                           TC       PARAM30                               
027845,000115: 35,3334           05546                           TC       UPFLAG                                

Page 637

027847,000117: 35,3335           00045                           ADRES    XDELVFLG                              #  SET XDELVFLG BIT 8 FLAG 2
027848,000118: 35,3336           14106                           TCF      GOTOPOOH                              
027849,000119: 
027850,000120: 35,3337           03355        P31                TC       P30/P31                               
027851,000121: 35,3340           05560                           TC       DOWNFLAG                              
027852,000122: 35,3341           00027                           ADRES    UPDATFLG                              #  RESET UPDATFLG BIT 7 FLAG 1
027853,000123: 35,3342           05560                           TC       DOWNFLAG                              
027854,000124: 35,3343           00156                           ADRES    NORMSW                                #  RESET NORMSW BIT 10 FLAG 7
027855,000125: 35,3344           06006                           TC       INTPRET                               
027856,000126: 35,3345           77624                           CALL                                           
027857,000127: 35,3346           63547                                    S31.1                                 
027858,000128: 35,3347           77776                           EXIT                                           
027859,000129: 35,3350           03374                           TC       CNTNUP30                              
027860,000130: 35,3351           03404                           TC       PARAM30                               
027861,000131: 35,3352           05560                           TC       DOWNFLAG                              
027862,000132: 35,3353           00045                           ADRES    XDELVFLG                              #  BIT 8 FLAG 2
027863,000133: 35,3354           14106                           TCF      GOTOPOOH                              
027864,000134: 
027865,000135: 35,3355           56002        P30/P31            XCH      Q                                     
027866,000136: 35,3356           55664                           TS       P30/31RT                              
027867,000137: 35,3357           05546                           TC       UPFLAG                                
027868,000138: 35,3360           00027                           ADRES    UPDATFLG                              #  SET UPDATFLG BIT 7 FLAG 1
027869,000139: 35,3361           05546                           TC       UPFLAG                                
027870,000140: 35,3362           00031                           ADRES    TRACKFLG                              #  SET TRACKFLG BIT 5 FLAG 1
027871,000141: 35,3363           33441                           CAF      V06N33                                #  T OF IGN
027872,000142: 35,3364           04662                           TC       BANKCALL                              
027873,000143: 35,3365           21057                           CADR     GOFLASHR                              
027874,000144: 35,3366           14106                           TCF      GOTOPOOH                              
027875,000145: 35,3367           01664                           TC       P30/31RT                              
027876,000146: 35,3370           13361                           TCF      P30/P31    +4                         
027877,000147: 35,3371           05412                           TC       PHASCHNG                              
027878,000148: 35,3372           00014                           OCT      00014                                 
027879,000149: 35,3373           05217                           TC       ENDOFJOB                              
027880,000150: 
027881,000151: 35,3374           56002        CNTNUP30           XCH      Q                                     
027882,000152: 35,3375           55127                           TS       P30/RET                               
027883,000153: 35,3376           34620                           CAF      V06N81                                
027884,000154: 35,3377           04662                           TC       BANKCALL                              
027885,000155: 35,3400           20720                           CADR     GOFLASH                               
027886,000156: 35,3401           14106                           TCF      GOTOPOOH                              
027887,000157: 35,3402           01127                           TC       P30/RET                               
027888,000158: 35,3403           13376                           TCF      CNTNUP30   +2                         
027889,000159: 35,3404           56002        PARAM30            XCH      Q                                     
027890,000160: 35,3405           55664                           TS       P30/31RT                              
027891,000161: 35,3406           33442                           CAF      V06N42                                
027892,000162: 35,3407           04662                           TC       BANKCALL                              
027893,000163: 35,3410           20720                           CADR     GOFLASH                               
027894,000164: 35,3411           04106                           TC       GOTOPOOH                              #  ON TERMINATION GOTOPOOH
027895,000165: 35,3412           13414                           TCF      REFTEST                               #  ON PROCEED GO DO REFTEST

Page 638

027897,000167: 35,3413           13406                           TCF      PARAM30    +2                         
027898,000168: 35,3414           35003        REFTEST            CAF      BIT13                                 
027899,000169: 35,3415           70077                           MASK     STATE      +3                         #  REFSMFLAG
027900,000170: 35,3416           00006                           EXTEND                                         
027901,000171: 35,3417           13427                           BZF      NOTSET                                #  REFSMFLAG =0, THEN BRANCH TO NOTSET
027902,000172: 35,3420           06006                           TC       INTPRET                               
027903,000173: 35,3421           41575                           VLOAD    PUSH                                  
027904,000174: 35,3422           03646                                    DELVSIN                               
027905,000175: 35,3423           77624                           CALL                                           
027906,000176: 35,3424           10654                                    GET+MGA                               
027907,000177: 35,3425           77650                           GOTO                                           
027908,000178: 35,3426           73433                                    FLASHMGA                              
027909,000179: 35,3427           00006        NOTSET             EXTEND                                         
027910,000180: 35,3430           43440                           DCS      MARSDP                                
027911,000181: 35,3431           53626                           DXCH     +MGA                                  #  +MGA, +MGA+1 CONTAINS (-00001)
027912,000182: 35,3432           06006                           TC       INTPRET                               
027913,000183: 35,3433           77624        FLASHMGA           CALL                                           
027914,000184: 35,3434           73264                                    DISPMGA                               
027915,000185: 35,3435           77776                           EXIT                                           
027916,000186: 35,3436           01664                           TC       P30/31RT                              
027917,000187: 35,3437           00000        MARSDP             OCT      00000                                 #  (00000) (16440) = (+00001)
027918,000188: 35,3440           35100                           OCT      35100                                 
027919,000189:                                                                                                  #  ( .01 ) DEGREES IN THE LOW ORDER REGISTE
027920,000190: 
027921,000191: 35,3441           01441        V06N33             VN       0633                                  
027922,000192: 35,3442           01452        V06N42             VN       0642                                  
027923,000193: 35,3443           04043        V16N35             VN       1635                                  
027924,000194: 35,3444           01455        V06N45             VN       0645                                  
027925,000195: 

Page 639

027927,000197:                                                                                                  #  PROGRAM DESCRIPTION S30.1     DATE 9NOV66
027928,000198:                                                                                                  #  MOD NO 1                      LOG SECTION P30,P37
027929,000199:                                                                                                  #  MOD BY RAMA AIYAWAR **
027930,000200:                                                                                                  #  MOD.2 BY S.ZELDIN - TO CORRECT MOD.1 FOR COLOSSUS             29DEC67
027931,000201: 
027932,000202:                                                                                                  #  FUNCTIONAL DESCRIPTION
027933,000203:                                                                                                  #        BASED ON STORED TARGET PARAMETERS (R OF IGNITION (RTIG), V OF
027934,000204:                                                                                                  #        IGNITION (VTIG), TIME OF IGNITION (TIG), DELV(LV), COMPUTE PERIGEE ALTITUDE
027935,000205:                                                                                                  #        A+OGEE ALTITUDE AND DELTA-V REQUIRED IN REF. COORDS. (DELVSIN)
027936,000206: 
027937,000207:                                                                                                  #  CALLING SEQUENCE
027938,000208:                                                                                                  #        L       CALL
027939,000209:                                                                                                  #        L+1             S30.1
027940,000210: 
027941,000211:                                                                                                  #  NORMAL EXIT MODE
027942,000212:                                                                                                  #        AT L+2 OR CALLING SEQUENCE (GOTO L+2)
027943,000213: 
027944,000214:                                                                                                  #  SUBROUTINES CALLED
027945,000215:                                                                                                  #        THISPREC
027946,000216:                                                                                                  #        PERIAPO
027947,000217: 
027948,000218:                                                                                                  #  ALARM OR ABORT EXIT MODES
027949,000219:                                                                                                  #        NONE
027950,000220: 
027951,000221:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
027952,000222:                                                                                                  #        TIG             TIME OF IGNITION        DP B28CS
027953,000223:                                                                                                  #        DELVSLV         SPECIFIED DELTA-V IN LOCAL VERT.
027954,000224:                                                                                                  #                        COORDS. OF ACTIVE VEHICLE AT
027955,000225:                                                                                                  #                        TIME OF IGNITION        VCT. B+7 M/CS
027956,000226: 
027957,000227:                                                                                                  #  OUTPUT
027958,000228:                                                                                                  #        RTIG            POSITION AT TIG         VCT.    B+29 M
027959,000229:                                                                                                  #        VTIG            VELOCITY AT TIG         VCT.    B+7 M
027960,000230:                                                                                                  #        HAPO            APOGEE ALT.             DP      B+29 M
027961,000231:                                                                                                  #        HPER            PERIGEE ALT.            DP      B+29 M
027962,000232:                                                                                                  #        DELVSIN         DELVSLV IN REF COORDS   VCT.    B+7 M/CS
027963,000233:                                                                                                  #        VGDISP          MAG. OF DELVSIN         DP      B+7 M/CS
027964,000234: 
027965,000235:                                                                                                  #  DEBRIS        QTEMP   TEMP.ERASABLE
027966,000236:                                                                                                  #                QPRET, MPAC
027967,000237:                                                                                                  #                PUSHLIST
027968,000238: 
027969,000239: 31,2000                                           SETLOC   P30S1A                                
027970,000240: 31,2000                                           BANK                                           
027971,000241: 
027972,000242: 31,3475                                           COUNT    35/S30S                               
027973,000243: 
027974,000244: 31,3475           71220        S30.1              STQ      DLOAD                                 
027975,000245: 31,3476           03657                                    QTEMP                                 
027976,000246: 31,3477           03413                                    TIG                                   #  TIME IGNITION SCALED AT 2(+28)CS
027977,000247: 31,3500           34041                           STCALL   TDEC1                                 
027978,000248: 31,3501           27071                                    THISPREC                              #  ENCKE ROUTINE FOR 
027979,000249: 
027980,000250: 31,3502           67175                           VLOAD    SXA,2                                 
027981,000251: 31,3503           00007                                    VATT                                  
027982,000252: 31,3504           03746                                    RTX2                                  
027983,000253: 31,3505           27640                           STOVL    VTIG                                  

Page 640

027985,000255: 31,3506           00001                                    RATT                                  
027986,000256: 31,3507           03632                           STORE    RTIG                                  
027987,000257: 31,3510           03540                           STORE    RACT3                                 
027988,000258: 31,3511           53435                           VXV      UNIT                                  
027989,000259: 31,3512           03640                                    VTIG                                  
027990,000260: 31,3513           36617                           STCALL   UNRM                                  
027991,000261: 31,3514           72666                                    LOMAT                                 
027992,000262: 31,3515           61375                           VLOAD    VXM                                   
027993,000263: 31,3516           03405                                    DELVSLV                               
027994,000264: 31,3517           00001                                    0                                     
027995,000265: 31,3520           66172                           VSL1     SXA,1                                 
027996,000266: 31,3521           03745                                    RTX1                                  
027997,000267: 31,3522           03646                           STORE    DELVSIN                               
027998,000268: 31,3523           77646                           ABVAL                                          
027999,000269: 31,3524           27773                           STOVL    VGDISP                                #  MAG DELV
028000,000270: 31,3525           03632                                    RTIG                                  
028001,000271: 31,3526           53315                           PDVL     VAD                                   
028002,000272: 31,3527           03646                                    DELVSIN                               
028003,000273: 31,3530           03640                                    VTIG                                  
028004,000274: 31,3531           77624                           CALL                                           
028005,000275: 31,3532           45153                                    PERIAPO1                              
028006,000276: 31,3533           77624                           CALL                                           
028007,000277: 31,3534           45263                                    SHIFTR1                               
028008,000278: 31,3535           77624                           CALL                                           
028009,000279: 31,3536           46754                                    MAXCHK                                
028010,000280: 31,3537           16366                           STODL    HPER                                  #  PERIGEE ALT B+29
028011,000281: 31,3540           00005                                    4D                                    
028012,000282: 31,3541           77624                           CALL                                           
028013,000283: 31,3542           45263                                    SHIFTR1                               
028014,000284: 31,3543           77624                           CALL                                           
028015,000285: 31,3544           46754                                    MAXCHK                                
028016,000286: 31,3545           36364                           STCALL   HAPO                                  #  APOGEE ALT B+29
028017,000287: 31,3546           03657                                    QTEMP                                 
028018,000288: 

Page 641

028020,000290:                                                                                                  #  S31.1 PROGRAM DESCRIPTION             28DEC67
028021,000291:                                                                                                  #  MOD.1 BY S.ZELDIN
028022,000292: 
028023,000293:                                                                                                  #  S31.1 COMPUTES DELV IN REF AND LV COORDS,MAG OF DELV,INTERCEPT TIME,
028024,000294:                                                                                                  #  APOGEE AND PERIGEE ALT FOR REQUIRED MANEUVER
028025,000295: 
028026,000296:                                                                                                  #  CALLING SEQUENCE
028027,000297:                                                                                                  #        L       CALL
028028,000298:                                                                                                  #        L+1             S31.1
028029,000299: 
028030,000300:                                                                                                  #  NORMAL EXIT MODE
028031,000301:                                                                                                  #        AT L +2 OF CALLING SEQUENCE (GOTO L+2)
028032,000302: 
028033,000303:                                                                                                  #  SUBROUTINES CALLED
028034,000304:                                                                                                  #        AGAIN
028035,000305:                                                                                                  #        PERIAPO1
028036,000306:                                                                                                  #        SHIFTR1
028037,000307:                                                                                                  #        MIDGIM
028038,000308: 
028039,000309:                                                                                                  #  NO ALARM OR ABORT MODES
028040,000310: 
028041,000311:                                                                                                  #  INPUT
028042,000312:                                                                                                  #        DELLT4          DP      +28
028043,000313:                                                                                                  #        TIG             DP      +28
028044,000314:                                                                                                  #        RTARG           VCT     +29
028045,000315: 
028046,000316:                                                                                                  #  OUTPUT
028047,000317:                                                                                                  #        DELVLVC         VCT     +7
028048,000318:                                                                                                  #        VGDISP          DP      +7
028049,000319:                                                                                                  #        HAPO            DP      +29
028050,000320:                                                                                                  #        HPER            DP      +29
028051,000321:                                                                                                  #        TPASS4          DP      +28
028052,000322: 
028053,000323:                                                                                                  #  DEBRIS - QTEMP
028054,000324: 
028055,000325: 31,3547           71220        S31.1              STQ      DLOAD                                 
028056,000326: 31,3550           03657                                    QTEMP                                 
028057,000327: 31,3551           03413                                    TIG                                   
028058,000328: 31,3552           34041                           STCALL   TDEC1                                 
028059,000329: 31,3553           61651                                    AGAIN                                 #  RETURNS RTX2,RTX1,RATT,VATT,VIPRIME
028060,000330: 31,3554           63375                           VLOAD    PDVL                                  #  DELUEET3
028061,000331: 31,3555           03632                                    RTIG                                  
028062,000332: 31,3556           03612                                    VIPRIME                               
028063,000333: 31,3557           77624                           CALL                                           
028064,000334: 31,3560           45153                                    PERIAPO1                              
028065,000335: 31,3561           77624                           CALL                                           
028066,000336: 31,3562           45263                                    SHIFTR1                               
028067,000337: 31,3563           77624                           CALL                                           
028068,000338: 31,3564           46754                                    MAXCHK                                
028069,000339: 31,3565           16366                           STODL    HPER                                  #  B29
028070,000340: 31,3566           00005                                    4D                                    
028071,000341: 31,3567           77624                           CALL                                           
028072,000342: 31,3570           45263                                    SHIFTR1                               
028073,000343: 31,3571           77624                           CALL                                           
028074,000344: 31,3572           46754                                    MAXCHK                                
028075,000345: 31,3573           26364                           STOVL    HAPO                                  #  B29

Page 642

028077,000347: 31,3574           03646                                    DELVEET3                              
028078,000348: 31,3575           00001                           STORE    0                                     
028079,000349: 31,3576           45014                           SET      CALL                                  
028080,000350: 31,3577           01072                                    AVFLAG                                
028081,000351: 31,3600           10647                                    MIDGIM                                #  GET DELVLVC B7 FOR DISPLAY
028082,000352: 31,3601           77646                           ABVAL                                          
028083,000353: 31,3602           17773                           STODL    VGDISP                                #  B+7 FOR DISPLAY
028084,000354: 31,3603           03423                                    DELLT4                                
028085,000355: 31,3604           77615                           DAD                                            
028086,000356: 31,3605           03413                                    TIG                                   
028087,000357: 31,3606           37656                           STCALL   TPASS4                                #  FOR S40.1
028088,000358: 31,3607           03657                                    QTEMP                                 
028089,000359: 

Page 643

028091,000361:                                                                                                  #  SUBROUTINE NAME:      DELRSPL         (CONTINUATION OF V 82 IN CSM IF P11 ACTI
028092,000362:                                                                                                  #  TRANSFERRED COMPLETELY FROM SUNDISK, P30S REV 33.  9 SEPT 67.
028093,000363:                                                                                                  #  MOD NO: 0     MOD BY: ZELDIN          DATE:
028094,000364:                                                                                                  #  MOD NO: 1     MOD BY: RR BAIRNSFATHER DATE: 11 APR 67
028095,000365:                                                                                                  #  MOD NO: 2     MOD BY: RR BAIRNSFATHER DATE: 12 MAY 67         ADD UR.RT CALC WHEN BELOW 300K FT
028096,000366:                                                                                                  #  MOD NO: 2.1   MOD BY: RR BAIRNSFATHER DATE: 5 JULY 67         FIX ERROR IN MOD. 2.
028097,000367:                                                                                                  #  MOD NO: 3     MOD BY: RR BAIRNSFATHER DATE: 12 JUL 67         CHANGE SIGN OF DISPLAYED ERROR.
028098,000368:                                                                                                  #  MOD 4         MOD BY  S.ZELDIN        DATE  3 APRIL 68        CHANGE EQUATIONS FOR L/D=.18 WHICH REPLA
028099,000369: 
028100,000370:                                                                                                  #  FUNCTION:     CALCULATE (FOR DISPLAY ON CALL) AN APPROXIMATE MEASURE OF IN-PLANE SPLASH DOWN
028101,000371:                                                                                                  #                ERROR.  IF THE FREE-FALL TRANSFER ANGLE TO 300K FT ABOVE PAD RADIUS IS POSITIVE:
028102,000372:                                                                                                  #                SPLASH ERROR= -RANGE TO TARGET + FREE-FALL TRANSFER ANGLE + ESTIMATED ENTRY ANGLE.
028103,000373:                                                                                                  #                THE TARGET LOCATION AT ESTIMATED TIME OF IMPACT IS USED.  IF THE FREE-FALL TRANSFER
028104,000374:                                                                                                  #                ANGLE IS NEGATIVE:  SPLASH ERROR= -RANGE TO TARGET
028105,000375:                                                                                                  #                THE PRESENT TARGET LOCATION IS USED.
028106,000376: 
028107,000377:                                                                                                  #  CALLING SEQUENCE  CALLED AFTER SR30.1 IF IN CSM AND IF P11 OPERATING (UNDER CONTROL OF V82)
028108,000378: 
028109,000379:                                                                                                  #  SUBROUTINES CALLED:  VGAMCALC, TFF/TRIG, LALOTORV.
028110,000380: 
028111,000381:                                                                                                  #  EXIT          RETURN DIRECTLY TO V 82 PROG. AT SPLRET
028112,000382: 
028113,000383:                                                                                                  #  ERASABLE INITIALIZATION   LEFT BY SR30.1 AND V82GON1
028114,000384: 
028115,000385:                                                                                                  #  OUTPUT:       RSP-RREC RANGE IN REVOLUTIONS                   DSKY DISPLAY IN N. MI.
028116,000386: 
028117,000387:                                                                                                  #  DEBRIS:       QPRET, PDL0 ... PDL7, PDL10
028118,000388: 
028119,000389:                                                                                                  #  THETA(1)
028120,000390: 
028121,000391: 32,2017                                           BANK     32                                    
028122,000392: 32,2000                                           SETLOC   DELRSPL1                              
028123,000393: 32,2000                                           BANK                                           
028124,000394: 32,2017                                           COUNT*   $$/P30                                #  PROGRAMS: P30 EXTERNAL DELTA V
028125,000395: 
028126,000396: 32,2017           00011        DELRSPL            STORE    8D                                    
028127,000397: 32,2020           45244                           BPL      DSU                                   
028128,000398: 32,2021           64067                                    CANTDO                                #  GONE PAST 300K FT ALT
028129,000399: 32,2022           16326                                    1BITDP                                
028130,000400: 32,2023           45000                           BOV      CALL                                  
028131,000401: 32,2024           64067                                    CANTDO                                #  POSMAX INDICATES NO 300K FT SOLUTION.
028132,000402: 32,2025           55051                                    VGAMCALC                              #  +GAMMA(REV) IN PMAC,V300 MAG(B-7)=PDL 0
028133,000403: 32,2026           45006                           PUSH     CALL                                  
028134,000404: 32,2027           56631                                    TFF/TRIG                              
028135,000405: 32,2030           77624                           CALL                                           
028136,000406: 32,2031           64075                                    AUGEKUGL                              
028137,000407: 32,2032           65525                           PDDL     ACOS                                  #  T ENTRY PDL 6
028138,000408: 32,2033           00017                                    CDELF/2                               
028139,000409: 32,2034           77615                           DAD                                            
028140,000410: 32,2035           00005                                    4                                     
028141,000411: 32,2036           26350        GETARG             STOVL    THETA(1)                              
028142,000412: 32,2037           03401                                    LAT(SPL)                              
028143,000413: 32,2040           15104                           STODL    LAT                                   
028144,000414: 32,2041           15335                                    HI6ZEROS                              
028145,000415: 32,2042           15110                           STODL    ALT                                   #  ALT=0 = LAT +4
028146,000416: 32,2043           01205                                    PIPTIME                               

Page 644

028148,000418: 32,2044           71214                           BON      DLOAD                                 
028149,000419: 32,2045           03711                                    V37FLAG                               
028150,000420: 32,2046           64050                                    +2                                    
028151,000421: 32,2047           02325                                    TSTART82                              
028152,000422: 32,2050           43225                           DSU      DAD                                   
028153,000423: 32,2051           00011                                    8D                                    
028154,000424: 32,2052           45014                           CLEAR    CALL                                  
028155,000425: 32,2053           00662                                    ERADFLAG                              
028156,000426: 32,2054           26441                                    LALOTORV                              #  R RECOV. IN ALPHAV AND MPAC
028157,000427: 
028158,000428: 32,2055           63256                           UNIT     PDVL                                  
028159,000429: 32,2056           02327                                    RONE                                  
028160,000430: 32,2057           50256                           UNIT     DOT                                   
028161,000431: 32,2060           65552                           SL1      ARCCOS                                
028162,000432: 32,2061           77621                           BDSU                                           #  ERROR = THETA EST - THETA TARG
028163,000433:                                                                                                  #  NEGATIVE NUMBER SIGNIFIES THAT WILL FALL SHORT.
028164,000434:                                                                                                  #  POSITIVE NUMBER SIGNIFIES THAT WILL OVERSHOOT.
028165,000435: 32,2062           02350                                    THETA(1)                              
028166,000436: 32,2063           36356        DELRDONE           STCALL   RSP-RREC                              #  DOWNRANGE RECOVERY RANGE ERROR        /360
028167,000437: 32,2064           27455                                    INTWAKE0                              
028168,000438: 32,2065           77624                           CALL                                           
028169,000439: 32,2066           46653                                    SPLRET                                
028170,000440: 32,2067           65345        CANTDO             DLOAD    PDDL                                  #  INITIALIZE ERASE TO DOT TARGET AND UR
028171,000441:                                                                                                  #  FOR RANGE ANGLE.
028172,000442: 32,2070           15333                                    HIDPHALF                              #  TO PDL 0 FOR DEN INDDV.
028173,000443: 32,2071           15335                                    HI6ZEROS                              
028174,000444: 32,2072           77606                           PUSH                                           #  ZERO TO PDL 2 FOR PHI ENTRY
028175,000445: 32,2073           34011                           STCALL   8D                                    
028176,000446: 32,2074           64036                                    GETARG                                #  GO SET RSP-RREC =0
028177,000447: 
028178,000448: 32,2075           77775        AUGEKUGL           VLOAD                                          
028179,000449: 32,2076           24256                                    X1CON      -2                         
028180,000450: 32,2077           14045                           STODL    X1         -2                         
028181,000451: 32,2100           00001                                    0                                     
028182,000452: 32,2101           50025                           DSU      BMN                                   
028183,000453: 32,2102           24250                                    V(21K)                                
028184,000454: 32,2103           64130                                    LOOPSET                               
028185,000455: 32,2104           65060                           XSU,1    XCHX,2                                
028186,000456: 32,2105           00050                                    S1                                    
028187,000457: 32,2106           00046                                    X1                                    
028188,000458: 32,2107           45324                           XCHX,2   DSU                                   
028189,000459: 32,2110           00050                                    S1                                    
028190,000460: 32,2111           24236                                    V(3K)                                 
028191,000461: 32,2112           65040                           BMN      XCHX,2                                
028192,000462: 32,2113           64130                                    LOOPSET                               
028193,000463: 32,2114           00050                                    S1                                    
028194,000464: 32,2115           50025                           DSU      BMN                                   
028195,000465: 32,2116           24246                                    V(4K)                                 
028196,000466: 32,2117           64130                                    LOOPSET                               
028197,000467: 32,2120           65124                           XCHX,2   XCHX,2                                

Page 645

028199,000469: 32,2121           00050                                    S1                                    
028200,000470: 32,2122           00046                                    X1                                    
028201,000471: 32,2123           50025                           DSU      BMN                                   
028202,000472: 32,2124           24232                                    V(400)                                
028203,000473: 32,2125           64130                                    LOOPSET                               
028204,000474: 32,2126           77730                           SXA,1                                          
028205,000475: 32,2127           00050                                    S1                                    
028206,000476: 32,2130           52110        LOOPSET            INCR,1   GOTO                                  
028207,000477: 32,2131           00001                           DEC      1          B-14                       
028208,000478: 32,2132           64135                                    K1K2LOOP                              
028209,000479: 32,2133           77730        K2CALC             SXA,1                                          
028210,000480: 32,2134           00050                                    S1                                    
028211,000481: 32,2135           44745        K1K2LOOP           DLOAD    DSU*                                  
028212,000482: 32,2136           00001                                    0                                     
028213,000483: 32,2137           24245                                    V(32K)     +1,1                       
028214,000484: 32,2140           42603                           DMP*     DAD*                                  
028215,000485: 32,2141           24231                                    YK1K2      +1,1                       
028216,000486: 32,2142           24215                                    CK1K2      +1,1                       
028217,000487: 32,2143           60125                           PDDL     TIX,1                                 
028218,000488: 32,2144           00003                                    2                                     
028219,000489: 32,2145           64133                                    K2CALC                                
028220,000490: 32,2146           55225                           DSU      BDDV                                  
028221,000491: 32,2147           40006                           PUSH     BOV                                   
028222,000492: 32,2150           64173                                    MAXPHI                                
028223,000493: 32,2151           45240                           BMN      DSU                                   
028224,000494: 32,2152           64173                                    MAXPHI                                
028225,000495: 32,2153           24200                                    MAXPHIC                               
028226,000496: 32,2154           77644                           BPL                                            
028227,000497: 32,2155           64173                                    MAXPHI                                
028228,000498: 32,2156           45345        PHICALC            DLOAD    DSU                                   #  PHI ENTRY PDL 4D
028229,000499: 32,2157           00001                                    0                                     
028230,000500: 32,2160           24256                                    V(26K)                                
028231,000501: 32,2161           71244                           BPL      DLOAD                                 
028232,000502: 32,2162           64170                                    TGR26                                 
028233,000503: 32,2163           24252                                    TLESS26                               
028234,000504: 32,2164           77671                           DDV                                            
028235,000505: 32,2165           00001                                    0                                     
028236,000506: 32,2166           43405        TENT               DMP      RVQ                                   
028237,000507: 32,2167           00005                                    4D                                    
028238,000508: 32,2170           52145        TGR26              DLOAD    GOTO                                  
028239,000509: 32,2171           24254                                    TGR26CON                              
028240,000510: 32,2172           64166                                    TENT                                  
028241,000511: 
028242,000512: 32,2173           65345        MAXPHI             DLOAD    PDDL                                  
028243,000513: 32,2174           24200                                    MAXPHIC                               
028244,000514: 32,2175           77650                           GOTO                                           
028245,000515: 32,2176           64156                                    PHICALC                               
028246,000516: 32,2177           02755 01307  MAXPHIC            2DEC     .09259298                             #  2000 NM FOR MAXIMUM PHI ENTRY
028247,000517: 

Page 646

028249,000519: 
028250,000520: 32,2201                                           COUNT*   $$/P30                                
028251,000521: 
028252,000522:                                                                                                  #                BELOW
028253,000523:                                                                                                  #  <<<< TABLE IS INDEXED. KEEP IN ORDER >>>
028254,000524: 
028255,000525: 32,2201           00013 22652                     2DEC     7.07304526 E-4                        #  5500
028256,000526: 32,2203           00005 01642                     2DEC     3.08641975 E-4                        #  2400
028257,000527: 32,2205           00005 01642                     2DEC     3.08641975 E-4                        #  2400
028258,000528: 32,2207           77556 53522                     2DEC     -8.8888888 E-3                        #  -3.2
028259,000529: 32,2211           00055 20266                     2DEC     2.7777777  E-3                        #  1
028260,000530: 32,2213           00155 07202  CK1K2              2DEC     6.6666666  E-3                        #  2.4
028261,000531: 32,2215           00000 00000                     2DEC     0          B-28                       #  0
028262,000532: 32,2217           77730 71525                     2DEC*    -1.86909989 E-5        B7*             #  -.443
028263,000533: 32,2221           00000 00000                     2DEC     0          B-28                       
028264,000534: 32,2223           04445 10102                     2DEC*    1.11639691 E-3        B7*             #  .001225
028265,000535: 32,2225           03726 31201                     2DEC*    9.56911636 E-4        B7*             #  .00105
028266,000536: 32,2227           01040 26313  YK1K2              2DEC*    2.59733157 E-4        B7*             #  .000285
028267,000537: 32,2231           00234 01660  V(400)             2DEC     1.2192     B-7                        
028268,000538: 32,2233           25254 01014  V(28K)             2DEC     85.344     B-7                        
028269,000539: 32,2235           02222 15646  V(3K)              2DEC     9.144      B-7                        
028270,000540: 32,2237           22223 16457  V(24K)             2DEC     73.152     B-7                        
028271,000541: 32,2241           25254 01014                     2DEC     85.344     B-7                        
028272,000542: 32,2243           30304 23351  V(32K)             2DEC     97.536     B-7                        
028273,000543: 32,2245           03030 22335  V(4K)              2DEC     12.192     B-7                        
028274,000544: 32,2247           20000 00000  V(21K)             2DEC     64.000     B-7                        
028275,000545: 32,2251           00033 05763  TLESS26            2DEC*    5.70146688 E7         B-35*           #  8660PHI/V
028276,000546: 32,2253           00053 36200  TGR26CON           2DEC     7.2        E5         B-28            #  PHI/3
028277,000547: 32,2255           23637 27636  V(26K)             2DEC     79.248     B-7                        #  26000
028278,000548: 

Page 647

028280,000550: 
028281,000551: 32,2257           00012        X1CON              DEC      10         B-14                       
028282,000552: 32,2260           00010                           DEC      8          B-14                       
028283,000553: 32,2261           00006                           DEC      6          B-14                       
028284,000554:                                                                                                  #  <<<< TABLE IS INDEXED. KEEP IN ORDER >>>
028285,000555:                                                                                                  #                     ABOVE

Page 648

028287,000557:                                                                                                  #  ..... AVFLAGA/P .....
028288,000558: 
028289,000559:                                                                                                  #  SUBROUTINES USED
028290,000560: 
028291,000561:                                                                                                  #        UPFLAG
028292,000562:                                                                                                  #        DOWNFLAG
028293,000563: 
028294,000564:    4000                                           SETLOC   P30SUBS                               
028295,000565:    4000                                           BANK                                           
028296,000566:    4627  E4,1770                                  EBANK=   SUBEXIT                               
028297,000567:    4627           00006        AVFLAGA            EXTEND                                         #  AVFLAG = CSM
028298,000568:    4630           23770                           QXCH     SUBEXIT                               
028299,000569:    4631           05560                           TC       DOWNFLAG                              
028300,000570:    4632           00050                           ADRES    AVFLAG                                #  BIT 5 FLAG 2
028301,000571:    4633           35060                           CAF      EBANK7                                
028302,000572:    4634           54003                           TS       EBANK                                 
028303,000573:    4635  E7,1424                                  EBANK=   ECSTEER                               
028304,000574:    4635           35003                           CAF      BIT13                                 
028305,000575:    4636           55424                           TS       ECSTEER                               #  SET ECSTEER = 1
028306,000576:    4637           35005                           CAF      EBANK4                                
028307,000577:    4640           54003                           TS       EBANK                                 
028308,000578:    4641  E4,1770                                  EBANK=   SUBEXIT                               
028309,000579:    4641           01770                           TC       SUBEXIT                               
028310,000580:    4642           00006        AVFLAGP            EXTEND                                         #  AVFLAG = LEM
028311,000581:    4643           23770                           QXCH     SUBEXIT                               
028312,000582:    4644           05546                           TC       UPFLAG                                
028313,000583:    4645           00050                           ADRES    AVFLAG                                #  BIT 5 FLAG 2
028314,000584:    4646           01770                           TC       SUBEXIT                               
028315,000585:    4647           00006        P20FLGON           EXTEND                                         
028316,000586:    4650           23770                           QXCH     SUBEXIT                               
028317,000587:    4651           05546                           TC       UPFLAG                                
028318,000588:    4652           00031                           ADRES    TRACKFLG                              
028319,000589:    4653           05546                           TC       UPFLAG                                
028320,000590:    4654           00027                           ADRES    UPDATFLG                              
028321,000591:    4655           01770                           TC       SUBEXIT                               #  DP B4
028322,000592: 
028323,000593: 

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