Source Code

These source-code files are part of a reconstructed copy of Luminary 98, a development version of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 98 listing.

Comments from 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.

053696,000002:                                                                                                  ## Copyright:   Public domain.
053697,000003:                                                                                                  ## Filename:    AGC_BLOCK_TWO_SELF-CHECK.agc
053698,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
053699,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
053700,000006:                                                                                                  ##              development version of the flight software for the Lunar 
053701,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
053702,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
053703,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
053704,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
053705,000011:                                                                                                  ##              Luminary 98 and 99.
053706,000012:                                                                                                  ## Reference:   pp. 1284-1293
053707,000013:                                                                                                  ## Assembler:   yaYUL
053708,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
053709,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
053710,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
053711,000017: 

Page 1284

053713,000019:                                                                                                  #  PROGRAM DESCRIPTION                           DATE   20 DECEMBER 1967
053714,000020:                                                                                                  #  PROGRAM NAME - SELF-CHECK                     LOG SECTION  AGC BLOCK TWO SELF-CHECK
053715,000021:                                                                                                  #  MOD NO - 1                                    ASSEMBLY SUBROUTINE UTILITYM REV 25
053716,000022:                                                                                                  #  MOD BY - GAUNTT
053717,000023: 
053718,000024:                                                                                                  #  FUNCTIONAL DESCRIPTION
053719,000025:                                                                                                  #        PROGRAM HAS TWO MAIN PARTS.  THE FIRST IS SELF-CHECK WHICH RUNS AS A ZERO PRIORITY JOB WITH NO CORE SET, AS
053720,000026:                                                                                                  #        PART OF THE BACK-UP IDLE LOOP.  THE SECOND IS SHOW-BANKSUM WHICH RUNS AS A REGULAR EXECUTIVE JOB WITH ITS OWN
053721,000027:                                                                                                  #        STARTING VERB.
053722,000028: 
053723,000029:                                                                                                  #        THE PURPOSE OF SELF-CHECK IS TO CHECK OUT VARIOUS PARTS OF THE COMPUTER AS OUTLINED BELOW IN THE OPTIONS.
053724,000030: 
053725,000031:                                                                                                  #        THE PURPOSE OF SHOW-BANKSUM IS TO DISPLAY THE SUM OF EACH BANK, ONE AT A TIME.
053726,000032: 
053727,000033:                                                                                                  #        IN ALL THERE ARE 7 POSSIBLE OPTIONS IN THIS BLOCK II VERSION OF SELF-CHECK.  MORE DETAIL DESCRIPTION MAY BE
053728,000034:                                                                                                  #        FOUND IN E-2065 BLOCK II AGC SELF-CHECK AND SHOW BANKSUM BY EDWIN D. SMALLY DECEMBER 1966, AND ADDENDA 2 AND 3.
053729,000035: 
053730,000036:                                                                                                  #        THE DIFFERENT OPTIONS ARE CONTROLLED BY PUTTING DIFFERENT NUMBERS IN THE SMODE REGISTER (NOUN 27).  BELOW IS
053731,000037:                                                                                                  #        A DESCRIPTION OF WHAT PARTS OF THE COMPUTER THAT ARE CHECKED BY THE OPTIONS, AND THE CORRESPONDING NUMBER, IN
053732,000038:                                                                                                  #        OCTAL, TO LOAD INTO SMODE.
053733,000039:                                                                                                  #                +-4             ERASABLE MEMORY
053734,000040:                                                                                                  #                +-5             FIXED MEMORY
053735,000041:                                                                                                  #                +-1,2,3,6,7,10  EVERYTHING IN OPTIONS 4 AND 5.
053736,000042:                                                                                                  #                -0              SAME AS +-10 UNTIL AN ERROR IS DETECTED.
053737,000043:                                                                                                  #                +0              NO CHECK, PUTS COMPUTER INTO THE BACKUP IDLE LOOP.
053738,000044: 
053739,000045:                                                                                                  #  WARNINGS
053740,000046:                                                                                                  #        USE OF E MEMORY RESERVED FOR SELF-CHECK (EVEN IN IDLE LOOP) AS TEMP STORAGE BY OTHER PROGRAMS IS DANGEROUS.
053741,000047:                                                                                                  #        SMODE SET GREATER THAN OCT 10 PUTS COMPUTER INTO BACKUP IDLE LOOP.
053742,000048: 
053743,000049:                                                                                                  #  CALLING SEQUENCE
053744,000050:                                                                                                  #        TO CALL SELF-CHECK KEY IN
053745,000051:                                                                                                  #                V 21 N 27 E     OPTION NUMBER E
053746,000052:                                                                                                  #        TO CALL SHOW-BANKSUM KEY IN
053747,000053:                                                                                                  #                V 91 E          DISPLAYS FIRST BANK
053748,000054:                                                                                                  #                V 33 E          PROCEED, DISPLAYS NEXT BANK
053749,000055: 
053750,000056:                                                                                                  #  EXIT MODES, NORMAL AND ALARM
053751,000057:                                                                                                  #        SELF-CHECK NORMALLY CONTINUES INDEFINITELY UNLESS THERE IS AN ERROR DETECTED.  IF SO + OPTION NUMBERS PUT
053752,000058:                                                                                                  #        COMPUTER INTO BACKUP IDLE LOOP, - OPTION NUMBERS RESTART THE OPTION.
053753,000059: 
053754,000060:                                                                                                  #        THE -0 OPTION PROCEEDS FROM THE LINE FOLLOWING THE LINE WHERE THE ERROR WAS DETECTED.
053755,000061: 
053756,000062:                                                                                                  #        SHOW-BANKSUM PROCEEDS UNTIL A TERMINATE IS KEYED IN (V 34 E).  THE COMPUTER IS PUT INTO THE BACKUP IDLE LOOP
053757,000063: 
053758,000064:                                                                                                  #  OUTPUT

Page 1285

053760,000066:                                                                                                  #        SELF-CHECK UPON DETECTING AN ERROR LOADS THE SELF-CHECK ALARM CONSTANT (01102) INTO THE FAILREG SET AND
053761,000067:                                                                                                  #        TURNS ON THE ALARM LIGHT.  THE OPERATOR MAY THEN DISPLAY THE THREE FAILREGS BY KEYING IN V 05 N 09 E.  FOR FURTHER
053762,000068:                                                                                                  #        INFORMATION HE MAY KEY IN V 05 N 08 E, THE DSKY DISPLAY IN R1 WILL BE ADDRESS+1 OF WHERE THE ERROR WAS DETECTED,
053763,000069:                                                                                                  #        IN R2 THE BBCON OF SELF-CHECK, AND IN R3 THE TOTAL NUMBER OF ERRORS DETECTED BY SELF-CHECK SINCE THE LAST MAN
053764,000070:                                                                                                  #        INITIATED FRESH START (SLAP1).
053765,000071: 
053766,000072:                                                                                                  #        SHOW-BANKSUM STARTING WITH BANK 0 DISPLAYS IN R1 THE BANK SUM (A +-NUMBER EQUAL TO THE BANK NUMBER), IN R2
053767,000073:                                                                                                  #        THE BANK NUMBER, AND IN R3 THE BUGGER WORD.
053768,000074: 
053769,000075:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
053770,000076:                                                                                                  #        ACCOMPLISHED BY FRESH START
053771,000077:                                                                                                  #                SMODE SET TO +0
053772,000078: 
053773,000079:                                                                                                  #  DEBRIS
053774,000080:                                                                                                  #        ALL EXITS FROM THE CHECK OF ERASABLE (ERASCHK) RESTORE ORIGINAL CONTENTS TO REGISTERS UNDER CHECK.
053775,000081:                                                                                                  #        EXCEPTION IS A RESTART.  RESTART THAT OCCURS DURING ERASCHK RESTORES ERASABLE, UNLESS THERE IS EVIDENCE TO DOUBT
053776,000082:                                                                                                  #        E MEMORY, IN WHICH CASE PROGRAM THEN DOES A FRESH START (DOFSTART).
053777,000083: 
053778,000084: 25,3770                                           BANK     25                                    
053779,000085: 43,2000                                           SETLOC   SELFCHEC                              
053780,000086: 43,2000                                           BANK                                           
053781,000087: 
053782,000088: 43,3232                                           COUNT*   $$/SELF                               
053783,000089: 43,3232     4753               SBIT1              EQUALS   BIT1                                  
053784,000090: 43,3232     4752               SBIT2              EQUALS   BIT2                                  
053785,000091: 43,3232     4751               SBIT3              EQUALS   BIT3                                  
053786,000092: 43,3232     4750               SBIT4              EQUALS   BIT4                                  
053787,000093: 43,3232     4747               SBIT5              EQUALS   BIT5                                  
053788,000094: 43,3232     4746               SBIT6              EQUALS   BIT6                                  
053789,000095: 43,3232     4745               SBIT7              EQUALS   BIT7                                  
053790,000096: 43,3232     4744               SBIT8              EQUALS   BIT8                                  
053791,000097: 43,3232     4743               SBIT9              EQUALS   BIT9                                  
053792,000098: 43,3232     4742               SBIT10             EQUALS   BIT10                                 
053793,000099: 43,3232     4741               SBIT11             EQUALS   BIT11                                 
053794,000100: 43,3232     4740               SBIT12             EQUALS   BIT12                                 
053795,000101: 43,3232     4737               SBIT13             EQUALS   BIT13                                 
053796,000102: 43,3232     4736               SBIT14             EQUALS   BIT14                                 
053797,000103: 43,3232     4735               SBIT15             EQUALS   BIT15                                 
053798,000104: 
053799,000105: 43,3232     4755               S+ZERO             EQUALS   ZERO                                  
053800,000106: 43,3232     4753               S+1                EQUALS   BIT1                                  
053801,000107: 43,3232     4752               S+2                EQUALS   BIT2                                  
053802,000108: 43,3232     6245               S+3                EQUALS   THREE                                 
053803,000109: 43,3232     4751               S+4                EQUALS   FOUR                                  
053804,000110: 43,3232     4756               S+5                EQUALS   FIVE                                  
053805,000111: 43,3232     6242               S+6                EQUALS   SIX                                   

Page 1286

053807,000113: 43,3232     4757               S+7                EQUALS   SEVEN                                 
053808,000114: 43,3232     4357               S8BITS             EQUALS   LOW8                                  #  00377
053809,000115: 43,3232     4771               CNTRCON            =        OCT50                                 #  USED IN CNTRCHK
053810,000116: 43,3232           00061        ERASCON1           OCTAL    00061                                 #  USED IN ERASCHK
053811,000117: 43,3233           01373        ERASCON2           OCTAL    01373                                 #  USED IN ERASCHK
053812,000118: 43,3234     5007               ERASCON6           =        OCT1400                               #  USED IN ERASCHK
053813,000119: 43,3234           01461        ERASCON3           OCTAL    01461                                 #  USED IN ERASCHK
053814,000120: 43,3235           01773        ERASCON4           OCTAL    01773                                 #  USED IN ERASCHK
053815,000121: 43,3236     5012               S10BITS            EQUALS   LOW10                                 #  01777, USED IN ERASCHK
053816,000122: 43,3236     5020               SBNK03             EQUALS   PRIO6                                 #  06000, USED IN ROPECHK
053817,000123: 43,3236     4350               -MAXADRS           =        HI5                                   #  FOR ROPECHK
053818,000124: 43,3236           00060        SIXTY              OCTAL    00060                                 
053819,000125: 43,3237           60017        SUPRCON            OCTAL    60017                                 #  USED IN ROPECHK
053820,000126: 43,3240           17777        S13BITS            OCTAL    17777                                 
053821,000127: 43,3241           25252        CONC+S1            OCTAL    25252                                 #  USED IN CYCLSHFT
053822,000128: 43,3242           52400        CONC+S2            OCTAL    52400                                 #  USED IN CYCLSHFT
053823,000129: 43,3243           76777        ERASCON5           OCTAL    76777                                 
053824,000130: 43,3244     5660               S-7                =        OCT77770                              
053825,000131: 43,3244     6112               S-4                EQUALS   NEG4                                  
053826,000132: 43,3244     7745               S-3                EQUALS   NEG3                                  
053827,000133: 43,3244     7746               S-2                EQUALS   NEG2                                  
053828,000134: 43,3244     7747               S-1                EQUALS   NEGONE                                
053829,000135: 43,3244     4754               S-ZERO             EQUALS   NEG0                                  
053830,000136: 
053831,000137: 43,3244  E3,1400                                  EBANK=   LST1                                  
053832,000138: 43,3244           01371        ADRS1              ADRES    SKEEP1                                
053833,000139: 43,3245           03336        SELFADRS           ADRES    SELFCHK                               #  SELFCHK RETURN ADDRESS.  SHOULD BE PUT
053834,000140:                                                                                                  #  IN SELFRET WHEN GOING FROM SELFCHK TO
053835,000141:                                                                                                  #  SHOWSUM AND PUT IN SKEEP1 WHEN GOING
053836,000142:                                                                                                  #  FROM SHOWSUM TO SELF-CHECK.
053837,000143: 
053838,000144: 43,3246           31360        PRERRORS           CA       ERESTORE                              #  IS IT NECESSARY TO RESTORE ERASABLE
053839,000145: 43,3247           00006                           EXTEND                                         
053840,000146: 43,3250           13257                           BZF      ERRORS                                #  NO
053841,000147: 43,3251           00006                           EXTEND                                         
053842,000148: 43,3252           31376                           DCA      SKEEP5                                
053843,000149: 43,3253           51377                           INDEX    SKEEP7                                
053844,000150: 43,3254           52001                           DXCH     0000                                  #  RESTORE THE TWO ERASABLE REGISTERS
053845,000151: 43,3255           34755                           CA       S+ZERO                                
053846,000152: 43,3256           55360                           TS       ERESTORE                              
053847,000153: 43,3257           00004        ERRORS             INHINT                                         
053848,000154: 43,3260           30002                           CA       Q                                     
053849,000155: 43,3261           55357                           TS       SFAIL                                 #  SAVE Q FOR FAILURE LOCATION
053850,000156: 43,3262           55363                           TS       ALMCADR                               #  FOR DISPLAY WITH BBANK AND ERCOUNT
053851,000157: 43,3263           25365                           INCR     ERCOUNT                               #  KEEP TRACK OF NUMBER OF MALFUNCTIONS.
053852,000158: 43,3264           05571        TCALARM2           TC       ALARM2                                
053853,000159: 43,3265           01102                           OCT      01102                                 #  SELF-CHECK MALFUNCTION INDICATOR
053854,000160: 43,3266           11362                           CCS      SMODE                                 
053855,000161: 43,3267           34755        SIDLOOP            CA       S+ZERO                                
053856,000162: 43,3270           55362                           TS       SMODE                                 

Page 1287

053858,000164: 43,3271           03336                           TC       SELFCHK                               #  GO TO IDLE LOOP
053859,000165: 43,3272           01357                           TC       SFAIL                                 #  CONTINUE WITH SELF-CHECK
053860,000166: 
053861,000167: 43,3273           10000        -1CHK              CCS      A                                     
053862,000168: 43,3274           13246                           TCF      PRERRORS                              
053863,000169: 43,3275           13246                           TCF      PRERRORS                              
053864,000170: 43,3276           10000                           CCS      A                                     
053865,000171: 43,3277           13246                           TCF      PRERRORS                              
053866,000172: 43,3300           00002                           TC       Q                                     
053867,000173: 
053868,000174: 43,3301           00006        SMODECHK           EXTEND                                         
053869,000175: 43,3302           23371                           QXCH     SKEEP1                                
053870,000176: 43,3303           03332                           TC       CHECKNJ                               #  CHECK FOR NEW JOB
053871,000177: 43,3304           11362                           CCS      SMODE                                 
053872,000178: 43,3305           03312                           TC       SOPTIONS                              
053873,000179: 43,3306           03303                           TC       SMODECHK   +2                         #  TO BACKUP IDLE LOOP
053874,000180: 43,3307           03312                           TC       SOPTIONS                              
053875,000181: 43,3310           25366                           INCR     SCOUNT                                
053876,000182: 43,3311           01371                           TC       SKEEP1                                #  CONTINUE WITH SELF-CHECK
053877,000183: 
053878,000184: 43,3312           65660        SOPTIONS           AD       S-7                                   
053879,000185: 43,3313           00006                           EXTEND                                         
053880,000186: 43,3314           63316                           BZMF     +2                                    #  FOR OPTIONS BELOW NINE.
053881,000187: 43,3315           03267        BNKOPTN            TC       SIDLOOP                               #  ILLEGAL OPTION.  GO TO IDLE LOOP.
053882,000188: 43,3316           25366                           INCR     SCOUNT                                #  FOR OPTIONS BELOW NINE.
053883,000189: 43,3317           64757                           AD       S+7                                   
053884,000190: 
053885,000191: 43,3320           50000                           INDEX    A                                     
053886,000192: 43,3321           03322                           TC       SOPTION1                              
053887,000193: 43,3322           01371        SOPTION1           TC       SKEEP1                                #  WAS TC+TCF
053888,000194: 43,3323           01371        SOPTION2           TC       SKEEP1                                #  WAS IN:OUT1
053889,000195: 43,3324           01371        SOPTION3           TC       SKEEP1                                #  WAS COUNTCHK
053890,000196: 43,3325           03337        SOPTION4           TC       ERASCHK                               
053891,000197: 43,3326           03520        SOPTION5           TC       ROPECHK                               
053892,000198: 43,3327           01371        SOPTION6           TC       SKEEP1                                
053893,000199: 43,3330           01371        SOPTION7           TC       SKEEP1                                
053894,000200: 43,3331           01371        SOPTON10           TC       SKEEP1                                #  CONTINUE WITH SELF-CHECK
053895,000201: 
053896,000202: 43,3332           00006        CHECKNJ            EXTEND                                         
053897,000203: 43,3333           23361                           QXCH     SELFRET                               #  SAVE RETURN ADDRESS WHILE TESTING NEWJOB
053898,000204: 43,3334           04635                           TC       POSTJUMP                              #  TO SEE IF ANY JOBS HAVE BECOME ACTIVE.
053899,000205: 43,3335           03214                           CADR     ADVAN                                 
053900,000206: 
053901,000207: 43,3336           03301        SELFCHK            TC       SMODECHK                              #  ** CHARLEY, COME IN HERE
053902,000208: 
053903,000209:                                                                                                  #  SKEEP7 HOLDS LOWEST OF TWO ADDRESSES BEING CHECKED.
053904,000210:                                                                                                  #  SKEEP6 HOLDS B(X+1).
053905,000211:                                                                                                  #  SKEEP5 HOLDS B(X).
053906,000212:                                                                                                  #  SKEEP4 HOLDS C(EBANK) DURING ERASLOOP AND CHECKNJ.
053907,000213:                                                                                                  #  SKEEP3 HOLDS LAST ADDRESS BEING CHECKED (HIGHEST ADDRESS).

Page 1288

053909,000215:                                                                                                  #  SKEEP2 CONTROLS CHECKING OF NON-SWITCHABLE ERASABLE MEMORY WITH BANK NUMBERS IN EB.
053910,000216:                                                                                                  #  ERASCHK TAKES APPROXMATELY 7 SECONDS
053911,000217: 
053912,000218: 43,3337           34753        ERASCHK            CA       S+1                                   
053913,000219: 43,3340           55372                           TS       SKEEP2                                
053914,000220: 43,3341           34755        0EBANK             CA       S+ZERO                                
053915,000221: 43,3342           54003                           TS       EBANK                                 
053916,000222: 43,3343           33234                           CA       ERASCON3                              #  01461
053917,000223: 43,3344           55377                           TS       SKEEP7                                #  STARTING ADDRESS
053918,000224: 43,3345           35012                           CA       S10BITS                               #  01777
053919,000225: 43,3346           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
053920,000226: 43,3347           03367                           TC       ERASLOOP                              
053921,000227: 
053922,000228: 43,3350           35007        E134567B           CA       ERASCON6                              #  01400
053923,000229: 43,3351           55377                           TS       SKEEP7                                #  STARTING ADDRESS
053924,000230: 43,3352           35012                           CA       S10BITS                               #  01777
053925,000231: 43,3353           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
053926,000232: 43,3354           03367                           TC       ERASLOOP                              
053927,000233: 
053928,000234: 43,3355           35007        2EBANK             CA       ERASCON6                              #  01400
053929,000235: 43,3356           55377                           TS       SKEEP7                                #  STARTING ADDRESS
053930,000236: 43,3357           33235                           CA       ERASCON4                              #  01773
053931,000237: 43,3360           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
053932,000238: 43,3361           03367                           TC       ERASLOOP                              
053933,000239: 
053934,000240: 43,3362           55372        NOEBANK            TS       SKEEP2                                #  +0
053935,000241: 43,3363           33232                           CA       ERASCON1                              #  00061
053936,000242: 43,3364           55377                           TS       SKEEP7                                #  STARTING ADDRESS
053937,000243: 43,3365           33233                           CA       ERASCON2                              #  01373
053938,000244: 43,3366           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
053939,000245: 
053940,000246: 43,3367           00004        ERASLOOP           INHINT                                         
053941,000247: 43,3370           30003                           CA       EBANK                                 #  STORES C(EBANK)
053942,000248: 43,3371           55374                           TS       SKEEP4                                
053943,000249: 43,3372           00006                           EXTEND                                         
053944,000250: 43,3373           51377                           NDX      SKEEP7                                
053945,000251: 43,3374           30001                           DCA      0000                                  
053946,000252: 43,3375           53376                           DXCH     SKEEP5                                #  STORES C(X) AND C(X+1) IN SKEEP6 AND 5.
053947,000253: 43,3376           31377                           CA       SKEEP7                                
053948,000254: 43,3377           55360                           TS       ERESTORE                              #  IF RESTART, RESTORE C(X) AND C(X+1)
053949,000255: 43,3400           54001                           TS       L                                     
053950,000256: 43,3401           24001                           INCR     L                                     
053951,000257: 43,3402           50000                           NDX      A                                     
053952,000258: 43,3403           52001                           DXCH     0000                                  #  PUTS OWN ADDRESS IN X AND X +1
053953,000259: 43,3404           51377                           NDX      SKEEP7                                
053954,000260: 43,3405           40001                           CS       0001                                  #  CS X+1
053955,000261: 43,3406           51377                           NDX      SKEEP7                                
053956,000262: 43,3407           60000                           AD       0000                                  #  AD X
053957,000263: 43,3410           03273                           TC       -1CHK                                 
053958,000264: 43,3411           31360                           CA       ERESTORE                              #  HAS ERASABLE BEEN RESTORED
053959,000265: 43,3412           00006                           EXTEND                                         

Page 1289

053961,000267: 43,3413           13437                           BZF      ELOOPFIN                              #  YES, EXIT ERASLOOP.
053962,000268: 43,3414           00006                           EXTEND                                         
053963,000269: 43,3415           51377                           NDX      SKEEP7                                
053964,000270: 43,3416           40001                           DCS      0000                                  #  COMPLEMENT OF ADDRESS OF X AND X+1
053965,000271: 43,3417           51377                           NDX      SKEEP7                                
053966,000272: 43,3420           52001                           DXCH     0000                                  #  PUT COMPLEMENT OF ADDRESS OF X AND X+1
053967,000273: 43,3421           51377                           NDX      SKEEP7                                
053968,000274: 43,3422           40000                           CS       0000                                  #  CS X
053969,000275: 43,3423           51377                           NDX      SKEEP7                                
053970,000276: 43,3424           60001                           AD       0001                                  #  AD X+1
053971,000277: 43,3425           03273                           TC       -1CHK                                 
053972,000278: 43,3426           31360                           CA       ERESTORE                              #  HAS ERASABLE BEEN RESTORED
053973,000279: 43,3427           00006                           EXTEND                                         
053974,000280: 43,3430           13437                           BZF      ELOOPFIN                              #  YES, EXIT ERASLOOP.
053975,000281: 43,3431           00006                           EXTEND                                         
053976,000282: 43,3432           31376                           DCA      SKEEP5                                
053977,000283: 43,3433           51377                           NDX      SKEEP7                                
053978,000284: 43,3434           52001                           DXCH     0000                                  #  PUT B(X) AND B(X+1) BACK INTO X AND X+1
053979,000285: 43,3435           34755                           CA       S+ZERO                                
053980,000286: 43,3436           55360                           TS       ERESTORE                              #  IF RESTART, DO NOT RESTORE C(X), C(X+1)
053981,000287: 43,3437           00003        ELOOPFIN           RELINT                                         
053982,000288: 43,3440           03332                           TC       CHECKNJ                               #  CHECK FOR NEW JOB
053983,000289: 43,3441           31374                           CA       SKEEP4                                #  REPLACES B(EBANK)
053984,000290: 43,3442           54003                           TS       EBANK                                 
053985,000291: 43,3443           25377                           INCR     SKEEP7                                
053986,000292: 43,3444           41377                           CS       SKEEP7                                
053987,000293: 43,3445           61373                           AD       SKEEP3                                
053988,000294: 43,3446           00006                           EXTEND                                         
053989,000295: 43,3447           13451                           BZF      +2                                    
053990,000296: 43,3450           03367                           TC       ERASLOOP                              #  GO TO NEXT ADDRESS IN SAME BANK
053991,000297: 43,3451           11372                           CCS      SKEEP2                                
053992,000298: 43,3452           03362                           TC       NOEBANK                               
053993,000299: 43,3453           25372                           INCR     SKEEP2                                #  PUT +1 IN SKEEP2.
053994,000300: 43,3454           30003                           CA       EBANK                                 
053995,000301: 43,3455           64743                           AD       SBIT9                                 
053996,000302: 43,3456           54003                           TS       EBANK                                 
053997,000303: 43,3457           63243                           AD       ERASCON5                              #  76777, CHECK FOR BANK E2
053998,000304: 43,3460           00006                           EXTEND                                         
053999,000305: 43,3461           13355                           BZF      2EBANK                                
054000,000306: 43,3462           10003                           CCS      EBANK                                 
054001,000307: 43,3463           03350                           TC       E134567B                              #  GO TO EBANKS 1,3,4,5,6, AND 7
054002,000308: 43,3464           35007                           CA       ERASCON6                              #  END OF ERASCHK
054003,000309: 43,3465           54003                           TS       EBANK                                 
054004,000310: 
054005,000311:                                                                                                  #  CNTRCHK PERFORMS A CS OF ALL REGISTERS FROM OCT. 60 THROUGH OCT. 10.
054006,000312:                                                                                                  #  INCLUDED ARE ALL COUNTERS, T6-1, CYCLE AND SHIFT, AND ALL RUPT REGISTERS
054007,000313: 
054008,000314: 43,3466           34771        CNTRCHK            CA       CNTRCON                               #  00050
054009,000315: 43,3467           55372        CNTRLOOP           TS       SKEEP2                                
054010,000316: 43,3470           64750                           AD       SBIT4                                 #  +10 OCTAL
054011,000317: 43,3471           50000                           INDEX    A                                     
054012,000318: 43,3472           40000                           CS       0000                                  

Page 1290

054014,000320: 43,3473           11372                           CCS      SKEEP2                                
054015,000321: 43,3474           03467                           TC       CNTRLOOP                              
054016,000322: 
054017,000323:                                                                                                  #  CYCLSHFT CHECKS THE CYCLE AND SHIFT REGISTERS
054018,000324: 
054019,000325: 43,3475           33241        CYCLSHFT           CA       CONC+S1                               #  25252
054020,000326: 43,3476           54020                           TS       CYR                                   #  C(CYR) = 12525
054021,000327: 43,3477           54022                           TS       CYL                                   #  C(CYL) = 52524
054022,000328: 43,3500           54021                           TS       SR                                    #  C(SR) = 12525
054023,000329: 43,3501           54023                           TS       EDOP                                  #  C(EDOP) = 00125
054024,000330: 43,3502           60020                           AD       CYR                                   #  37777         C(CYR) = 45252
054025,000331: 43,3503           60022                           AD       CYL                                   #  00-12524      C(CYL) = 25251
054026,000332: 43,3504           60021                           AD       SR                                    #  00-25251      C(SR) = 05252
054027,000333: 43,3505           60023                           AD       EDOP                                  #  00-25376      C(EDOP) = +0
054028,000334: 43,3506           63242                           AD       CONC+S2                               #  C(CONC+S2) = 52400
054029,000335: 43,3507           03273                           TC       -1CHK                                 
054030,000336: 43,3510           60020                           AD       CYR                                   #  45252
054031,000337: 43,3511           60022                           AD       CYL                                   #  72523
054032,000338: 43,3512           60021                           AD       SR                                    #  77775
054033,000339: 43,3513           60023                           AD       EDOP                                  #  77775
054034,000340: 43,3514           64753                           AD       S+1                                   #  77776
054035,000341: 43,3515           03273                           TC       -1CHK                                 
054036,000342: 
054037,000343: 43,3516           25367                           INCR     SCOUNT     +1                         
054038,000344: 43,3517           03301                           TC       SMODECHK                              
054039,000345: 
054040,000346:                                                                                                  #  SKEEP1 HOLDS SUM
054041,000347:                                                                                                  #  SKEEP2 HOLDS PRESENT CONTENTS OF ADDRESS IN ROPECHK AND SHOWSUM ROUTINES
054042,000348:                                                                                                  #  SKEEP2 HOLDS BANK NUMBER IN LOW ORDER BITS DURING SHOWSUM DISPLAY
054043,000349:                                                                                                  #  SKEEP3 HOLDS PRESENT ADDRESS (00000 TO 01777 IN COMMON FIXED BANKS)
054044,000350:                                                                                                  #                               (04000 TO 07777 IN FXFX BANKS)
054045,000351:                                                                                                  #  SKEEP3 HOLDS BUGGER WORD DURING SHOWSUM DISPLAY
054046,000352:                                                                                                  #  SKEEP4 HOLDS BANK NUMBER AND SUPER BANK NUMBER
054047,000353:                                                                                                  #  SKEEP5 COUNTS 2 SUCCESSIVE TC SELF WORDS
054048,000354:                                                                                                  #  SKEEP6 CONTROLS ROPECHK OR SHOWSUM OPTION
054049,000355:                                                                                                  #  SKEEP7 CONTROLS WHEN ROUNTINE IS IN COMMON FIXED OR FIXED FIXED BANKS
054050,000356: 
054051,000357: 43,3520           34754        ROPECHK            CA       S-ZERO                                #  *
054052,000358: 43,3521           55376                           TS       SKEEP6                                #  * -0 FOR ROPECHK.
054053,000359: 43,3522           34755        STSHOSUM           CA       S+ZERO                                #  * SHOULD BE ROPECHK
054054,000360: 
054055,000361: 43,3523           55374                           TS       SKEEP4                                #  BANK NUMBER
054056,000362: 43,3524           34753                           CA       S+1                                   
054057,000363: 43,3525           55377        COMMFX             TS       SKEEP7                                
054058,000364: 43,3526           34755                           CA       S+ZERO                                
054059,000365: 43,3527           55371                           TS       SKEEP1                                
054060,000366: 43,3530           55373                           TS       SKEEP3                                
054061,000367: 43,3531           34753                           CA       S+1                                   
054062,000368: 43,3532           55375                           TS       SKEEP5                                #  COUNTS DOWN 2 TC SELF WORDS
054063,000369: 43,3533           31374        COMADRS            CA       SKEEP4                                
054064,000370: 43,3534           54001                           TS       L                                     #  TO SET SUPER BANK
054065,000371: 43,3535           74350                           MASK     HI5                                   

Page 1291

054067,000373: 43,3536           61373                           AD       SKEEP3                                
054068,000374: 43,3537           04651                           TC       SUPDACAL                              #  SUPER DATA CALL
054069,000375: 43,3540           03563                           TC       ADSUM                                 
054070,000376: 43,3541           64741                           AD       SBIT11                                #  02000
054071,000377: 43,3542           03574                           TC       ADRSCHK                               
054072,000378: 
054073,000379: 43,3543           40000        FXFX               CS       A                                     
054074,000380: 43,3544           55377                           TS       SKEEP7                                
054075,000381: 43,3545           00006                           EXTEND                                         
054076,000382: 43,3546           13551                           BZF      +3                                    
054077,000383: 43,3547           34740                           CA       SBIT12                                #  04000, STARTING ADDRESS OF BANK 02
054078,000384: 43,3550           03552                           TC       +2                                    
054079,000385: 43,3551           35020                           CA       SBNK03                                #  06000, STARTING ADDRESS OF BANK 03
054080,000386: 43,3552           55373                           TS       SKEEP3                                
054081,000387: 43,3553           34755                           CA       S+ZERO                                
054082,000388: 43,3554           55371                           TS       SKEEP1                                
054083,000389: 43,3555           34753                           CA       S+1                                   
054084,000390: 43,3556           55375                           TS       SKEEP5                                #  COUNTS DOWN 2 TC SELF WORDS
054085,000391: 43,3557           51373        FXADRS             INDEX    SKEEP3                                
054086,000392: 43,3560           30000                           CA       0000                                  
054087,000393: 43,3561           03563                           TC       ADSUM                                 
054088,000394: 43,3562           03574                           TC       ADRSCHK                               
054089,000395: 
054090,000396: 43,3563           55372        ADSUM              TS       SKEEP2                                
054091,000397: 43,3564           61371                           AD       SKEEP1                                
054092,000398: 43,3565           55371                           TS       SKEEP1                                
054093,000399: 43,3566           34755                           CAF      S+ZERO                                
054094,000400: 43,3567           61371                           AD       SKEEP1                                
054095,000401: 43,3570           55371                           TS       SKEEP1                                
054096,000402: 43,3571           41372                           CS       SKEEP2                                
054097,000403: 43,3572           61373                           AD       SKEEP3                                
054098,000404: 43,3573           00002                           TC       Q                                     
054099,000405: 
054100,000406: 43,3574           22000        ADRSCHK            LXCH     A                                     
054101,000407: 43,3575           31373                           CA       SKEEP3                                
054102,000408: 43,3576           75012                           MASK     LOW10                                 #  RELATIVE ADDRESS
054103,000409: 43,3577           64350                           AD       -MAXADRS                              #  SUBTRACT MAX RELATIVE ADDRESS = 1777.
054104,000410: 43,3600           00006                           EXTEND                                         
054105,000411: 43,3601           13670                           BZF      SOPTION                               #  CHECKSUM FINISHED IF LAST ADDRESS.
054106,000412: 43,3602           11375                           CCS      SKEEP5                                #  IS CHECKSUM FINISHED
054107,000413: 43,3603           03606                           TC       +3                                    #  NO
054108,000414: 43,3604           03606                           TC       +2                                    #  NO
054109,000415: 43,3605           03670                           TC       SOPTION                               #  GO TO ROPECHK SHOWSUM OPTION
054110,000416: 43,3606           10001                           CCS      L                                     #  -0 MEANS A TC SELF WORD.
054111,000417: 43,3607           03616                           TC       CONTINU                               
054112,000418: 43,3610           03616                           TC       CONTINU                               
054113,000419: 43,3611           03616                           TC       CONTINU                               
054114,000420: 43,3612           11375                           CCS      SKEEP5                                
054115,000421: 43,3613           03617                           TC       CONTINU    +1                         
054116,000422: 43,3614           37747                           CA       S-1                                   

Page 1292

054118,000424: 43,3615           03617                           TC       CONTINU    +1                         #  AD IN THE BUGGER WORD
054119,000425: 43,3616           34753        CONTINU            CA       S+1                                   #  MAKE SURE TWO CONSECUTIVE TC SELF WORDS
054120,000426: 43,3617           55375                           TS       SKEEP5                                
054121,000427: 43,3620           11376                           CCS      SKEEP6                                #  *
054122,000428: 43,3621           10067                           CCS      NEWJOB                                #  * +1, SHOWSUM
054123,000429: 43,3622           05122                           TC       CHANG1                                #  *
054124,000430: 43,3623           03625                           TC       +2                                    #  *
054125,000431: 43,3624           03332                           TC       CHECKNJ                               #  -0 IN SKEEP6 FOR ROPECHK
054126,000432: 
054127,000433: 43,3625           25373        ADRS+1             INCR     SKEEP3                                
054128,000434: 43,3626           11377                           CCS      SKEEP7                                
054129,000435: 43,3627           03533                           TC       COMADRS                               
054130,000436: 43,3630           03533                           TC       COMADRS                               
054131,000437: 43,3631           03557                           TC       FXADRS                                
054132,000438: 43,3632           03557                           TC       FXADRS                                
054133,000439: 
054134,000440: 43,3633           41374        NXTBNK             CS       SKEEP4                                
054135,000441: 43,3634           63723                           AD       LSTBNKCH                              #  LAST BANK TO BE CHECKED
054136,000442: 43,3635           00006                           EXTEND                                         
054137,000443: 43,3636           13131                           BZF      ENDSUMS                               #  END OF SUMMING OF BANKS.
054138,000444: 43,3637           31374                           CA       SKEEP4                                
054139,000445: 43,3640           64741                           AD       SBIT11                                
054140,000446: 43,3641           55374                           TS       SKEEP4                                #  37 TO 40 INCRMTS SKEEP4 BY END RND CARRY
054141,000447: 43,3642           03646                           TC       CHKSUPR                               
054142,000448: 43,3643           34735        17TO20             CA       SBIT15                                
054143,000449: 43,3644           27374                           ADS      SKEEP4                                #  SET FOR BANK 20
054144,000450: 43,3645           03662                           TC       GONXTBNK                              
054145,000451: 43,3646           74350        CHKSUPR            MASK     HI5                                   
054146,000452: 43,3647           00006                           EXTEND                                         
054147,000453: 43,3650           13660                           BZF      NXTSUPR                               #  INCREMENT SUPER BANK
054148,000454: 43,3651           63240        27TO30             AD       S13BITS                               
054149,000455: 43,3652           00006                           EXTEND                                         
054150,000456: 43,3653           13655                           BZF      +2                                    #  BANK SET FOR 30
054151,000457: 43,3654           03662                           TC       GONXTBNK                              
054152,000458: 43,3655           33236                           CA       SIXTY                                 #  FIRST SUPER BANK
054153,000459: 43,3656           27374                           ADS      SKEEP4                                
054154,000460: 43,3657           03662                           TC       GONXTBNK                              
054155,000461: 43,3660           63237        NXTSUPR            AD       SUPRCON                               #  SET BNK 30 + INCR SUPR BNK AND CANCEL
054156,000462: 43,3661           27374                           ADS      SKEEP4                                #  ERC BIT OF THE 37 TO 40 ADVANCE.
054157,000463: 43,3662           11377        GONXTBNK           CCS      SKEEP7                                
054158,000464: 43,3663           03525                           TC       COMMFX                                
054159,000465: 43,3664           34753                           CA       S+1                                   
054160,000466: 43,3665           03543                           TC       FXFX                                  
054161,000467: 43,3666           34745                           CA       SBIT7                                 #  HAS TO BE LARGER THAN NO OF FXSW BANKS.
054162,000468: 43,3667           03525                           TC       COMMFX                                
054163,000469: 
054164,000470: 43,3670           31374        SOPTION            CA       SKEEP4                                
054165,000471: 43,3671           74350                           MASK     HI5                                   #  = BANK BITS
054166,000472: 43,3672           04331                           TC       LEFT5                                 
054167,000473: 43,3673           54001                           TS       L                                     #  BANK NUMBER BEFORE SUPER BANK

Page 1293

054169,000475: 43,3674           31374                           CA       SKEEP4                                
054170,000476: 43,3675           74357                           MASK     S8BITS                                #  = SUPER BANK BITS
054171,000477: 43,3676           00006                           EXTEND                                         
054172,000478: 43,3677           13705                           BZF      SOPT                                  #  BEFORE SUPER BANK
054173,000479: 43,3700           54021                           TS       SR                                    #  SUPER BANK NECESSARY
054174,000480: 43,3701           30001                           CA       L                                     
054175,000481: 43,3702           74757                           MASK     SEVEN                                 
054176,000482: 43,3703           60021                           AD       SR                                    
054177,000483: 43,3704           54001                           TS       L                                     #  BANK NUMBER WITH SUPER BANK
054178,000484: 43,3705           31376        SOPT               CA       SKEEP6                                #  *
054179,000485: 43,3706           00006                           EXTEND                                         #  *
054180,000486: 43,3707           13711                           BZF      +2                                    #  * ON -0 CONTINUE WITH ROPE CHECK.
054181,000487: 43,3710           03113                           TC       SDISPLAY                              #  * ON +1 GO TO DISPLAY OF SUM.
054182,000488: 43,3711           11371                           CCS      SKEEP1                                #  FORCE SUM TO ABSOLUTE VALUE.
054183,000489: 43,3712           03714                           TC       +2                                    
054184,000490: 43,3713           03715                           TC       +2                                    
054185,000491: 43,3714           64753                           AD       S+1                                   
054186,000492: 43,3715           55371                           TS       SKEEP1                                
054187,000493: 43,3716           40001        BNKCHK             CS       L                                     #  = - BANK NUMBER
054188,000494: 43,3717           61371                           AD       SKEEP1                                
054189,000495: 43,3720           67747                           AD       S-1                                   
054190,000496: 43,3721           03273                           TC       -1CHK                                 #  CHECK SUM
054191,000497: 43,3722           03633                           TC       NXTBNK                                
054192,000498: 
054193,000499: 43,3723     0067                                  EBANK=   NEWJOB                                
054194,000500: 43,3723           66100        LSTBNKCH           BBCON*                                         #  * CONSTANT, LAST BANK.
054195,000501: 

End of include-file AGC_BLOCK_TWO_SELF-CHECK.agc.  Parent file is MAIN.agc