Source Code

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

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

012577,000002:                                                                                                  ## Copyright:   Public domain.
012578,000003:                                                                                                  ## Filename:    IMU_COMPENSATION_PACKAGE.agc
012579,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus build 237.
012580,000005:                                                                                                  ##              This is for the Command Module's (CM) Apollo Guidance
012581,000006:                                                                                                  ##              Computer (AGC), for Apollo 8.
012582,000007:                                                                                                  ## Assembler:   yaYUL
012583,000008:                                                                                                  ## Contact:     Jim Lawton <jim DOT lawton AT gmail DOT com>
012584,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
012585,000010:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Colossus237/
012586,000011:                                                                                                  ## Mod history: 2011-01-23 JL   Adapted from corresponding Colossus 249 file.
012587,000012:                                                                                                  ##              2016-12-30 RSB  Proofed comment text using octopus/ProoferComments,
012588,000013:                                                                                                  ##                              and corrected errors found.
012589,000014:                                                                                                  ##              2017-01-14 RSB  Fixed comment-text errors located while 
012590,000015:                                                                                                  ##                              diff'ing against Colossus 249.
012591,000016: 

Page 290

012593,000018: 
012594,000019: 07,2440                                           BANK     7                                     
012595,000020: 06,2000                                           SETLOC   IMUCOMP                               
012596,000021: 06,2000                                           BANK                                           
012597,000022: 06,3262  E3,1460                                  EBANK=   NBDX                                  
012598,000023: 
012599,000024: 06,3262                                           COUNT    06/ICOMP                              
012600,000025: 
012601,000026: 06,3262           33516        1/PIPA             CAF      LGCOMP                                #  SAVE EBANK OF CALLING PROGRAM
012602,000027: 06,3263           56003                           XCH      EBANK                                 
012603,000028: 06,3264           54163                           TS       MODE                                  
012604,000029: 
012605,000030: 06,3265           11477                           CCS      GCOMPSW                               #  BYPASS IF GCOMPSW NEGATIVE
012606,000031: 06,3266           13271                           TCF      +3                                    
012607,000032: 06,3267           13271                           TCF      +2                                    
012608,000033: 06,3270           13407                           TCF      IRIG1                                 #  RETURN
012609,000034: 
012610,000035: 06,3271           00004                           INHINT                                         #   ASSURE COMPLETE COMPENSATION OF DELV'S
012611,000036:                                                                                                  #                                          FOR DOWNLINK.
012612,000037: 06,3272           34710        1/PIPA1            CAF      FOUR                                  #  PIPAZ, PIPAY, PIPAX
012613,000038: 06,3273           54132                           TS       BUF        +2                         
012614,000039: 
012615,000040: 06,3274           50132                           INDEX    BUF        +2                         
012616,000041: 06,3275           31453                           CA       PIPASCF                               #  (P.P.M.) X 2(-9)
012617,000042: 06,3276           00006                           EXTEND                                         
012618,000043: 06,3277           50132                           INDEX    BUF        +2                         
012619,000044: 06,3300           71162                           MP       DELVX                                 #  (PP) X 2(+14) NOW (PIPA PULSES) X 2(+5)
012620,000045: 06,3301           54002                           TS       Q                                     #  SAVE MAJOR PART
012621,000046: 
012622,000047: 06,3302           30001                           CA       L                                     #  MINOR PART
012623,000048: 06,3303           00006                           EXTEND                                         
012624,000049: 06,3304           74705                           MP       BIT6                                  #  SCALE 2(+9)   SHIFT RIGHT 9   
012625,000050: 06,3305           50132                           INDEX    BUF        +2                         
012626,000051: 06,3306           55163                           TS       DELVX      +1                         #  FRACTIONAL PIPA PULSES SCALED 2(+14)
012627,000052: 
012628,000053: 06,3307           30002                           CA       Q                                     #  MAJOR PART
012629,000054: 06,3310           00006                           EXTEND                                         
012630,000055: 06,3311           74705                           MP       BIT6                                  #  SCALE 2(+9)   SHIFT RIGHT 9
012631,000056: 06,3312           50132                           INDEX    BUF        +2                         
012632,000057: 06,3313           21163                           DAS      DELVX                                 #  (PIPAI) + (PIPAI)(SFE)
012633,000058: 
012634,000059: 06,3314           50132                           INDEX    BUF        +2                         
012635,000060: 06,3315           41452                           CS       PIPABIAS                              #  (PIPA PULSES)/(CS) X 2(-8)             *
012636,000061: 06,3316           00006                           EXTEND                                         
012637,000062: 06,3317           71074                           MP       1/PIPADT                              #  (CS) X 2(+8)  NOW (PIPA PULSES) X 2(+0)*
012638,000063: 06,3320           00006                           EXTEND                                         
012639,000064: 06,3321           74712                           MP       BIT1                                  #  SCALE 2(+14)  SHIFT RIGHT 14           *
012640,000065: 06,3322           50132                           INDEX    BUF        +2                         
012641,000066: 06,3323           21163                           DAS      DELVX                                 #  (PIPAI) + (PIPAI)(SFE) - (BIAS)(DELTAT)
012642,000067: 
012643,000068: 06,3324           10132                           CCS      BUF        +2                         #  PIPAZ, PIPAY, PIPAX

Page 291

012645,000070: 06,3325           67716                           AD       NEG1                                  
012646,000071: 06,3326           13273                           TCF      1/PIPA1    +1                         
012647,000072: 06,3327           13330                           NOOP                                           #  LESS THAN ZERO IMPOSSIBLE.
012648,000073: 06,3330           00003                           RELINT                                         
012649,000074: 

Page 292

012651,000076: 
012652,000077: 
012653,000078: 06,3331           55477        IRIGCOMP           TS       GCOMPSW                               #  INDICATE COMMANDS 2 PULSES OR LESS
012654,000079: 06,3332           54130                           TS       BUF                                   #  INDEX COUNTER - IRIGX, IRIGY, IRIGZ
012655,000080: 
012656,000081: 06,3333           00006        IRIGX              EXTEND                                         
012657,000082: 06,3334           41163                           DCS      DELVX                                 #  (PIPA PULSES) X 2(+14)
012658,000083: 06,3335           52155                           DXCH     MPAC                                  
012659,000084: 06,3336           31463                           CA       ADIAX                                 #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *
012660,000085: 06,3337           03412                           TC       GCOMPSUB                              #  -(ADIAX)(PIPAX)   (GYRO PULSES) X 2(+14)
012661,000086: 
012662,000087: 06,3340           00006                           EXTEND                                         #  
012663,000088: 06,3341           41165                           DCS      DELVY                                 #  (PIPA PULSES) X 2(+14)
012664,000089: 06,3342           52155                           DXCH     MPAC                                  #  
012665,000090: 06,3343           41466                           CS       ADSRAX                                #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *
012666,000091: 06,3344           03412                           TC       GCOMPSUB                              #  +(ADSRAX)(PIPAY)  (GYRO PULSES) X 2(+14)
012667,000092: 
012668,000093:                                                                                                  #                EXTEND            ***
012669,000094:                                                                                                  #                DCS     DELVZ     ***   (PIPA PULSES) X 2(+14)
012670,000095:                                                                                                  #                DXCH    MPAC      ***
012671,000096:                                                                                                  #                CA      ADOAX     ***   (GYRO PULSES)/(PIPA PULSE) X 2(-3)       *
012672,000097:                                                                                                  #                TC      GCOMPSUB  ***   -(ADOAX)(PIPAZ)   (GYRO PULSES) X 2(+14)
012673,000098: 
012674,000099: 06,3345           41460                           CS       NBDX                                  #  (GYRO PULSES)/(CS) X 2(-5)
012675,000100: 06,3346           03441                           TC       DRIFTSUB                              #  -(NBDX)(DELTAT)   (GYRO PULSES) X 2(+14)
012676,000101: 
012677,000102: 06,3347           00006        IRIGY              EXTEND                                         
012678,000103: 06,3350           41165                           DCS      DELVY                                 #  (PIPA PULSES) X 2(+14)
012679,000104: 06,3351           52155                           DXCH     MPAC                                  
012680,000105: 06,3352           31464                           CA       ADIAY                                 #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *
012681,000106: 06,3353           03412                           TC       GCOMPSUB                              #  -(ADIAY)(PIPAY)   (GYRO PULSES) X 2(+14)
012682,000107: 
012683,000108: 06,3354           00006                           EXTEND                                         
012684,000109: 06,3355           41167                           DCS      DELVZ                                 #  (PIPA PULSES) X 2(+14)
012685,000110: 06,3356           52155                           DXCH     MPAC                                  
012686,000111: 06,3357           41467                           CS       ADSRAY                                #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *
012687,000112: 06,3360           03412                           TC       GCOMPSUB                              #  +(ADSRAY)(PIPAZ)  (GYRO PULSES) X 2(+14)
012688,000113: 
012689,000114:                                                                                                  #                EXTEND            ***
012690,000115:                                                                                                  #                DCS     DELVX     ***   (PIPA PULSES) X 2(+14)
012691,000116:                                                                                                  #                DXCH    MPAC      ***
012692,000117:                                                                                                  #                CA      ADOAY     ***   (GYRO PULSES)/(PIPA PULSE) X 2(-3)      *
012693,000118:                                                                                                  #                TC      GCOMPSUB  ***   -(ADOAY)(PIPAX)     (GYRO PULSES) X 2(+14)
012694,000119: 
012695,000120: 06,3361           41461                           CS       NBDY                                  #  (GYRO PULSES)/(CS) X 2(-5)
012696,000121: 06,3362           03441                           TC       DRIFTSUB                              #  -(NBDY)(DELTAT)   (GYRO PULSES) X 2(+14)
012697,000122: 
012698,000123: 06,3363           00006        IRIGZ              EXTEND                                         
012699,000124: 06,3364           41165                           DCS      DELVY                                 #  (PIPA PULSES) X 2(+14)
012700,000125: 06,3365           52155                           DXCH     MPAC                                  
012701,000126: 06,3366           31470                           CA       ADSRAZ                                #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *

Page 293

012703,000128: 06,3367           03412                           TC       GCOMPSUB                              #  -(ADSRAZ)(PIPAY)  (GYRO PULSES) X 2(+14)
012704,000129: 
012705,000130: 06,3370           00006                           EXTEND                                         
012706,000131: 06,3371           41167                           DCS      DELVZ                                 #  (PIPA PULSES) X 2(+14)
012707,000132: 06,3372           52155                           DXCH     MPAC                                  
012708,000133: 06,3373           31465                           CA       ADIAZ                                 #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *
012709,000134: 06,3374           03412                           TC       GCOMPSUB                              #  -(ADIAZ)(PIPAZ)   (GYRO PULSES) X 2(+14)
012710,000135: 
012711,000136:                                                                                                  #                EXTEND            ***
012712,000137:                                                                                                  #                DCS     DELVX     ***   (PIPA PULSE) X 2(+14)
012713,000138:                                                                                                  #                DXCH    MPAC      ***
012714,000139:                                                                                                  #                CS      ADOAZ     ***   (GYRO PULSES)/(PIPA PULSE) X 2(-3)       *
012715,000140:                                                                                                  #                TC      GCOMPSUB  ***   +(ADOAZ)(PIPAX)     (GYRO PULSES) X 2(+14)
012716,000141: 
012717,000142: 06,3375           31462                           CA       NBDZ                                  #  (GYRO PULSES)/(CS) X 2(-5)
012718,000143: 06,3376           03441                           TC       DRIFTSUB                              #  +(NBDZ)(DELTAT)    (GYRO PULSES) X 2(+14)
012719,000144: 

Page 294

012721,000146: 06,3377           11477                           CCS      GCOMPSW                               #  ARE GYRO COMMANDS GREATER THAN 2 PULSES
012722,000147: 06,3400           13402                           TCF      +2                                    #  YES   
012723,000148: 06,3401           13407                           TCF      IRIG1                                 #  NO    
012724,000149: 
012725,000150: 06,3402           34764                           CA       PRIO17                                #  LEM PRIORITY HIGHER-THIS FOR PRELAUNCH
012726,000151: 06,3403           05027                           TC       NOVAC                                 
012727,000152: 06,3404  E3,1460                                  EBANK=   NBDX                                  
012728,000153: 06,3404           03474 14063                     2CADR    1/GYRO                                
012729,000154: 
012730,000155: 06,3406           00003                           RELINT                                         
012731,000156: 06,3407           30163        IRIG1              CA       MODE                                  #  SET EBANK FOR RETURN
012732,000157: 06,3410           54003                           TS       EBANK                                 
012733,000158: 06,3411           14570                           TCF      SWRETURN                              
012734,000159: 
012735,000160: 06,3412           56154        GCOMPSUB           XCH      MPAC                                  #  ADIA OR ADSRA COEFFICIENT ARRIVES IN A
012736,000161: 06,3413           00006                           EXTEND                                         #  C(MPAC) = (PIPA PULSES) X 2(+14)
012737,000162: 06,3414           70154                           MP       MPAC                                  #  (GYRO PULSES)/(PIPA PULSE) X 2(-3)     *
012738,000163: 06,3415           52123                           DXCH     VBUF                                  #  NOW = (GYRO PULSES) X 2(+11)           *
012739,000164: 
012740,000165: 06,3416           30155                           CA       MPAC       +1                         #  MINOR PART PIPA PULSES
012741,000166: 06,3417           00006                           EXTEND                                         
012742,000167: 06,3420           70154                           MP       MPAC                                  #  ADIA OR ADSRA
012743,000168: 06,3421           54001                           TS       L                                     
012744,000169: 06,3422           34714                           CAF      ZERO                                  
012745,000170: 06,3423           20123                           DAS      VBUF                                  #  NOW = (GYRO PULSES) X 2(+11)           *
012746,000171: 
012747,000172: 06,3424           30122                           CA       VBUF                                  #  PARTIAL RESULT - MAJOR
012748,000173: 06,3425           00006                           EXTEND                                         
012749,000174: 06,3426           74677                           MP       BIT12                                 #  SCALE 2(+3)      SHIFT RIGHT 3         *
012750,000175: 06,3427           50130                           INDEX    BUF                                   #  RESULT = (GYRO PULSES) X 2(+14)
012751,000176: 06,3430           21472                           DAS      GCOMP                                 #  HI(ADIA)(PIPAI) OR HI(ADSRA)(PIPAI)
012752,000177: 
012753,000178: 06,3431           30123                           CA       VBUF       +1                         #  PARTIAL RESULT - MINOR
012754,000179: 06,3432           00006                           EXTEND                                         
012755,000180: 06,3433           74677                           MP       BIT12                                 #  SCALE 2(+3)      SHIFT RIGHT 3         *
012756,000181: 06,3434           54001                           TS       L                                     
012757,000182: 06,3435           34714                           CAF      ZERO                                  
012758,000183: 06,3436           50130                           INDEX    BUF                                   #  RESULT = (GYRO PULSES) X 2(+14)
012759,000184: 06,3437           21472                           DAS      GCOMP                                 #  (ADIA)(PIPAI) OR (ADSRA)(PIPAI)
012760,000185: 
012761,000186: 06,3440           00002                           TC       Q                                     
012762,000187: 

Page 295

012764,000189: 06,3441           00006        DRIFTSUB           EXTEND                                         
012765,000190: 06,3442           22131                           QXCH     BUF        +1                         
012766,000191: 
012767,000192: 06,3443           00006                           EXTEND                                         #  C(A) = NBD    (GYRO PULSES)/(CS) X 2(-5)
012768,000193: 06,3444           71074                           MP       1/PIPADT                              #  (CS) X 2(+8)   NOW (GYRO PULSES) X 2(+3)
012769,000194: 06,3445           22155                           LXCH     MPAC       +1                         #  SAVE FOR FRACTIONAL COMPENSATION
012770,000195: 06,3446           00006                           EXTEND                                         
012771,000196: 06,3447           74707                           MP       BIT4                                  #  SCALE 2(+11)     SHIFT RIGHT 11
012772,000197: 06,3450           50130                           INDEX    BUF                                   
012773,000198: 06,3451           21472                           DAS      GCOMP                                 #  HI(NBD)(DELTAT)   (GYRO PULSES) X 2(+14)
012774,000199: 
012775,000200: 06,3452           30155                           CA       MPAC       +1                         #  NOW MINOR PART
012776,000201: 06,3453           00006                           EXTEND                                         
012777,000202: 06,3454           74707                           MP       BIT4                                  #  SCALE 2(+11)          SHIFT RIGHT 11
012778,000203: 06,3455           54001                           TS       L                                     
012779,000204: 06,3456           34714                           CAF      ZERO                                  
012780,000205: 06,3457           50130                           INDEX    BUF                                   #  ADD IN FRACTIONAL COMPENSATION
012781,000206: 06,3460           21472                           DAS      GCOMP                                 #  (NBD)(DELTAT)     (GYRO PULSES) X 2(+14)
012782,000207: 
012783,000208: 06,3461           34711        DRFTSUB2           CAF      TWO                                   #  PIPAX, PIPAY, PIPAZ
012784,000209: 06,3462           60130                           AD       BUF                                   
012785,000210: 06,3463           56130                           XCH      BUF                                   
012786,000211: 06,3464           50000                           INDEX    A                                     
012787,000212: 06,3465           11471                           CCS      GCOMP                                 #  ARE GYRO COMMANDS 1 PULSE OR GREATER
012788,000213: 06,3466           13470                           TCF      +2                                    #  YES
012789,000214: 06,3467           00131                           TC       BUF        +1                         #  NO
012790,000215: 
012791,000216: 06,3470           77716                           MASK     NEGONE                                
012792,000217: 06,3471           10000                           CCS      A                                     #  ARE GYRO COMMANDS GREATER THAN 2 PULSES
012793,000218: 06,3472           55477                           TS       GCOMPSW                               #  YES - SET GCOMPSW POSITIVE
012794,000219: 06,3473           00131                           TC       BUF        +1                         #  NO
012795,000220: 

Page 296

012797,000222: 06,3474           34710        1/GYRO             CAF      FOUR                                  #  PIPAZ, PIPAY, PIPAX
012798,000223: 06,3475           54130                           TS       BUF                                   
012799,000224: 
012800,000225: 06,3476           50130                           INDEX    BUF                                   #  SCALE GYRO COMMANDS FOR IMUPULSE
012801,000226: 06,3477           31472                           CA       GCOMP      +1                         #  FRACTIONAL PULSES
012802,000227: 06,3500           00006                           EXTEND                                         
012803,000228: 06,3501           74703                           MP       BIT8                                  #  SHIFT RIGHT 7
012804,000229: 06,3502           50130                           INDEX    BUF                                   
012805,000230: 06,3503           55472                           TS       GCOMP      +1                         #  FRACTIONAL PULSES SCALED
012806,000231: 
012807,000232: 06,3504           34714                           CAF      ZERO                                  #  SET GCOMP = 0 FOR DAS INSTRUCTION
012808,000233: 06,3505           50130                           INDEX    BUF                                   
012809,000234: 06,3506           57471                           XCH      GCOMP                                 #  GYRO PULSES
012810,000235: 06,3507           00006                           EXTEND                                         
012811,000236: 06,3510           74703                           MP       BIT8                                  #  SHIFT RIGHT 7
012812,000237: 06,3511           50130                           INDEX    BUF                                   
012813,000238: 06,3512           21472                           DAS      GCOMP                                 #  ADD THESE TO FRACTIONAL PULSES ABOVE
012814,000239: 
012815,000240: 06,3513           10130                           CCS      BUF                                   #  PIPAZ, PIPAY, PIPAX
012816,000241: 06,3514           67716                           AD       NEG1                                  
012817,000242: 06,3515           13475                           TCF      1/GYRO     +1                         
012818,000243: 06,3516           01471        LGCOMP             ECADR    GCOMP                                 #  LESS THAN ZERO IMPOSSIBLE
012819,000244: 
012820,000245: 06,3517           33516                           CAF      LGCOMP                                
012821,000246: 06,3520           04555                           TC       BANKCALL                              
012822,000247: 06,3521           17125                           CADR     IMUPULSE                              #  CALL GYRO TORQUING ROUTINE
012823,000248: 06,3522           04555                           TC       BANKCALL                              
012824,000249: 06,3523           17516                           CADR     IMUSTALL                              #  WAIT FOR PULSES TO GET OUT
012825,000250: 06,3524           15112                           TCF      ENDOFJOB                              #  TEMPORARY
012826,000251: 
012827,000252: 06,3525           34710        GCOMP1             CAF      FOUR                                  #  PIPAZ, PIPAY, PIPAX
012828,000253: 06,3526           54130                           TS       BUF                                   
012829,000254: 
012830,000255: 06,3527           50130                           INDEX    BUF                                   #  RESCALE
012831,000256: 06,3530           31472                           CA       GCOMP      +1                         
012832,000257: 06,3531           00006                           EXTEND                                         
012833,000258: 06,3532           74703                           MP       BIT8                                  #  SHIFT MINOR PART LEFT 7 - MAJOR PART = 0
012834,000259: 06,3533           50130                           INDEX    BUF                                   
012835,000260: 06,3534           23472                           LXCH     GCOMP      +1                         #  BITS 8-14 OF MINOR PART WERE = 0
012836,000261: 
012837,000262: 06,3535           10130                           CCS      BUF                                   #  PIPAZ, PIPAY, PIPAX
012838,000263: 06,3536           67716                           AD       NEG1                                  
012839,000264: 06,3537           13526                           TCF      GCOMP1     +1                         
012840,000265: 06,3540           01436        V06N30S            VN       0630                                  
012841,000266: 06,3541           15112                           TCF      ENDOFJOB                              
012842,000267: 

Page 297

012844,000269: 06,3542           11477        NBDONLY            CCS      GCOMPSW                               #  BYPASS IF GCOMPSW NEGATIVE
012845,000270: 06,3543           13546                           TCF      +3                                    
012846,000271: 06,3544           13546                           TCF      +2                                    
012847,000272: 06,3545           15112                           TCF      ENDOFJOB                              
012848,000273: 
012849,000274: 06,3546           00004                           INHINT                                         
012850,000275: 06,3547           10076                           CCS      FLAGWRD2                              #  PREREAD T3RUPT MAY COINCIDE
012851,000276: 06,3550           15112                           TCF      ENDOFJOB                              
012852,000277: 06,3551           15112                           TCF      ENDOFJOB                              
012853,000278: 06,3552           13553                           TCF      +1                                    
012854,000279: 
012855,000280: 06,3553           30025                           CA       TIME1                                 #  (CS) X 2(+14)
012856,000281: 06,3554           57074                           XCH      1/PIPADT                              #  PREVIOUS TIME
012857,000282: 06,3555           00003                           RELINT                                         
012858,000283: 06,3556           40000                           COM                                            
012859,000284: 06,3557           61074                           AD       1/PIPADT                              
012860,000285: 06,3560           10000        NBD2               CCS      A                                     #  CALCULATE ELAPSED TIME
012861,000286: 06,3561           64712                           AD       ONE                                   #  NO TIME1 OVERFLOW
012862,000287: 06,3562           13567                           TCF      NBD3                                  #  RESTORE TIME DIFFERENCE AND JUMP
012863,000288: 06,3563           13565                           TCF      +2                                    #  TIME1 OVERFLOW
012864,000289: 06,3564           15112                           TCF      ENDOFJOB                              #  IF ELAPSED TIME = 0  (DIFFERENCE = -0)
012865,000290: 
012866,000291: 06,3565           40000                           COM                                            #  CALCULATE ABSOLUTE DIFFERENCE
012867,000292: 06,3566           64672                           AD       POSMAX                                
012868,000293: 
012869,000294: 06,3567           00006        NBD3               EXTEND                                         #  C(A) = DELTAT    (CS) X 2(+14)
012870,000295: 06,3570           74701                           MP       BIT10                                 #  SHIFT RIGHT 5
012871,000296: 06,3571           52123                           DXCH     VBUF                                  
012872,000297: 06,3572           00006                           EXTEND                                         
012873,000298: 06,3573           30123                           DCA      VBUF                                  
012874,000299: 06,3574           52155                           DXCH     MPAC                                  #  DELTAT NOW SCALED (CS) X 2(+19)
012875,000300: 
012876,000301: 06,3575           34714                           CAF      ZERO                                  
012877,000302: 06,3576           55477                           TS       GCOMPSW                               #  INDICATE COMMANDS 2 PULSES OR LESS
012878,000303: 06,3577           54130                           TS       BUF                                   #  PIPAX, PIPAY, PIPAZ
012879,000304: 
012880,000305: 06,3600           41460                           CS       NBDX                                  #  (GYRO PULSES)/(CS) X 2(-5)
012881,000306: 06,3601           03617                           TC       FBIASSUB                              #  -(NBDX)(DELTAT)   (GYRO PULSES) X 2(+14)
012882,000307: 
012883,000308: 06,3602           00006                           EXTEND                                         
012884,000309: 06,3603           40123                           DCS      VBUF                                  
012885,000310: 06,3604           52155                           DXCH     MPAC                                  #  DELTAT SCALED (CS) X 2(+19)
012886,000311: 06,3605           31461                           CA       NBDY                                  #  (GYRO PULSES)/(CS) X 2(-5)
012887,000312: 06,3606           03617                           TC       FBIASSUB                              #  -(NBDY)(DELTAT)   (GYRO PULSES) X 2(+14)
012888,000313: 
012889,000314: 06,3607           00006                           EXTEND                                         
012890,000315: 06,3610           40123                           DCS      VBUF                                  
012891,000316: 06,3611           52155                           DXCH     MPAC                                  #  DELTAT SCALED (CS) X 2(+19)
012892,000317: 06,3612           41462                           CS       NBDZ                                  #  (GYRO PULSES)/(CS) X 2(-5)
012893,000318: 06,3613           03617                           TC       FBIASSUB                              #  +(NBDZ)(DELTAT)   (GYRO PULSES) X 2(+14)

Page 298

012895,000320: 06,3614           11477                           CCS      GCOMPSW                               #  ARE GYRO COMMANDS GREATER THAN 2 PULSES
012896,000321: 06,3615           13474                           TCF      1/GYRO                                #  YES
012897,000322: 06,3616           15112                           TCF      ENDOFJOB                              #  NO
012898,000323: 

Page 299

012900,000325: 06,3617           56002        FBIASSUB           XCH      Q                                     
012901,000326: 06,3620           54131                           TS       BUF        +1                         
012902,000327: 
012903,000328: 06,3621           30002                           CA       Q                                     #  NBD SCALED (GYRO PULSES)/(CS) X 2(-5)
012904,000329: 06,3622           00006                           EXTEND                                         
012905,000330: 06,3623           70154                           MP       MPAC                                  #  DELTAT SCALED (CS) X 2(+19)
012906,000331: 06,3624           50130                           INDEX    BUF                                   
012907,000332: 06,3625           21472                           DAS      GCOMP                                 #  HI(NBD)(DELTAT)   (GYRO PULSES) X 2(+14)
012908,000333: 
012909,000334: 06,3626           30002                           CA       Q                                     #  NOW FRACTIONAL PART
012910,000335: 06,3627           00006                           EXTEND                                         
012911,000336: 06,3630           70155                           MP       MPAC       +1                         
012912,000337: 06,3631           54001                           TS       L                                     
012913,000338: 06,3632           34714                           CAF      ZERO                                  
012914,000339: 06,3633           50130                           INDEX    BUF                                   
012915,000340: 06,3634           21472                           DAS      GCOMP                                 #  (NBD)(DELTAT)     (GYRO PULSES) X 2(+14)
012916,000341: 
012917,000342: 06,3635           13461                           TCF      DRFTSUB2                              #  CHECK MAGNITUDE OF COMPENSATION
012918,000343: 
012919,000344: 06,3636           04555        LASTBIAS           TC       BANKCALL                              
012920,000345: 06,3637           17075                           CADR     PIPUSE                                
012921,000346: 
012922,000347: 06,3640           11477                           CCS      GCOMPSW                               #  BYPASS IF GCOMPSW NEGATIVE
012923,000348: 06,3641           13644                           TCF      +3                                    
012924,000349: 06,3642           13644                           TCF      +2                                    
012925,000350: 06,3643           15112                           TCF      ENDOFJOB                              
012926,000351: 
012927,000352: 06,3644           37665                           CAF      PRIO31                                #  2 SECONDS SCALED (CS) X 2(+8)
012928,000353: 06,3645           57074                           XCH      1/PIPADT                              
012929,000354: 06,3646           40000                           COM                                            
012930,000355: 06,3647           61246                           AD       PIPTIME1   +1                         #  TIME AT PIPA1 =0
012931,000356: 06,3650           13560                           TCF      NBD2                                  

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