Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality 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 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

054988,000002:                                                                                                  ## Copyright:   Public domain.
054989,000003:                                                                                                  ## Filename:    AGC_BLOCK_TWO_SELF_CHECK.agc
054990,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
054991,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
054992,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
054993,000007:                                                                                                  ## Assembler:   yaYUL
054994,000008:                                                                                                  ## Contact:     Onno Hommes <ohommes@cmu.edu>.
054995,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
054996,000010:                                                                                                  ## Pages:       1284-1293
054997,000011:                                                                                                  ## Mod history: 2009-05-27 OH   Transcribed from page images.
054998,000012:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
054999,000013:                                                                                                  ##                              and corrected the errors found.
055000,000014:                                                                                                  ##              2017-01-28 RSB  WTIH -> WITH.
055001,000015:                                                                                                  ##
055002,000016:                                                                                                  ## This source code has been transcribed or otherwise adapted from
055003,000017:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
055004,000018:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
055005,000019:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
055006,000020:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
055007,000021:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
055008,000022:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
055009,000023:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
055010,000024:                                                                                                  ## actually created.
055011,000025:                                                                                                  ##
055012,000026:                                                                                                  ## Notations on the hardcopy document read, in part:
055013,000027:                                                                                                  ##
055014,000028:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
055015,000029:                                                                                                  ##      16:27 JULY 14, 1969 
055016,000030: 

Page 1284

055018,000032:                                                                                                  #  PROGRAM DESCRIPTION                           DATE   20 DECEMBER 1967
055019,000033:                                                                                                  #  PROGRAM NAME - SELF-CHECK                     LOG SECTION  AGC BLOCK TWO SELF-CHECK
055020,000034:                                                                                                  #  MOD NO - 1                                    ASSEMBLY SUBROUTINE UTILITYM REV 25
055021,000035:                                                                                                  #  MOD BY - GAUNTT
055022,000036: 
055023,000037:                                                                                                  #  FUNCTIONAL DESCRIPTION
055024,000038:                                                                                                  #        PROGRAM HAS TWO MAIN PARTS.  THE FIRST IS SELF-CHECK WHICH RUNS AS A ZERO PRIORITY JOB WITH NO CORE SET, AS
055025,000039:                                                                                                  #        PART OF THE BACK-UP IDLE LOOP.  THE SECOND IS SHOW-BANKSUM WHICH RUNS AS A REGULAR EXECUTIVE JOB WITH ITS OWN
055026,000040:                                                                                                  #        STARTING VERB.
055027,000041: 
055028,000042:                                                                                                  #        THE PURPOSE OF SELF-CHECK IS TO CHECK OUT VARIOUS PARTS OF THE COMPUTER AS OUTLINED BELOW IN THE OPTIONS.
055029,000043: 
055030,000044:                                                                                                  #        THE PURPOSE OF SHOW-BANKSUM IS TO DISPLAY THE SUM OF EACH BANK, ONE AT A TIME.
055031,000045: 
055032,000046:                                                                                                  #        IN ALL THERE ARE 7 POSSIBLE OPTIONS IN THIS BLOCK II VERSION OF SELF-CHECK.  MORE DETAIL DESCRIPTION MAY BE
055033,000047:                                                                                                  #        FOUND IN E-2065 BLOCK II AGC SELF-CHECK AND SHOW BANKSUM BY EDWIN D. SMALLY DECEMBER 1966, AND ADDENDA 2 AND 3.
055034,000048: 
055035,000049:                                                                                                  #        THE DIFFERENT OPTIONS ARE CONTROLLED BY PUTTING DIFFERENT NUMBERS IN THE SMODE REGISTER (NOUN 27).  BELOW IS
055036,000050:                                                                                                  #        A DESCRIPTION OF WHAT PARTS OF THE COMPUTER THAT ARE CHECKED BY THE OPTIONS, AND THE CORRESPONDING NUMBER, IN
055037,000051:                                                                                                  #        OCTAL, TO LOAD INTO SMODE.
055038,000052:                                                                                                  #                +-4             ERASABLE MEMORY
055039,000053:                                                                                                  #                +-5             FIXED MEMORY
055040,000054:                                                                                                  #                +-1,2,3,6,7,10  EVERYTHING IN OPTIONS 4 AND 5.
055041,000055:                                                                                                  #                -0              SAME AS +-10 UNTIL AN ERROR IS DETECTED.
055042,000056:                                                                                                  #                +0              NO CHECK, PUTS COMPUTER INTO THE BACKUP IDLE LOOP.
055043,000057: 
055044,000058:                                                                                                  #  WARNINGS
055045,000059:                                                                                                  #        USE OF E MEMORY RESERVED FOR SELF-CHECK (EVEN IN IDLE LOOP) AS TEMP STORAGE BY OTHER PROGRAMS IS DANGEROUS.
055046,000060:                                                                                                  #        SMODE SET GREATER THAN OCT 10 PUTS COMPUTER INTO BACKUP IDLE LOOP.
055047,000061: 
055048,000062:                                                                                                  #  CALLING SEQUENCE
055049,000063:                                                                                                  #        TO CALL SELF-CHECK KEY IN
055050,000064:                                                                                                  #                V 21 N 27 E     OPTION NUMBER E
055051,000065:                                                                                                  #        TO CALL SHOW-BANKSUM KEY IN
055052,000066:                                                                                                  #                V 91 E          DISPLAYS FIRST BANK
055053,000067:                                                                                                  #                V 33 E          PROCEED, DISPLAYS NEXT BANK
055054,000068: 
055055,000069:                                                                                                  #  EXIT MODES, NORMAL AND ALARM
055056,000070:                                                                                                  #        SELF-CHECK NORMALLY CONTINUES INDEFINITELY UNLESS THERE IS AN ERROR DETECTED.  IF SO + OPTION NUMBERS PUT
055057,000071:                                                                                                  #        COMPUTER INTO BACKUP IDLE LOOP, - OPTION NUMBERS RESTART THE OPTION.
055058,000072: 
055059,000073:                                                                                                  #        THE -0 OPTION PROCEEDS FROM THE LINE FOLLOWING THE LINE WHERE THE ERROR WAS DETECTED.
055060,000074: 
055061,000075:                                                                                                  #        SHOW-BANKSUM PROCEEDS UNTIL A TERMINATE IS KEYED IN (V 34 E).  THE COMPUTER IS PUT INTO THE BACKUP IDLE LOOP
055062,000076: 
055063,000077:                                                                                                  #  OUTPUT

Page 1285

055065,000079:                                                                                                  #        SELF-CHECK UPON DETECTING AN ERROR LOADS THE SELF-CHECK ALARM CONSTANT (01102) INTO THE FAILREG SET AND
055066,000080:                                                                                                  #        TURNS ON THE ALARM LIGHT.  THE OPERATOR MAY THEN DISPLAY THE THREE FAILREGS BY KEYING IN V 05 N 09 E.  FOR FURTHER
055067,000081:                                                                                                  #        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,
055068,000082:                                                                                                  #        IN R2 THE BBCON OF SELF-CHECK, AND IN R3 THE TOTAL NUMBER OF ERRORS DETECTED BY SELF-CHECK SINCE THE LAST MAN
055069,000083:                                                                                                  #        INITIATED FRESH START (SLAP1).
055070,000084: 
055071,000085:                                                                                                  #        SHOW-BANKSUM STARTING WITH BANK 0 DISPLAYS IN R1 THE BANK SUM (A +-NUMBER EQUAL TO THE BANK NUMBER), IN R2
055072,000086:                                                                                                  #        THE BANK NUMBER, AND IN R3 THE BUGGER WORD.
055073,000087: 
055074,000088:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
055075,000089:                                                                                                  #        ACCOMPLISHED BY FRESH START
055076,000090:                                                                                                  #                SMODE SET TO +0
055077,000091: 
055078,000092:                                                                                                  #  DEBRIS
055079,000093:                                                                                                  #        ALL EXITS FROM THE CHECK OF ERASABLE (ERASCHK) RESTORE ORIGINAL CONTENTS TO REGISTERS UNDER CHECK.
055080,000094:                                                                                                  #        EXCEPTION IS A RESTART.  RESTART THAT OCCURS DURING ERASCHK RESTORES ERASABLE, UNLESS THERE IS EVIDENCE TO DOUBT
055081,000095:                                                                                                  #        E MEMORY, IN WHICH CASE PROGRAM THEN DOES A FRESH START (DOFSTART).
055082,000096: 
055083,000097: 25,3770                                           BANK     25                                    
055084,000098: 43,2000                                           SETLOC   SELFCHEC                              
055085,000099: 43,2000                                           BANK                                           
055086,000100: 
055087,000101: 43,3232                                           COUNT*   $$/SELF                               
055088,000102: 43,3232     4753               SBIT1              EQUALS   BIT1                                  
055089,000103: 43,3232     4752               SBIT2              EQUALS   BIT2                                  
055090,000104: 43,3232     4751               SBIT3              EQUALS   BIT3                                  
055091,000105: 43,3232     4750               SBIT4              EQUALS   BIT4                                  
055092,000106: 43,3232     4747               SBIT5              EQUALS   BIT5                                  
055093,000107: 43,3232     4746               SBIT6              EQUALS   BIT6                                  
055094,000108: 43,3232     4745               SBIT7              EQUALS   BIT7                                  
055095,000109: 43,3232     4744               SBIT8              EQUALS   BIT8                                  
055096,000110: 43,3232     4743               SBIT9              EQUALS   BIT9                                  
055097,000111: 43,3232     4742               SBIT10             EQUALS   BIT10                                 
055098,000112: 43,3232     4741               SBIT11             EQUALS   BIT11                                 
055099,000113: 43,3232     4740               SBIT12             EQUALS   BIT12                                 
055100,000114: 43,3232     4737               SBIT13             EQUALS   BIT13                                 
055101,000115: 43,3232     4736               SBIT14             EQUALS   BIT14                                 
055102,000116: 43,3232     4735               SBIT15             EQUALS   BIT15                                 
055103,000117: 
055104,000118: 43,3232     4755               S+ZERO             EQUALS   ZERO                                  
055105,000119: 43,3232     4753               S+1                EQUALS   BIT1                                  
055106,000120: 43,3232     4752               S+2                EQUALS   BIT2                                  
055107,000121: 43,3232     6245               S+3                EQUALS   THREE                                 
055108,000122: 43,3232     4751               S+4                EQUALS   FOUR                                  
055109,000123: 43,3232     4756               S+5                EQUALS   FIVE                                  
055110,000124: 43,3232     6242               S+6                EQUALS   SIX                                   

Page 1286

055112,000126: 43,3232     4757               S+7                EQUALS   SEVEN                                 
055113,000127: 43,3232     4357               S8BITS             EQUALS   LOW8                                  #  00377
055114,000128: 43,3232     4771               CNTRCON            =        OCT50                                 #  USED IN CNTRCHK
055115,000129: 43,3232           00061        ERASCON1           OCTAL    00061                                 #  USED IN ERASCHK
055116,000130: 43,3233           01373        ERASCON2           OCTAL    01373                                 #  USED IN ERASCHK
055117,000131: 43,3234     5007               ERASCON6           =        OCT1400                               #  USED IN ERASCHK
055118,000132: 43,3234           01461        ERASCON3           OCTAL    01461                                 #  USED IN ERASCHK
055119,000133: 43,3235           01773        ERASCON4           OCTAL    01773                                 #  USED IN ERASCHK
055120,000134: 43,3236     5012               S10BITS            EQUALS   LOW10                                 #  01777, USED IN ERASCHK
055121,000135: 43,3236     5020               SBNK03             EQUALS   PRIO6                                 #  06000, USED IN ROPECHK
055122,000136: 43,3236     4350               -MAXADRS           =        HI5                                   #  FOR ROPECHK
055123,000137: 43,3236           00060        SIXTY              OCTAL    00060                                 
055124,000138: 43,3237           60017        SUPRCON            OCTAL    60017                                 #  USED IN ROPECHK
055125,000139: 43,3240           17777        S13BITS            OCTAL    17777                                 
055126,000140: 43,3241           25252        CONC+S1            OCTAL    25252                                 #  USED IN CYCLSHFT
055127,000141: 43,3242           52400        CONC+S2            OCTAL    52400                                 #  USED IN CYCLSHFT
055128,000142: 43,3243           76777        ERASCON5           OCTAL    76777                                 
055129,000143: 43,3244     5660               S-7                =        OCT77770                              
055130,000144: 43,3244     6112               S-4                EQUALS   NEG4                                  
055131,000145: 43,3244     7745               S-3                EQUALS   NEG3                                  
055132,000146: 43,3244     7746               S-2                EQUALS   NEG2                                  
055133,000147: 43,3244     7747               S-1                EQUALS   NEGONE                                
055134,000148: 43,3244     4754               S-ZERO             EQUALS   NEG0                                  
055135,000149: 
055136,000150: 43,3244  E3,1400                                  EBANK=   LST1                                  
055137,000151: 43,3244           01371        ADRS1              ADRES    SKEEP1                                
055138,000152: 43,3245           03336        SELFADRS           ADRES    SELFCHK                               #  SELFCHK RETURN ADDRESS.  SHOULD BE PUT
055139,000153:                                                                                                  #  IN SELFRET WHEN GOING FROM SELFCHK TO
055140,000154:                                                                                                  #  SHOWSUM AND PUT IN SKEEP1 WHEN GOING
055141,000155:                                                                                                  #  FROM SHOWSUM TO SELF-CHECK.
055142,000156: 
055143,000157: 43,3246           31360        PRERRORS           CA       ERESTORE                              #  IS IT NECESSARY TO RESTORE ERASABLE
055144,000158: 43,3247           00006                           EXTEND                                         
055145,000159: 43,3250           13257                           BZF      ERRORS                                #  NO
055146,000160: 43,3251           00006                           EXTEND                                         
055147,000161: 43,3252           31376                           DCA      SKEEP5                                
055148,000162: 43,3253           51377                           INDEX    SKEEP7                                
055149,000163: 43,3254           52001                           DXCH     0000                                  #  RESTORE THE TWO ERASABLE REGISTERS
055150,000164: 43,3255           34755                           CA       S+ZERO                                
055151,000165: 43,3256           55360                           TS       ERESTORE                              
055152,000166: 43,3257           00004        ERRORS             INHINT                                         
055153,000167: 43,3260           30002                           CA       Q                                     
055154,000168: 43,3261           55357                           TS       SFAIL                                 #  SAVE Q FOR FAILURE LOCATION
055155,000169: 43,3262           55363                           TS       ALMCADR                               #  FOR DISPLAY WITH BBANK AND ERCOUNT
055156,000170: 43,3263           25365                           INCR     ERCOUNT                               #  KEEP TRACK OF NUMBER OF MALFUNCTIONS.
055157,000171: 43,3264           05571        TCALARM2           TC       ALARM2                                
055158,000172: 43,3265           01102                           OCT      01102                                 #  SELF-CHECK MALFUNCTION INDICATOR
055159,000173: 43,3266           11362                           CCS      SMODE                                 
055160,000174: 43,3267           34755        SIDLOOP            CA       S+ZERO                                
055161,000175: 43,3270           55362                           TS       SMODE                                 

Page 1287

055163,000177: 43,3271           03336                           TC       SELFCHK                               #  GO TO IDLE LOOP
055164,000178: 43,3272           01357                           TC       SFAIL                                 #  CONTINUE WITH SELF-CHECK
055165,000179: 
055166,000180: 43,3273           10000        -1CHK              CCS      A                                     
055167,000181: 43,3274           13246                           TCF      PRERRORS                              
055168,000182: 43,3275           13246                           TCF      PRERRORS                              
055169,000183: 43,3276           10000                           CCS      A                                     
055170,000184: 43,3277           13246                           TCF      PRERRORS                              
055171,000185: 43,3300           00002                           TC       Q                                     
055172,000186: 
055173,000187: 43,3301           00006        SMODECHK           EXTEND                                         
055174,000188: 43,3302           23371                           QXCH     SKEEP1                                
055175,000189: 43,3303           03332                           TC       CHECKNJ                               #  CHECK FOR NEW JOB
055176,000190: 43,3304           11362                           CCS      SMODE                                 
055177,000191: 43,3305           03312                           TC       SOPTIONS                              
055178,000192: 43,3306           03303                           TC       SMODECHK   +2                         #  TO BACKUP IDLE LOOP
055179,000193: 43,3307           03312                           TC       SOPTIONS                              
055180,000194: 43,3310           25366                           INCR     SCOUNT                                
055181,000195: 43,3311           01371                           TC       SKEEP1                                #  CONTINUE WITH SELF-CHECK
055182,000196: 
055183,000197: 43,3312           65660        SOPTIONS           AD       S-7                                   
055184,000198: 43,3313           00006                           EXTEND                                         
055185,000199: 43,3314           63316                           BZMF     +2                                    #  FOR OPTIONS BELOW NINE.
055186,000200: 43,3315           03267        BNKOPTN            TC       SIDLOOP                               #  ILLEGAL OPTION.  GO TO IDLE LOOP.
055187,000201: 43,3316           25366                           INCR     SCOUNT                                #  FOR OPTIONS BELOW NINE.
055188,000202: 43,3317           64757                           AD       S+7                                   
055189,000203: 
055190,000204: 43,3320           50000                           INDEX    A                                     
055191,000205: 43,3321           03322                           TC       SOPTION1                              
055192,000206: 43,3322           01371        SOPTION1           TC       SKEEP1                                #  WAS TC+TCF
055193,000207: 43,3323           01371        SOPTION2           TC       SKEEP1                                #  WAS IN:OUT1
055194,000208: 43,3324           01371        SOPTION3           TC       SKEEP1                                #  WAS COUNTCHK
055195,000209: 43,3325           03337        SOPTION4           TC       ERASCHK                               
055196,000210: 43,3326           03520        SOPTION5           TC       ROPECHK                               
055197,000211: 43,3327           01371        SOPTION6           TC       SKEEP1                                
055198,000212: 43,3330           01371        SOPTION7           TC       SKEEP1                                
055199,000213: 43,3331           01371        SOPTON10           TC       SKEEP1                                #  CONTINUE WITH SELF-CHECK
055200,000214: 
055201,000215: 43,3332           00006        CHECKNJ            EXTEND                                         
055202,000216: 43,3333           23361                           QXCH     SELFRET                               #  SAVE RETURN ADDRESS WHILE TESTING NEWJOB
055203,000217: 43,3334           04635                           TC       POSTJUMP                              #  TO SEE IF ANY JOBS HAVE BECOME ACTIVE.
055204,000218: 43,3335           03214                           CADR     ADVAN                                 
055205,000219: 
055206,000220: 43,3336           03301        SELFCHK            TC       SMODECHK                              #  ** CHARLEY, COME IN HERE
055207,000221: 
055208,000222:                                                                                                  #  SKEEP7 HOLDS LOWEST OF TWO ADDRESSES BEING CHECKED.
055209,000223:                                                                                                  #  SKEEP6 HOLDS B(X+1).
055210,000224:                                                                                                  #  SKEEP5 HOLDS B(X).
055211,000225:                                                                                                  #  SKEEP4 HOLDS C(EBANK) DURING ERASLOOP AND CHECKNJ.
055212,000226:                                                                                                  #  SKEEP3 HOLDS LAST ADDRESS BEING CHECKED (HIGHEST ADDRESS).

Page 1288

055214,000228:                                                                                                  #  SKEEP2 CONTROLS CHECKING OF NON-SWITCHABLE ERASABLE MEMORY WITH BANK NUMBERS IN EB.
055215,000229:                                                                                                  #  ERASCHK TAKES APPROXMATELY 7 SECONDS
055216,000230: 
055217,000231: 43,3337           34753        ERASCHK            CA       S+1                                   
055218,000232: 43,3340           55372                           TS       SKEEP2                                
055219,000233: 43,3341           34755        0EBANK             CA       S+ZERO                                
055220,000234: 43,3342           54003                           TS       EBANK                                 
055221,000235: 43,3343           33234                           CA       ERASCON3                              #  01461
055222,000236: 43,3344           55377                           TS       SKEEP7                                #  STARTING ADDRESS
055223,000237: 43,3345           35012                           CA       S10BITS                               #  01777
055224,000238: 43,3346           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
055225,000239: 43,3347           03367                           TC       ERASLOOP                              
055226,000240: 
055227,000241: 43,3350           35007        E134567B           CA       ERASCON6                              #  01400
055228,000242: 43,3351           55377                           TS       SKEEP7                                #  STARTING ADDRESS
055229,000243: 43,3352           35012                           CA       S10BITS                               #  01777
055230,000244: 43,3353           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
055231,000245: 43,3354           03367                           TC       ERASLOOP                              
055232,000246: 
055233,000247: 43,3355           35007        2EBANK             CA       ERASCON6                              #  01400
055234,000248: 43,3356           55377                           TS       SKEEP7                                #  STARTING ADDRESS
055235,000249: 43,3357           33235                           CA       ERASCON4                              #  01773
055236,000250: 43,3360           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
055237,000251: 43,3361           03367                           TC       ERASLOOP                              
055238,000252: 
055239,000253: 43,3362           55372        NOEBANK            TS       SKEEP2                                #  +0
055240,000254: 43,3363           33232                           CA       ERASCON1                              #  00061
055241,000255: 43,3364           55377                           TS       SKEEP7                                #  STARTING ADDRESS
055242,000256: 43,3365           33233                           CA       ERASCON2                              #  01373
055243,000257: 43,3366           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
055244,000258: 
055245,000259: 43,3367           00004        ERASLOOP           INHINT                                         
055246,000260: 43,3370           30003                           CA       EBANK                                 #  STORES C(EBANK)
055247,000261: 43,3371           55374                           TS       SKEEP4                                
055248,000262: 43,3372           00006                           EXTEND                                         
055249,000263: 43,3373           51377                           NDX      SKEEP7                                
055250,000264: 43,3374           30001                           DCA      0000                                  
055251,000265: 43,3375           53376                           DXCH     SKEEP5                                #  STORES C(X) AND C(X+1) IN SKEEP6 AND 5.
055252,000266: 43,3376           31377                           CA       SKEEP7                                
055253,000267: 43,3377           55360                           TS       ERESTORE                              #  IF RESTART, RESTORE C(X) AND C(X+1)
055254,000268: 43,3400           54001                           TS       L                                     
055255,000269: 43,3401           24001                           INCR     L                                     
055256,000270: 43,3402           50000                           NDX      A                                     
055257,000271: 43,3403           52001                           DXCH     0000                                  #  PUTS OWN ADDRESS IN X AND X +1
055258,000272: 43,3404           51377                           NDX      SKEEP7                                
055259,000273: 43,3405           40001                           CS       0001                                  #  CS X+1
055260,000274: 43,3406           51377                           NDX      SKEEP7                                
055261,000275: 43,3407           60000                           AD       0000                                  #  AD X
055262,000276: 43,3410           03273                           TC       -1CHK                                 
055263,000277: 43,3411           31360                           CA       ERESTORE                              #  HAS ERASABLE BEEN RESTORED
055264,000278: 43,3412           00006                           EXTEND                                         

Page 1289

055266,000280: 43,3413           13437                           BZF      ELOOPFIN                              #  YES, EXIT ERASLOOP.
055267,000281: 43,3414           00006                           EXTEND                                         
055268,000282: 43,3415           51377                           NDX      SKEEP7                                
055269,000283: 43,3416           40001                           DCS      0000                                  #  COMPLEMENT OF ADDRESS OF X AND X+1
055270,000284: 43,3417           51377                           NDX      SKEEP7                                
055271,000285: 43,3420           52001                           DXCH     0000                                  #  PUT COMPLEMENT OF ADDRESS OF X AND X+1
055272,000286: 43,3421           51377                           NDX      SKEEP7                                
055273,000287: 43,3422           40000                           CS       0000                                  #  CS X
055274,000288: 43,3423           51377                           NDX      SKEEP7                                
055275,000289: 43,3424           60001                           AD       0001                                  #  AD X+1
055276,000290: 43,3425           03273                           TC       -1CHK                                 
055277,000291: 43,3426           31360                           CA       ERESTORE                              #  HAS ERASABLE BEEN RESTORED
055278,000292: 43,3427           00006                           EXTEND                                         
055279,000293: 43,3430           13437                           BZF      ELOOPFIN                              #  YES, EXIT ERASLOOP.
055280,000294: 43,3431           00006                           EXTEND                                         
055281,000295: 43,3432           31376                           DCA      SKEEP5                                
055282,000296: 43,3433           51377                           NDX      SKEEP7                                
055283,000297: 43,3434           52001                           DXCH     0000                                  #  PUT B(X) AND B(X+1) BACK INTO X AND X+1
055284,000298: 43,3435           34755                           CA       S+ZERO                                
055285,000299: 43,3436           55360                           TS       ERESTORE                              #  IF RESTART, DO NOT RESTORE C(X), C(X+1)
055286,000300: 43,3437           00003        ELOOPFIN           RELINT                                         
055287,000301: 43,3440           03332                           TC       CHECKNJ                               #  CHECK FOR NEW JOB
055288,000302: 43,3441           31374                           CA       SKEEP4                                #  REPLACES B(EBANK)
055289,000303: 43,3442           54003                           TS       EBANK                                 
055290,000304: 43,3443           25377                           INCR     SKEEP7                                
055291,000305: 43,3444           41377                           CS       SKEEP7                                
055292,000306: 43,3445           61373                           AD       SKEEP3                                
055293,000307: 43,3446           00006                           EXTEND                                         
055294,000308: 43,3447           13451                           BZF      +2                                    
055295,000309: 43,3450           03367                           TC       ERASLOOP                              #  GO TO NEXT ADDRESS IN SAME BANK
055296,000310: 43,3451           11372                           CCS      SKEEP2                                
055297,000311: 43,3452           03362                           TC       NOEBANK                               
055298,000312: 43,3453           25372                           INCR     SKEEP2                                #  PUT +1 IN SKEEP2.
055299,000313: 43,3454           30003                           CA       EBANK                                 
055300,000314: 43,3455           64743                           AD       SBIT9                                 
055301,000315: 43,3456           54003                           TS       EBANK                                 
055302,000316: 43,3457           63243                           AD       ERASCON5                              #  76777, CHECK FOR BANK E2
055303,000317: 43,3460           00006                           EXTEND                                         
055304,000318: 43,3461           13355                           BZF      2EBANK                                
055305,000319: 43,3462           10003                           CCS      EBANK                                 
055306,000320: 43,3463           03350                           TC       E134567B                              #  GO TO EBANKS 1,3,4,5,6, AND 7
055307,000321: 43,3464           35007                           CA       ERASCON6                              #  END OF ERASCHK
055308,000322: 43,3465           54003                           TS       EBANK                                 
055309,000323: 
055310,000324:                                                                                                  #  CNTRCHK PERFORMS A CS OF ALL REGISTERS FROM OCT. 60 THROUGH OCT. 10.
055311,000325:                                                                                                  #  INCLUDED ARE ALL COUNTERS, T6-1, CYCLE AND SHIFT, AND ALL RUPT REGISTERS
055312,000326: 
055313,000327: 43,3466           34771        CNTRCHK            CA       CNTRCON                               #  00050
055314,000328: 43,3467           55372        CNTRLOOP           TS       SKEEP2                                
055315,000329: 43,3470           64750                           AD       SBIT4                                 #  +10 OCTAL
055316,000330: 43,3471           50000                           INDEX    A                                     
055317,000331: 43,3472           40000                           CS       0000                                  

Page 1290

055319,000333: 43,3473           11372                           CCS      SKEEP2                                
055320,000334: 43,3474           03467                           TC       CNTRLOOP                              
055321,000335: 
055322,000336:                                                                                                  #  CYCLSHFT CHECKS THE CYCLE AND SHIFT REGISTERS
055323,000337: 
055324,000338: 43,3475           33241        CYCLSHFT           CA       CONC+S1                               #  25252
055325,000339: 43,3476           54020                           TS       CYR                                   #  C(CYR) = 12525
055326,000340: 43,3477           54022                           TS       CYL                                   #  C(CYL) = 52524
055327,000341: 43,3500           54021                           TS       SR                                    #  C(SR) = 12525
055328,000342: 43,3501           54023                           TS       EDOP                                  #  C(EDOP) = 00125
055329,000343: 43,3502           60020                           AD       CYR                                   #  37777         C(CYR) = 45252
055330,000344: 43,3503           60022                           AD       CYL                                   #  00-12524      C(CYL) = 25251
055331,000345: 43,3504           60021                           AD       SR                                    #  00-25251      C(SR) = 05252
055332,000346: 43,3505           60023                           AD       EDOP                                  #  00-25376      C(EDOP) = +0
055333,000347: 43,3506           63242                           AD       CONC+S2                               #  C(CONC+S2) = 52400
055334,000348: 43,3507           03273                           TC       -1CHK                                 
055335,000349: 43,3510           60020                           AD       CYR                                   #  45252
055336,000350: 43,3511           60022                           AD       CYL                                   #  72523
055337,000351: 43,3512           60021                           AD       SR                                    #  77775
055338,000352: 43,3513           60023                           AD       EDOP                                  #  77775
055339,000353: 43,3514           64753                           AD       S+1                                   #  77776
055340,000354: 43,3515           03273                           TC       -1CHK                                 
055341,000355: 
055342,000356: 43,3516           25367                           INCR     SCOUNT     +1                         
055343,000357: 43,3517           03301                           TC       SMODECHK                              
055344,000358: 
055345,000359:                                                                                                  #  SKEEP1 HOLDS SUM
055346,000360:                                                                                                  #  SKEEP2 HOLDS PRESENT CONTENTS OF ADDRESS IN ROPECHK AND SHOWSUM ROUTINES
055347,000361:                                                                                                  #  SKEEP2 HOLDS BANK NUMBER IN LOW ORDER BITS DURING SHOWSUM DISPLAY
055348,000362:                                                                                                  #  SKEEP3 HOLDS PRESENT ADDRESS (00000 TO 01777 IN COMMON FIXED BANKS)
055349,000363:                                                                                                  #                               (04000 TO 07777 IN FXFX BANKS)
055350,000364:                                                                                                  #  SKEEP3 HOLDS BUGGER WORD DURING SHOWSUM DISPLAY
055351,000365:                                                                                                  #  SKEEP4 HOLDS BANK NUMBER AND SUPER BANK NUMBER
055352,000366:                                                                                                  #  SKEEP5 COUNTS 2 SUCCESSIVE TC SELF WORDS
055353,000367:                                                                                                  #  SKEEP6 CONTROLS ROPECHK OR SHOWSUM OPTION
055354,000368:                                                                                                  #  SKEEP7 CONTROLS WHEN ROUNTINE IS IN COMMON FIXED OR FIXED FIXED BANKS
055355,000369: 
055356,000370: 43,3520           34754        ROPECHK            CA       S-ZERO                                #  *
055357,000371: 43,3521           55376                           TS       SKEEP6                                #  * -0 FOR ROPECHK.
055358,000372: 43,3522           34755        STSHOSUM           CA       S+ZERO                                #  * SHOULD BE ROPECHK
055359,000373: 
055360,000374: 43,3523           55374                           TS       SKEEP4                                #  BANK NUMBER
055361,000375: 43,3524           34753                           CA       S+1                                   
055362,000376: 43,3525           55377        COMMFX             TS       SKEEP7                                
055363,000377: 43,3526           34755                           CA       S+ZERO                                
055364,000378: 43,3527           55371                           TS       SKEEP1                                
055365,000379: 43,3530           55373                           TS       SKEEP3                                
055366,000380: 43,3531           34753                           CA       S+1                                   
055367,000381: 43,3532           55375                           TS       SKEEP5                                #  COUNTS DOWN 2 TC SELF WORDS
055368,000382: 43,3533           31374        COMADRS            CA       SKEEP4                                
055369,000383: 43,3534           54001                           TS       L                                     #  TO SET SUPER BANK
055370,000384: 43,3535           74350                           MASK     HI5                                   

Page 1291

055372,000386: 43,3536           61373                           AD       SKEEP3                                
055373,000387: 43,3537           04651                           TC       SUPDACAL                              #  SUPER DATA CALL
055374,000388: 43,3540           03563                           TC       ADSUM                                 
055375,000389: 43,3541           64741                           AD       SBIT11                                #  02000
055376,000390: 43,3542           03574                           TC       ADRSCHK                               
055377,000391: 
055378,000392: 43,3543           40000        FXFX               CS       A                                     
055379,000393: 43,3544           55377                           TS       SKEEP7                                
055380,000394: 43,3545           00006                           EXTEND                                         
055381,000395: 43,3546           13551                           BZF      +3                                    
055382,000396: 43,3547           34740                           CA       SBIT12                                #  04000, STARTING ADDRESS OF BANK 02
055383,000397: 43,3550           03552                           TC       +2                                    
055384,000398: 43,3551           35020                           CA       SBNK03                                #  06000, STARTING ADDRESS OF BANK 03
055385,000399: 43,3552           55373                           TS       SKEEP3                                
055386,000400: 43,3553           34755                           CA       S+ZERO                                
055387,000401: 43,3554           55371                           TS       SKEEP1                                
055388,000402: 43,3555           34753                           CA       S+1                                   
055389,000403: 43,3556           55375                           TS       SKEEP5                                #  COUNTS DOWN 2 TC SELF WORDS
055390,000404: 43,3557           51373        FXADRS             INDEX    SKEEP3                                
055391,000405: 43,3560           30000                           CA       0000                                  
055392,000406: 43,3561           03563                           TC       ADSUM                                 
055393,000407: 43,3562           03574                           TC       ADRSCHK                               
055394,000408: 
055395,000409: 43,3563           55372        ADSUM              TS       SKEEP2                                
055396,000410: 43,3564           61371                           AD       SKEEP1                                
055397,000411: 43,3565           55371                           TS       SKEEP1                                
055398,000412: 43,3566           34755                           CAF      S+ZERO                                
055399,000413: 43,3567           61371                           AD       SKEEP1                                
055400,000414: 43,3570           55371                           TS       SKEEP1                                
055401,000415: 43,3571           41372                           CS       SKEEP2                                
055402,000416: 43,3572           61373                           AD       SKEEP3                                
055403,000417: 43,3573           00002                           TC       Q                                     
055404,000418: 
055405,000419: 43,3574           22000        ADRSCHK            LXCH     A                                     
055406,000420: 43,3575           31373                           CA       SKEEP3                                
055407,000421: 43,3576           75012                           MASK     LOW10                                 #  RELATIVE ADDRESS
055408,000422: 43,3577           64350                           AD       -MAXADRS                              #  SUBTRACT MAX RELATIVE ADDRESS = 1777.
055409,000423: 43,3600           00006                           EXTEND                                         
055410,000424: 43,3601           13670                           BZF      SOPTION                               #  CHECKSUM FINISHED IF LAST ADDRESS.
055411,000425: 43,3602           11375                           CCS      SKEEP5                                #  IS CHECKSUM FINISHED
055412,000426: 43,3603           03606                           TC       +3                                    #  NO
055413,000427: 43,3604           03606                           TC       +2                                    #  NO
055414,000428: 43,3605           03670                           TC       SOPTION                               #  GO TO ROPECHK SHOWSUM OPTION
055415,000429: 43,3606           10001                           CCS      L                                     #  -0 MEANS A TC SELF WORD.
055416,000430: 43,3607           03616                           TC       CONTINU                               
055417,000431: 43,3610           03616                           TC       CONTINU                               
055418,000432: 43,3611           03616                           TC       CONTINU                               
055419,000433: 43,3612           11375                           CCS      SKEEP5                                
055420,000434: 43,3613           03617                           TC       CONTINU    +1                         
055421,000435: 43,3614           37747                           CA       S-1                                   

Page 1292

055423,000437: 43,3615           03617                           TC       CONTINU    +1                         #  AD IN THE BUGGER WORD
055424,000438: 43,3616           34753        CONTINU            CA       S+1                                   #  MAKE SURE TWO CONSECUTIVE TC SELF WORDS
055425,000439: 43,3617           55375                           TS       SKEEP5                                
055426,000440: 43,3620           11376                           CCS      SKEEP6                                #  *
055427,000441: 43,3621           10067                           CCS      NEWJOB                                #  * +1, SHOWSUM
055428,000442: 43,3622           05122                           TC       CHANG1                                #  *
055429,000443: 43,3623           03625                           TC       +2                                    #  *
055430,000444: 43,3624           03332                           TC       CHECKNJ                               #  -0 IN SKEEP6 FOR ROPECHK
055431,000445: 
055432,000446: 43,3625           25373        ADRS+1             INCR     SKEEP3                                
055433,000447: 43,3626           11377                           CCS      SKEEP7                                
055434,000448: 43,3627           03533                           TC       COMADRS                               
055435,000449: 43,3630           03533                           TC       COMADRS                               
055436,000450: 43,3631           03557                           TC       FXADRS                                
055437,000451: 43,3632           03557                           TC       FXADRS                                
055438,000452: 
055439,000453: 43,3633           41374        NXTBNK             CS       SKEEP4                                
055440,000454: 43,3634           63723                           AD       LSTBNKCH                              #  LAST BANK TO BE CHECKED
055441,000455: 43,3635           00006                           EXTEND                                         
055442,000456: 43,3636           13131                           BZF      ENDSUMS                               #  END OF SUMMING OF BANKS.
055443,000457: 43,3637           31374                           CA       SKEEP4                                
055444,000458: 43,3640           64741                           AD       SBIT11                                
055445,000459: 43,3641           55374                           TS       SKEEP4                                #  37 TO 40 INCRMTS SKEEP4 BY END RND CARRY
055446,000460: 43,3642           03646                           TC       CHKSUPR                               
055447,000461: 43,3643           34735        17TO20             CA       SBIT15                                
055448,000462: 43,3644           27374                           ADS      SKEEP4                                #  SET FOR BANK 20
055449,000463: 43,3645           03662                           TC       GONXTBNK                              
055450,000464: 43,3646           74350        CHKSUPR            MASK     HI5                                   
055451,000465: 43,3647           00006                           EXTEND                                         
055452,000466: 43,3650           13660                           BZF      NXTSUPR                               #  INCREMENT SUPER BANK
055453,000467: 43,3651           63240        27TO30             AD       S13BITS                               
055454,000468: 43,3652           00006                           EXTEND                                         
055455,000469: 43,3653           13655                           BZF      +2                                    #  BANK SET FOR 30
055456,000470: 43,3654           03662                           TC       GONXTBNK                              
055457,000471: 43,3655           33236                           CA       SIXTY                                 #  FIRST SUPER BANK
055458,000472: 43,3656           27374                           ADS      SKEEP4                                
055459,000473: 43,3657           03662                           TC       GONXTBNK                              
055460,000474: 43,3660           63237        NXTSUPR            AD       SUPRCON                               #  SET BNK 30 + INCR SUPR BNK AND CANCEL
055461,000475: 43,3661           27374                           ADS      SKEEP4                                #  ERC BIT OF THE 37 TO 40 ADVANCE.
055462,000476: 43,3662           11377        GONXTBNK           CCS      SKEEP7                                
055463,000477: 43,3663           03525                           TC       COMMFX                                
055464,000478: 43,3664           34753                           CA       S+1                                   
055465,000479: 43,3665           03543                           TC       FXFX                                  
055466,000480: 43,3666           34745                           CA       SBIT7                                 #  HAS TO BE LARGER THAN NO OF FXSW BANKS.
055467,000481: 43,3667           03525                           TC       COMMFX                                
055468,000482: 
055469,000483: 43,3670           31374        SOPTION            CA       SKEEP4                                
055470,000484: 43,3671           74350                           MASK     HI5                                   #  = BANK BITS
055471,000485: 43,3672           04331                           TC       LEFT5                                 
055472,000486: 43,3673           54001                           TS       L                                     #  BANK NUMBER BEFORE SUPER BANK

Page 1293

055474,000488: 43,3674           31374                           CA       SKEEP4                                
055475,000489: 43,3675           74357                           MASK     S8BITS                                #  = SUPER BANK BITS
055476,000490: 43,3676           00006                           EXTEND                                         
055477,000491: 43,3677           13705                           BZF      SOPT                                  #  BEFORE SUPER BANK
055478,000492: 43,3700           54021                           TS       SR                                    #  SUPER BANK NECESSARY
055479,000493: 43,3701           30001                           CA       L                                     
055480,000494: 43,3702           74757                           MASK     SEVEN                                 
055481,000495: 43,3703           60021                           AD       SR                                    
055482,000496: 43,3704           54001                           TS       L                                     #  BANK NUMBER WITH SUPER BANK
055483,000497: 43,3705           31376        SOPT               CA       SKEEP6                                #  *
055484,000498: 43,3706           00006                           EXTEND                                         #  *
055485,000499: 43,3707           13711                           BZF      +2                                    #  * ON -0 CONTINUE WITH ROPE CHECK.
055486,000500: 43,3710           03113                           TC       SDISPLAY                              #  * ON +1 GO TO DISPLAY OF SUM.
055487,000501: 43,3711           11371                           CCS      SKEEP1                                #  FORCE SUM TO ABSOLUTE VALUE.
055488,000502: 43,3712           03714                           TC       +2                                    
055489,000503: 43,3713           03715                           TC       +2                                    
055490,000504: 43,3714           64753                           AD       S+1                                   
055491,000505: 43,3715           55371                           TS       SKEEP1                                
055492,000506: 43,3716           40001        BNKCHK             CS       L                                     #  = - BANK NUMBER
055493,000507: 43,3717           61371                           AD       SKEEP1                                
055494,000508: 43,3720           67747                           AD       S-1                                   
055495,000509: 43,3721           03273                           TC       -1CHK                                 #  CHECK SUM
055496,000510: 43,3722           03633                           TC       NXTBNK                                
055497,000511: 
055498,000512: 43,3723     0067                                  EBANK=   NEWJOB                                
055499,000513: 43,3723           66100        LSTBNKCH           BBCON*                                         #  * CONSTANT, LAST BANK.
055500,000514: 

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