Source Code

This is a reconstruction of the AGC program Luminary 99 Rev 0. It was the second release of the Lunar Module flight software targeted for use in Apollo 11, after Luminary 97. A bug (which had been around since at least Apollo 10, Luminary 69) was discovered in Rev 0 shortly before the Apollo 11 flight, resulting in a last minute revision into Rev 1, which is what actually flew rather than the Rev 0 presented here. A hardcopy of Rev 0 is known to exist — it belonged to AGC developer Allan Klumpp for many years — but unfortunately the Virtual AGC Project has not had access to that hardcopy. Thus the code you see here had been reconstructed (we believe accurately) rather than transcribed. The first step of the reconstruction of the Rev 0 source code was the transcription of the Rev 1 source code from a hardcopy in the MIT Museum collection. The process of reverting the active portion of the source code (i.e., other than program comments) from Rev 1 to Rev 0 was very minor, consisting only of moving the position of the STARTSB1 label in FRESH START AND RESTART. Allan had previously given us the checksums of the memory banks of Rev 0, and we have verified the program presented here has checksums identical to all banks of Allan's listing of Rev 0. The notations on Allan's Rev 0 program listing read, in part:

	GAP:  ASSEMBLE REVISION 099 OF AGC PROGRAM LUMINARY BY NASA 2021112-051

A single program comment is known to differ between Rev 0 and Rev 1, but these are harder to reconstruct and verify than changes to the active portion of the code. Thus it is possible that there are additional differences between the program comments in Rev 0 and Rev 1 that are unknown to us, and therefore are not reflected in the code presented here.

056020,000002:                                                                                                  ## Copyright:   Public domain.
056021,000003:                                                                                                  ## Filename:    AGC_BLOCK_TWO_SELF-CHECK.agc
056022,000004:                                                                                                  ## Purpose:     Part of the reconstructed source code for LMY99 Rev 0,
056023,000005:                                                                                                  ##              otherwise known as Luminary Rev 99, the second release
056024,000006:                                                                                                  ##              of the Apollo Guidance Computer (AGC) software for Apollo 11.
056025,000007:                                                                                                  ##              It differs from LMY99 Rev 1 (the flown version) only in the
056026,000008:                                                                                                  ##              placement of a single label. The corrections shown here have
056027,000009:                                                                                                  ##              been verified to have the same bank checksums as AGC developer
056028,000010:                                                                                                  ##              Allan Klumpp's copy of Luminary Rev 99, and so are believed
056029,000011:                                                                                                  ##              to be accurate. This file is intended to be a faithful 
056030,000012:                                                                                                  ##              recreation, except that the code format has been changed to 
056031,000013:                                                                                                  ##              conform to the requirements of the yaYUL assembler rather than 
056032,000014:                                                                                                  ##              the original YUL assembler.
056033,000015:                                                                                                  ##
056034,000016:                                                                                                  ## Assembler:   yaYUL
056035,000017:                                                                                                  ## Contact:     Onno Hommes <ohommes@cmu.edu>.
056036,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo.
056037,000019:                                                                                                  ## Pages:       1284-1293
056038,000020:                                                                                                  ## Mod history: 2009-05-27 OH   Transcribed from page images.
056039,000021:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
056040,000022:                                                                                                  ##                              and corrected the errors found.
056041,000023:                                                                                                  ##              2017-01-28 RSB  WTIH -> WITH.
056042,000024:                                                                                                  ##              2017-08-01 MAS  Created from LMY99 Rev 1.
056043,000025: 
056044,000026:                                                                                                  ## This source code has been transcribed or otherwise adapted from
056045,000027:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
056046,000028:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
056047,000029:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
056048,000030:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
056049,000031:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
056050,000032:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
056051,000033:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
056052,000034:                                                                                                  ## actually created.
056053,000035:                                                                                                  ##
056054,000036:                                                                                                  ## The code has been modified to match LMY99 Revision 0, otherwise
056055,000037:                                                                                                  ## known as Luminary Revision 99, the Apollo 11 software release preceeding
056056,000038:                                                                                                  ## the listing from which it was transcribed. It has been verified to
056057,000039:                                                                                                  ## contain the same bank checksums as AGC developer Allan Klumpp's listing
056058,000040:                                                                                                  ## of Luminary Revision 99 (for which we do not have scans).
056059,000041:                                                                                                  ##
056060,000042:                                                                                                  ## Notations on Allan Klumpp's listing read, in part:
056061,000043:                                                                                                  ##
056062,000044:                                                                                                  ##      ASSEMBLE REVISION 099 OF AGC PROGRAM LUMINARY BY NASA 2021112-51
056063,000045: 

Page 1284

056065,000047:                                                                                                  #  PROGRAM DESCRIPTION                           DATE   20 DECEMBER 1967
056066,000048:                                                                                                  #  PROGRAM NAME - SELF-CHECK                     LOG SECTION  AGC BLOCK TWO SELF-CHECK
056067,000049:                                                                                                  #  MOD NO - 1                                    ASSEMBLY SUBROUTINE UTILITYM REV 25
056068,000050:                                                                                                  #  MOD BY - GAUNTT
056069,000051: 
056070,000052:                                                                                                  #  FUNCTIONAL DESCRIPTION
056071,000053:                                                                                                  #        PROGRAM HAS TWO MAIN PARTS.  THE FIRST IS SELF-CHECK WHICH RUNS AS A ZERO PRIORITY JOB WITH NO CORE SET, AS
056072,000054:                                                                                                  #        PART OF THE BACK-UP IDLE LOOP.  THE SECOND IS SHOW-BANKSUM WHICH RUNS AS A REGULAR EXECUTIVE JOB WITH ITS OWN
056073,000055:                                                                                                  #        STARTING VERB.
056074,000056: 
056075,000057:                                                                                                  #        THE PURPOSE OF SELF-CHECK IS TO CHECK OUT VARIOUS PARTS OF THE COMPUTER AS OUTLINED BELOW IN THE OPTIONS.
056076,000058: 
056077,000059:                                                                                                  #        THE PURPOSE OF SHOW-BANKSUM IS TO DISPLAY THE SUM OF EACH BANK, ONE AT A TIME.
056078,000060: 
056079,000061:                                                                                                  #        IN ALL THERE ARE 7 POSSIBLE OPTIONS IN THIS BLOCK II VERSION OF SELF-CHECK.  MORE DETAIL DESCRIPTION MAY BE
056080,000062:                                                                                                  #        FOUND IN E-2065 BLOCK II AGC SELF-CHECK AND SHOW BANKSUM BY EDWIN D. SMALLY DECEMBER 1966, AND ADDENDA 2 AND 3.
056081,000063: 
056082,000064:                                                                                                  #        THE DIFFERENT OPTIONS ARE CONTROLLED BY PUTTING DIFFERENT NUMBERS IN THE SMODE REGISTER (NOUN 27).  BELOW IS
056083,000065:                                                                                                  #        A DESCRIPTION OF WHAT PARTS OF THE COMPUTER THAT ARE CHECKED BY THE OPTIONS, AND THE CORRESPONDING NUMBER, IN
056084,000066:                                                                                                  #        OCTAL, TO LOAD INTO SMODE.
056085,000067:                                                                                                  #                +-4             ERASABLE MEMORY
056086,000068:                                                                                                  #                +-5             FIXED MEMORY
056087,000069:                                                                                                  #                +-1,2,3,6,7,10  EVERYTHING IN OPTIONS 4 AND 5.
056088,000070:                                                                                                  #                -0              SAME AS +-10 UNTIL AN ERROR IS DETECTED.
056089,000071:                                                                                                  #                +0              NO CHECK, PUTS COMPUTER INTO THE BACKUP IDLE LOOP.
056090,000072: 
056091,000073:                                                                                                  #  WARNINGS
056092,000074:                                                                                                  #        USE OF E MEMORY RESERVED FOR SELF-CHECK (EVEN IN IDLE LOOP) AS TEMP STORAGE BY OTHER PROGRAMS IS DANGEROUS.
056093,000075:                                                                                                  #        SMODE SET GREATER THAN OCT 10 PUTS COMPUTER INTO BACKUP IDLE LOOP.
056094,000076: 
056095,000077:                                                                                                  #  CALLING SEQUENCE
056096,000078:                                                                                                  #        TO CALL SELF-CHECK KEY IN
056097,000079:                                                                                                  #                V 21 N 27 E     OPTION NUMBER E
056098,000080:                                                                                                  #        TO CALL SHOW-BANKSUM KEY IN
056099,000081:                                                                                                  #                V 91 E          DISPLAYS FIRST BANK
056100,000082:                                                                                                  #                V 33 E          PROCEED, DISPLAYS NEXT BANK
056101,000083: 
056102,000084:                                                                                                  #  EXIT MODES, NORMAL AND ALARM
056103,000085:                                                                                                  #        SELF-CHECK NORMALLY CONTINUES INDEFINITELY UNLESS THERE IS AN ERROR DETECTED.  IF SO + OPTION NUMBERS PUT
056104,000086:                                                                                                  #        COMPUTER INTO BACKUP IDLE LOOP, - OPTION NUMBERS RESTART THE OPTION.
056105,000087: 
056106,000088:                                                                                                  #        THE -0 OPTION PROCEEDS FROM THE LINE FOLLOWING THE LINE WHERE THE ERROR WAS DETECTED.
056107,000089: 
056108,000090:                                                                                                  #        SHOW-BANKSUM PROCEEDS UNTIL A TERMINATE IS KEYED IN (V 34 E).  THE COMPUTER IS PUT INTO THE BACKUP IDLE LOOP
056109,000091: 
056110,000092:                                                                                                  #  OUTPUT

Page 1285

056112,000094:                                                                                                  #        SELF-CHECK UPON DETECTING AN ERROR LOADS THE SELF-CHECK ALARM CONSTANT (01102) INTO THE FAILREG SET AND
056113,000095:                                                                                                  #        TURNS ON THE ALARM LIGHT.  THE OPERATOR MAY THEN DISPLAY THE THREE FAILREGS BY KEYING IN V 05 N 09 E.  FOR FURTHER
056114,000096:                                                                                                  #        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,
056115,000097:                                                                                                  #        IN R2 THE BBCON OF SELF-CHECK, AND IN R3 THE TOTAL NUMBER OF ERRORS DETECTED BY SELF-CHECK SINCE THE LAST MAN
056116,000098:                                                                                                  #        INITIATED FRESH START (SLAP1).
056117,000099: 
056118,000100:                                                                                                  #        SHOW-BANKSUM STARTING WITH BANK 0 DISPLAYS IN R1 THE BANK SUM (A +-NUMBER EQUAL TO THE BANK NUMBER), IN R2
056119,000101:                                                                                                  #        THE BANK NUMBER, AND IN R3 THE BUGGER WORD.
056120,000102: 
056121,000103:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
056122,000104:                                                                                                  #        ACCOMPLISHED BY FRESH START
056123,000105:                                                                                                  #                SMODE SET TO +0
056124,000106: 
056125,000107:                                                                                                  #  DEBRIS
056126,000108:                                                                                                  #        ALL EXITS FROM THE CHECK OF ERASABLE (ERASCHK) RESTORE ORIGINAL CONTENTS TO REGISTERS UNDER CHECK.
056127,000109:                                                                                                  #        EXCEPTION IS A RESTART.  RESTART THAT OCCURS DURING ERASCHK RESTORES ERASABLE, UNLESS THERE IS EVIDENCE TO DOUBT
056128,000110:                                                                                                  #        E MEMORY, IN WHICH CASE PROGRAM THEN DOES A FRESH START (DOFSTART).
056129,000111: 
056130,000112: 25,3770                                           BANK     25                                    
056131,000113: 43,2000                                           SETLOC   SELFCHEC                              
056132,000114: 43,2000                                           BANK                                           
056133,000115: 
056134,000116: 43,3232                                           COUNT*   $$/SELF                               
056135,000117: 43,3232     4753               SBIT1              EQUALS   BIT1                                  
056136,000118: 43,3232     4752               SBIT2              EQUALS   BIT2                                  
056137,000119: 43,3232     4751               SBIT3              EQUALS   BIT3                                  
056138,000120: 43,3232     4750               SBIT4              EQUALS   BIT4                                  
056139,000121: 43,3232     4747               SBIT5              EQUALS   BIT5                                  
056140,000122: 43,3232     4746               SBIT6              EQUALS   BIT6                                  
056141,000123: 43,3232     4745               SBIT7              EQUALS   BIT7                                  
056142,000124: 43,3232     4744               SBIT8              EQUALS   BIT8                                  
056143,000125: 43,3232     4743               SBIT9              EQUALS   BIT9                                  
056144,000126: 43,3232     4742               SBIT10             EQUALS   BIT10                                 
056145,000127: 43,3232     4741               SBIT11             EQUALS   BIT11                                 
056146,000128: 43,3232     4740               SBIT12             EQUALS   BIT12                                 
056147,000129: 43,3232     4737               SBIT13             EQUALS   BIT13                                 
056148,000130: 43,3232     4736               SBIT14             EQUALS   BIT14                                 
056149,000131: 43,3232     4735               SBIT15             EQUALS   BIT15                                 
056150,000132: 
056151,000133: 43,3232     4755               S+ZERO             EQUALS   ZERO                                  
056152,000134: 43,3232     4753               S+1                EQUALS   BIT1                                  
056153,000135: 43,3232     4752               S+2                EQUALS   BIT2                                  
056154,000136: 43,3232     6245               S+3                EQUALS   THREE                                 
056155,000137: 43,3232     4751               S+4                EQUALS   FOUR                                  
056156,000138: 43,3232     4756               S+5                EQUALS   FIVE                                  
056157,000139: 43,3232     6242               S+6                EQUALS   SIX                                   

Page 1286

056159,000141: 43,3232     4757               S+7                EQUALS   SEVEN                                 
056160,000142: 43,3232     4357               S8BITS             EQUALS   LOW8                                  #  00377
056161,000143: 43,3232     4771               CNTRCON            =        OCT50                                 #  USED IN CNTRCHK
056162,000144: 43,3232           00061        ERASCON1           OCTAL    00061                                 #  USED IN ERASCHK
056163,000145: 43,3233           01373        ERASCON2           OCTAL    01373                                 #  USED IN ERASCHK
056164,000146: 43,3234     5007               ERASCON6           =        OCT1400                               #  USED IN ERASCHK
056165,000147: 43,3234           01461        ERASCON3           OCTAL    01461                                 #  USED IN ERASCHK
056166,000148: 43,3235           01773        ERASCON4           OCTAL    01773                                 #  USED IN ERASCHK
056167,000149: 43,3236     5012               S10BITS            EQUALS   LOW10                                 #  01777, USED IN ERASCHK
056168,000150: 43,3236     5020               SBNK03             EQUALS   PRIO6                                 #  06000, USED IN ROPECHK
056169,000151: 43,3236     4350               -MAXADRS           =        HI5                                   #  FOR ROPECHK
056170,000152: 43,3236           00060        SIXTY              OCTAL    00060                                 
056171,000153: 43,3237           60017        SUPRCON            OCTAL    60017                                 #  USED IN ROPECHK
056172,000154: 43,3240           17777        S13BITS            OCTAL    17777                                 
056173,000155: 43,3241           25252        CONC+S1            OCTAL    25252                                 #  USED IN CYCLSHFT
056174,000156: 43,3242           52400        CONC+S2            OCTAL    52400                                 #  USED IN CYCLSHFT
056175,000157: 43,3243           76777        ERASCON5           OCTAL    76777                                 
056176,000158: 43,3244     5660               S-7                =        OCT77770                              
056177,000159: 43,3244     6112               S-4                EQUALS   NEG4                                  
056178,000160: 43,3244     7745               S-3                EQUALS   NEG3                                  
056179,000161: 43,3244     7746               S-2                EQUALS   NEG2                                  
056180,000162: 43,3244     7747               S-1                EQUALS   NEGONE                                
056181,000163: 43,3244     4754               S-ZERO             EQUALS   NEG0                                  
056182,000164: 
056183,000165: 43,3244  E3,1400                                  EBANK=   LST1                                  
056184,000166: 43,3244           01371        ADRS1              ADRES    SKEEP1                                
056185,000167: 43,3245           03336        SELFADRS           ADRES    SELFCHK                               #  SELFCHK RETURN ADDRESS.  SHOULD BE PUT
056186,000168:                                                                                                  #  IN SELFRET WHEN GOING FROM SELFCHK TO
056187,000169:                                                                                                  #  SHOWSUM AND PUT IN SKEEP1 WHEN GOING
056188,000170:                                                                                                  #  FROM SHOWSUM TO SELF-CHECK.
056189,000171: 
056190,000172: 43,3246           31360        PRERRORS           CA       ERESTORE                              #  IS IT NECESSARY TO RESTORE ERASABLE
056191,000173: 43,3247           00006                           EXTEND                                         
056192,000174: 43,3250           13257                           BZF      ERRORS                                #  NO
056193,000175: 43,3251           00006                           EXTEND                                         
056194,000176: 43,3252           31376                           DCA      SKEEP5                                
056195,000177: 43,3253           51377                           INDEX    SKEEP7                                
056196,000178: 43,3254           52001                           DXCH     0000                                  #  RESTORE THE TWO ERASABLE REGISTERS
056197,000179: 43,3255           34755                           CA       S+ZERO                                
056198,000180: 43,3256           55360                           TS       ERESTORE                              
056199,000181: 43,3257           00004        ERRORS             INHINT                                         
056200,000182: 43,3260           30002                           CA       Q                                     
056201,000183: 43,3261           55357                           TS       SFAIL                                 #  SAVE Q FOR FAILURE LOCATION
056202,000184: 43,3262           55363                           TS       ALMCADR                               #  FOR DISPLAY WITH BBANK AND ERCOUNT
056203,000185: 43,3263           25365                           INCR     ERCOUNT                               #  KEEP TRACK OF NUMBER OF MALFUNCTIONS.
056204,000186: 43,3264           05571        TCALARM2           TC       ALARM2                                
056205,000187: 43,3265           01102                           OCT      01102                                 #  SELF-CHECK MALFUNCTION INDICATOR
056206,000188: 43,3266           11362                           CCS      SMODE                                 
056207,000189: 43,3267           34755        SIDLOOP            CA       S+ZERO                                
056208,000190: 43,3270           55362                           TS       SMODE                                 

Page 1287

056210,000192: 43,3271           03336                           TC       SELFCHK                               #  GO TO IDLE LOOP
056211,000193: 43,3272           01357                           TC       SFAIL                                 #  CONTINUE WITH SELF-CHECK
056212,000194: 
056213,000195: 43,3273           10000        -1CHK              CCS      A                                     
056214,000196: 43,3274           13246                           TCF      PRERRORS                              
056215,000197: 43,3275           13246                           TCF      PRERRORS                              
056216,000198: 43,3276           10000                           CCS      A                                     
056217,000199: 43,3277           13246                           TCF      PRERRORS                              
056218,000200: 43,3300           00002                           TC       Q                                     
056219,000201: 
056220,000202: 43,3301           00006        SMODECHK           EXTEND                                         
056221,000203: 43,3302           23371                           QXCH     SKEEP1                                
056222,000204: 43,3303           03332                           TC       CHECKNJ                               #  CHECK FOR NEW JOB
056223,000205: 43,3304           11362                           CCS      SMODE                                 
056224,000206: 43,3305           03312                           TC       SOPTIONS                              
056225,000207: 43,3306           03303                           TC       SMODECHK   +2                         #  TO BACKUP IDLE LOOP
056226,000208: 43,3307           03312                           TC       SOPTIONS                              
056227,000209: 43,3310           25366                           INCR     SCOUNT                                
056228,000210: 43,3311           01371                           TC       SKEEP1                                #  CONTINUE WITH SELF-CHECK
056229,000211: 
056230,000212: 43,3312           65660        SOPTIONS           AD       S-7                                   
056231,000213: 43,3313           00006                           EXTEND                                         
056232,000214: 43,3314           63316                           BZMF     +2                                    #  FOR OPTIONS BELOW NINE.
056233,000215: 43,3315           03267        BNKOPTN            TC       SIDLOOP                               #  ILLEGAL OPTION.  GO TO IDLE LOOP.
056234,000216: 43,3316           25366                           INCR     SCOUNT                                #  FOR OPTIONS BELOW NINE.
056235,000217: 43,3317           64757                           AD       S+7                                   
056236,000218: 
056237,000219: 43,3320           50000                           INDEX    A                                     
056238,000220: 43,3321           03322                           TC       SOPTION1                              
056239,000221: 43,3322           01371        SOPTION1           TC       SKEEP1                                #  WAS TC+TCF
056240,000222: 43,3323           01371        SOPTION2           TC       SKEEP1                                #  WAS IN:OUT1
056241,000223: 43,3324           01371        SOPTION3           TC       SKEEP1                                #  WAS COUNTCHK
056242,000224: 43,3325           03337        SOPTION4           TC       ERASCHK                               
056243,000225: 43,3326           03520        SOPTION5           TC       ROPECHK                               
056244,000226: 43,3327           01371        SOPTION6           TC       SKEEP1                                
056245,000227: 43,3330           01371        SOPTION7           TC       SKEEP1                                
056246,000228: 43,3331           01371        SOPTON10           TC       SKEEP1                                #  CONTINUE WITH SELF-CHECK
056247,000229: 
056248,000230: 43,3332           00006        CHECKNJ            EXTEND                                         
056249,000231: 43,3333           23361                           QXCH     SELFRET                               #  SAVE RETURN ADDRESS WHILE TESTING NEWJOB
056250,000232: 43,3334           04635                           TC       POSTJUMP                              #  TO SEE IF ANY JOBS HAVE BECOME ACTIVE.
056251,000233: 43,3335           03214                           CADR     ADVAN                                 
056252,000234: 
056253,000235: 43,3336           03301        SELFCHK            TC       SMODECHK                              #  ** CHARLEY, COME IN HERE
056254,000236: 
056255,000237:                                                                                                  #  SKEEP7 HOLDS LOWEST OF TWO ADDRESSES BEING CHECKED.
056256,000238:                                                                                                  #  SKEEP6 HOLDS B(X+1).
056257,000239:                                                                                                  #  SKEEP5 HOLDS B(X).
056258,000240:                                                                                                  #  SKEEP4 HOLDS C(EBANK) DURING ERASLOOP AND CHECKNJ.
056259,000241:                                                                                                  #  SKEEP3 HOLDS LAST ADDRESS BEING CHECKED (HIGHEST ADDRESS).

Page 1288

056261,000243:                                                                                                  #  SKEEP2 CONTROLS CHECKING OF NON-SWITCHABLE ERASABLE MEMORY WITH BANK NUMBERS IN EB.
056262,000244:                                                                                                  #  ERASCHK TAKES APPROXMATELY 7 SECONDS
056263,000245: 
056264,000246: 43,3337           34753        ERASCHK            CA       S+1                                   
056265,000247: 43,3340           55372                           TS       SKEEP2                                
056266,000248: 43,3341           34755        0EBANK             CA       S+ZERO                                
056267,000249: 43,3342           54003                           TS       EBANK                                 
056268,000250: 43,3343           33234                           CA       ERASCON3                              #  01461
056269,000251: 43,3344           55377                           TS       SKEEP7                                #  STARTING ADDRESS
056270,000252: 43,3345           35012                           CA       S10BITS                               #  01777
056271,000253: 43,3346           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
056272,000254: 43,3347           03367                           TC       ERASLOOP                              
056273,000255: 
056274,000256: 43,3350           35007        E134567B           CA       ERASCON6                              #  01400
056275,000257: 43,3351           55377                           TS       SKEEP7                                #  STARTING ADDRESS
056276,000258: 43,3352           35012                           CA       S10BITS                               #  01777
056277,000259: 43,3353           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
056278,000260: 43,3354           03367                           TC       ERASLOOP                              
056279,000261: 
056280,000262: 43,3355           35007        2EBANK             CA       ERASCON6                              #  01400
056281,000263: 43,3356           55377                           TS       SKEEP7                                #  STARTING ADDRESS
056282,000264: 43,3357           33235                           CA       ERASCON4                              #  01773
056283,000265: 43,3360           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
056284,000266: 43,3361           03367                           TC       ERASLOOP                              
056285,000267: 
056286,000268: 43,3362           55372        NOEBANK            TS       SKEEP2                                #  +0
056287,000269: 43,3363           33232                           CA       ERASCON1                              #  00061
056288,000270: 43,3364           55377                           TS       SKEEP7                                #  STARTING ADDRESS
056289,000271: 43,3365           33233                           CA       ERASCON2                              #  01373
056290,000272: 43,3366           55373                           TS       SKEEP3                                #  LAST ADDRESS CHECKED
056291,000273: 
056292,000274: 43,3367           00004        ERASLOOP           INHINT                                         
056293,000275: 43,3370           30003                           CA       EBANK                                 #  STORES C(EBANK)
056294,000276: 43,3371           55374                           TS       SKEEP4                                
056295,000277: 43,3372           00006                           EXTEND                                         
056296,000278: 43,3373           51377                           NDX      SKEEP7                                
056297,000279: 43,3374           30001                           DCA      0000                                  
056298,000280: 43,3375           53376                           DXCH     SKEEP5                                #  STORES C(X) AND C(X+1) IN SKEEP6 AND 5.
056299,000281: 43,3376           31377                           CA       SKEEP7                                
056300,000282: 43,3377           55360                           TS       ERESTORE                              #  IF RESTART, RESTORE C(X) AND C(X+1)
056301,000283: 43,3400           54001                           TS       L                                     
056302,000284: 43,3401           24001                           INCR     L                                     
056303,000285: 43,3402           50000                           NDX      A                                     
056304,000286: 43,3403           52001                           DXCH     0000                                  #  PUTS OWN ADDRESS IN X AND X +1
056305,000287: 43,3404           51377                           NDX      SKEEP7                                
056306,000288: 43,3405           40001                           CS       0001                                  #  CS X+1
056307,000289: 43,3406           51377                           NDX      SKEEP7                                
056308,000290: 43,3407           60000                           AD       0000                                  #  AD X
056309,000291: 43,3410           03273                           TC       -1CHK                                 
056310,000292: 43,3411           31360                           CA       ERESTORE                              #  HAS ERASABLE BEEN RESTORED
056311,000293: 43,3412           00006                           EXTEND                                         

Page 1289

056313,000295: 43,3413           13437                           BZF      ELOOPFIN                              #  YES, EXIT ERASLOOP.
056314,000296: 43,3414           00006                           EXTEND                                         
056315,000297: 43,3415           51377                           NDX      SKEEP7                                
056316,000298: 43,3416           40001                           DCS      0000                                  #  COMPLEMENT OF ADDRESS OF X AND X+1
056317,000299: 43,3417           51377                           NDX      SKEEP7                                
056318,000300: 43,3420           52001                           DXCH     0000                                  #  PUT COMPLEMENT OF ADDRESS OF X AND X+1
056319,000301: 43,3421           51377                           NDX      SKEEP7                                
056320,000302: 43,3422           40000                           CS       0000                                  #  CS X
056321,000303: 43,3423           51377                           NDX      SKEEP7                                
056322,000304: 43,3424           60001                           AD       0001                                  #  AD X+1
056323,000305: 43,3425           03273                           TC       -1CHK                                 
056324,000306: 43,3426           31360                           CA       ERESTORE                              #  HAS ERASABLE BEEN RESTORED
056325,000307: 43,3427           00006                           EXTEND                                         
056326,000308: 43,3430           13437                           BZF      ELOOPFIN                              #  YES, EXIT ERASLOOP.
056327,000309: 43,3431           00006                           EXTEND                                         
056328,000310: 43,3432           31376                           DCA      SKEEP5                                
056329,000311: 43,3433           51377                           NDX      SKEEP7                                
056330,000312: 43,3434           52001                           DXCH     0000                                  #  PUT B(X) AND B(X+1) BACK INTO X AND X+1
056331,000313: 43,3435           34755                           CA       S+ZERO                                
056332,000314: 43,3436           55360                           TS       ERESTORE                              #  IF RESTART, DO NOT RESTORE C(X), C(X+1)
056333,000315: 43,3437           00003        ELOOPFIN           RELINT                                         
056334,000316: 43,3440           03332                           TC       CHECKNJ                               #  CHECK FOR NEW JOB
056335,000317: 43,3441           31374                           CA       SKEEP4                                #  REPLACES B(EBANK)
056336,000318: 43,3442           54003                           TS       EBANK                                 
056337,000319: 43,3443           25377                           INCR     SKEEP7                                
056338,000320: 43,3444           41377                           CS       SKEEP7                                
056339,000321: 43,3445           61373                           AD       SKEEP3                                
056340,000322: 43,3446           00006                           EXTEND                                         
056341,000323: 43,3447           13451                           BZF      +2                                    
056342,000324: 43,3450           03367                           TC       ERASLOOP                              #  GO TO NEXT ADDRESS IN SAME BANK
056343,000325: 43,3451           11372                           CCS      SKEEP2                                
056344,000326: 43,3452           03362                           TC       NOEBANK                               
056345,000327: 43,3453           25372                           INCR     SKEEP2                                #  PUT +1 IN SKEEP2.
056346,000328: 43,3454           30003                           CA       EBANK                                 
056347,000329: 43,3455           64743                           AD       SBIT9                                 
056348,000330: 43,3456           54003                           TS       EBANK                                 
056349,000331: 43,3457           63243                           AD       ERASCON5                              #  76777, CHECK FOR BANK E2
056350,000332: 43,3460           00006                           EXTEND                                         
056351,000333: 43,3461           13355                           BZF      2EBANK                                
056352,000334: 43,3462           10003                           CCS      EBANK                                 
056353,000335: 43,3463           03350                           TC       E134567B                              #  GO TO EBANKS 1,3,4,5,6, AND 7
056354,000336: 43,3464           35007                           CA       ERASCON6                              #  END OF ERASCHK
056355,000337: 43,3465           54003                           TS       EBANK                                 
056356,000338: 
056357,000339:                                                                                                  #  CNTRCHK PERFORMS A CS OF ALL REGISTERS FROM OCT. 60 THROUGH OCT. 10.
056358,000340:                                                                                                  #  INCLUDED ARE ALL COUNTERS, T6-1, CYCLE AND SHIFT, AND ALL RUPT REGISTERS
056359,000341: 
056360,000342: 43,3466           34771        CNTRCHK            CA       CNTRCON                               #  00050
056361,000343: 43,3467           55372        CNTRLOOP           TS       SKEEP2                                
056362,000344: 43,3470           64750                           AD       SBIT4                                 #  +10 OCTAL
056363,000345: 43,3471           50000                           INDEX    A                                     
056364,000346: 43,3472           40000                           CS       0000                                  

Page 1290

056366,000348: 43,3473           11372                           CCS      SKEEP2                                
056367,000349: 43,3474           03467                           TC       CNTRLOOP                              
056368,000350: 
056369,000351:                                                                                                  #  CYCLSHFT CHECKS THE CYCLE AND SHIFT REGISTERS
056370,000352: 
056371,000353: 43,3475           33241        CYCLSHFT           CA       CONC+S1                               #  25252
056372,000354: 43,3476           54020                           TS       CYR                                   #  C(CYR) = 12525
056373,000355: 43,3477           54022                           TS       CYL                                   #  C(CYL) = 52524
056374,000356: 43,3500           54021                           TS       SR                                    #  C(SR) = 12525
056375,000357: 43,3501           54023                           TS       EDOP                                  #  C(EDOP) = 00125
056376,000358: 43,3502           60020                           AD       CYR                                   #  37777         C(CYR) = 45252
056377,000359: 43,3503           60022                           AD       CYL                                   #  00-12524      C(CYL) = 25251
056378,000360: 43,3504           60021                           AD       SR                                    #  00-25251      C(SR) = 05252
056379,000361: 43,3505           60023                           AD       EDOP                                  #  00-25376      C(EDOP) = +0
056380,000362: 43,3506           63242                           AD       CONC+S2                               #  C(CONC+S2) = 52400
056381,000363: 43,3507           03273                           TC       -1CHK                                 
056382,000364: 43,3510           60020                           AD       CYR                                   #  45252
056383,000365: 43,3511           60022                           AD       CYL                                   #  72523
056384,000366: 43,3512           60021                           AD       SR                                    #  77775
056385,000367: 43,3513           60023                           AD       EDOP                                  #  77775
056386,000368: 43,3514           64753                           AD       S+1                                   #  77776
056387,000369: 43,3515           03273                           TC       -1CHK                                 
056388,000370: 
056389,000371: 43,3516           25367                           INCR     SCOUNT     +1                         
056390,000372: 43,3517           03301                           TC       SMODECHK                              
056391,000373: 
056392,000374:                                                                                                  #  SKEEP1 HOLDS SUM
056393,000375:                                                                                                  #  SKEEP2 HOLDS PRESENT CONTENTS OF ADDRESS IN ROPECHK AND SHOWSUM ROUTINES
056394,000376:                                                                                                  #  SKEEP2 HOLDS BANK NUMBER IN LOW ORDER BITS DURING SHOWSUM DISPLAY
056395,000377:                                                                                                  #  SKEEP3 HOLDS PRESENT ADDRESS (00000 TO 01777 IN COMMON FIXED BANKS)
056396,000378:                                                                                                  #                               (04000 TO 07777 IN FXFX BANKS)
056397,000379:                                                                                                  #  SKEEP3 HOLDS BUGGER WORD DURING SHOWSUM DISPLAY
056398,000380:                                                                                                  #  SKEEP4 HOLDS BANK NUMBER AND SUPER BANK NUMBER
056399,000381:                                                                                                  #  SKEEP5 COUNTS 2 SUCCESSIVE TC SELF WORDS
056400,000382:                                                                                                  #  SKEEP6 CONTROLS ROPECHK OR SHOWSUM OPTION
056401,000383:                                                                                                  #  SKEEP7 CONTROLS WHEN ROUNTINE IS IN COMMON FIXED OR FIXED FIXED BANKS
056402,000384: 
056403,000385: 43,3520           34754        ROPECHK            CA       S-ZERO                                #  *
056404,000386: 43,3521           55376                           TS       SKEEP6                                #  * -0 FOR ROPECHK.
056405,000387: 43,3522           34755        STSHOSUM           CA       S+ZERO                                #  * SHOULD BE ROPECHK
056406,000388: 
056407,000389: 43,3523           55374                           TS       SKEEP4                                #  BANK NUMBER
056408,000390: 43,3524           34753                           CA       S+1                                   
056409,000391: 43,3525           55377        COMMFX             TS       SKEEP7                                
056410,000392: 43,3526           34755                           CA       S+ZERO                                
056411,000393: 43,3527           55371                           TS       SKEEP1                                
056412,000394: 43,3530           55373                           TS       SKEEP3                                
056413,000395: 43,3531           34753                           CA       S+1                                   
056414,000396: 43,3532           55375                           TS       SKEEP5                                #  COUNTS DOWN 2 TC SELF WORDS
056415,000397: 43,3533           31374        COMADRS            CA       SKEEP4                                
056416,000398: 43,3534           54001                           TS       L                                     #  TO SET SUPER BANK
056417,000399: 43,3535           74350                           MASK     HI5                                   

Page 1291

056419,000401: 43,3536           61373                           AD       SKEEP3                                
056420,000402: 43,3537           04651                           TC       SUPDACAL                              #  SUPER DATA CALL
056421,000403: 43,3540           03563                           TC       ADSUM                                 
056422,000404: 43,3541           64741                           AD       SBIT11                                #  02000
056423,000405: 43,3542           03574                           TC       ADRSCHK                               
056424,000406: 
056425,000407: 43,3543           40000        FXFX               CS       A                                     
056426,000408: 43,3544           55377                           TS       SKEEP7                                
056427,000409: 43,3545           00006                           EXTEND                                         
056428,000410: 43,3546           13551                           BZF      +3                                    
056429,000411: 43,3547           34740                           CA       SBIT12                                #  04000, STARTING ADDRESS OF BANK 02
056430,000412: 43,3550           03552                           TC       +2                                    
056431,000413: 43,3551           35020                           CA       SBNK03                                #  06000, STARTING ADDRESS OF BANK 03
056432,000414: 43,3552           55373                           TS       SKEEP3                                
056433,000415: 43,3553           34755                           CA       S+ZERO                                
056434,000416: 43,3554           55371                           TS       SKEEP1                                
056435,000417: 43,3555           34753                           CA       S+1                                   
056436,000418: 43,3556           55375                           TS       SKEEP5                                #  COUNTS DOWN 2 TC SELF WORDS
056437,000419: 43,3557           51373        FXADRS             INDEX    SKEEP3                                
056438,000420: 43,3560           30000                           CA       0000                                  
056439,000421: 43,3561           03563                           TC       ADSUM                                 
056440,000422: 43,3562           03574                           TC       ADRSCHK                               
056441,000423: 
056442,000424: 43,3563           55372        ADSUM              TS       SKEEP2                                
056443,000425: 43,3564           61371                           AD       SKEEP1                                
056444,000426: 43,3565           55371                           TS       SKEEP1                                
056445,000427: 43,3566           34755                           CAF      S+ZERO                                
056446,000428: 43,3567           61371                           AD       SKEEP1                                
056447,000429: 43,3570           55371                           TS       SKEEP1                                
056448,000430: 43,3571           41372                           CS       SKEEP2                                
056449,000431: 43,3572           61373                           AD       SKEEP3                                
056450,000432: 43,3573           00002                           TC       Q                                     
056451,000433: 
056452,000434: 43,3574           22000        ADRSCHK            LXCH     A                                     
056453,000435: 43,3575           31373                           CA       SKEEP3                                
056454,000436: 43,3576           75012                           MASK     LOW10                                 #  RELATIVE ADDRESS
056455,000437: 43,3577           64350                           AD       -MAXADRS                              #  SUBTRACT MAX RELATIVE ADDRESS = 1777.
056456,000438: 43,3600           00006                           EXTEND                                         
056457,000439: 43,3601           13670                           BZF      SOPTION                               #  CHECKSUM FINISHED IF LAST ADDRESS.
056458,000440: 43,3602           11375                           CCS      SKEEP5                                #  IS CHECKSUM FINISHED
056459,000441: 43,3603           03606                           TC       +3                                    #  NO
056460,000442: 43,3604           03606                           TC       +2                                    #  NO
056461,000443: 43,3605           03670                           TC       SOPTION                               #  GO TO ROPECHK SHOWSUM OPTION
056462,000444: 43,3606           10001                           CCS      L                                     #  -0 MEANS A TC SELF WORD.
056463,000445: 43,3607           03616                           TC       CONTINU                               
056464,000446: 43,3610           03616                           TC       CONTINU                               
056465,000447: 43,3611           03616                           TC       CONTINU                               
056466,000448: 43,3612           11375                           CCS      SKEEP5                                
056467,000449: 43,3613           03617                           TC       CONTINU    +1                         
056468,000450: 43,3614           37747                           CA       S-1                                   

Page 1292

056470,000452: 43,3615           03617                           TC       CONTINU    +1                         #  AD IN THE BUGGER WORD
056471,000453: 43,3616           34753        CONTINU            CA       S+1                                   #  MAKE SURE TWO CONSECUTIVE TC SELF WORDS
056472,000454: 43,3617           55375                           TS       SKEEP5                                
056473,000455: 43,3620           11376                           CCS      SKEEP6                                #  *
056474,000456: 43,3621           10067                           CCS      NEWJOB                                #  * +1, SHOWSUM
056475,000457: 43,3622           05122                           TC       CHANG1                                #  *
056476,000458: 43,3623           03625                           TC       +2                                    #  *
056477,000459: 43,3624           03332                           TC       CHECKNJ                               #  -0 IN SKEEP6 FOR ROPECHK
056478,000460: 
056479,000461: 43,3625           25373        ADRS+1             INCR     SKEEP3                                
056480,000462: 43,3626           11377                           CCS      SKEEP7                                
056481,000463: 43,3627           03533                           TC       COMADRS                               
056482,000464: 43,3630           03533                           TC       COMADRS                               
056483,000465: 43,3631           03557                           TC       FXADRS                                
056484,000466: 43,3632           03557                           TC       FXADRS                                
056485,000467: 
056486,000468: 43,3633           41374        NXTBNK             CS       SKEEP4                                
056487,000469: 43,3634           63723                           AD       LSTBNKCH                              #  LAST BANK TO BE CHECKED
056488,000470: 43,3635           00006                           EXTEND                                         
056489,000471: 43,3636           13131                           BZF      ENDSUMS                               #  END OF SUMMING OF BANKS.
056490,000472: 43,3637           31374                           CA       SKEEP4                                
056491,000473: 43,3640           64741                           AD       SBIT11                                
056492,000474: 43,3641           55374                           TS       SKEEP4                                #  37 TO 40 INCRMTS SKEEP4 BY END RND CARRY
056493,000475: 43,3642           03646                           TC       CHKSUPR                               
056494,000476: 43,3643           34735        17TO20             CA       SBIT15                                
056495,000477: 43,3644           27374                           ADS      SKEEP4                                #  SET FOR BANK 20
056496,000478: 43,3645           03662                           TC       GONXTBNK                              
056497,000479: 43,3646           74350        CHKSUPR            MASK     HI5                                   
056498,000480: 43,3647           00006                           EXTEND                                         
056499,000481: 43,3650           13660                           BZF      NXTSUPR                               #  INCREMENT SUPER BANK
056500,000482: 43,3651           63240        27TO30             AD       S13BITS                               
056501,000483: 43,3652           00006                           EXTEND                                         
056502,000484: 43,3653           13655                           BZF      +2                                    #  BANK SET FOR 30
056503,000485: 43,3654           03662                           TC       GONXTBNK                              
056504,000486: 43,3655           33236                           CA       SIXTY                                 #  FIRST SUPER BANK
056505,000487: 43,3656           27374                           ADS      SKEEP4                                
056506,000488: 43,3657           03662                           TC       GONXTBNK                              
056507,000489: 43,3660           63237        NXTSUPR            AD       SUPRCON                               #  SET BNK 30 + INCR SUPR BNK AND CANCEL
056508,000490: 43,3661           27374                           ADS      SKEEP4                                #  ERC BIT OF THE 37 TO 40 ADVANCE.
056509,000491: 43,3662           11377        GONXTBNK           CCS      SKEEP7                                
056510,000492: 43,3663           03525                           TC       COMMFX                                
056511,000493: 43,3664           34753                           CA       S+1                                   
056512,000494: 43,3665           03543                           TC       FXFX                                  
056513,000495: 43,3666           34745                           CA       SBIT7                                 #  HAS TO BE LARGER THAN NO OF FXSW BANKS.
056514,000496: 43,3667           03525                           TC       COMMFX                                
056515,000497: 
056516,000498: 43,3670           31374        SOPTION            CA       SKEEP4                                
056517,000499: 43,3671           74350                           MASK     HI5                                   #  = BANK BITS
056518,000500: 43,3672           04331                           TC       LEFT5                                 
056519,000501: 43,3673           54001                           TS       L                                     #  BANK NUMBER BEFORE SUPER BANK

Page 1293

056521,000503: 43,3674           31374                           CA       SKEEP4                                
056522,000504: 43,3675           74357                           MASK     S8BITS                                #  = SUPER BANK BITS
056523,000505: 43,3676           00006                           EXTEND                                         
056524,000506: 43,3677           13705                           BZF      SOPT                                  #  BEFORE SUPER BANK
056525,000507: 43,3700           54021                           TS       SR                                    #  SUPER BANK NECESSARY
056526,000508: 43,3701           30001                           CA       L                                     
056527,000509: 43,3702           74757                           MASK     SEVEN                                 
056528,000510: 43,3703           60021                           AD       SR                                    
056529,000511: 43,3704           54001                           TS       L                                     #  BANK NUMBER WITH SUPER BANK
056530,000512: 43,3705           31376        SOPT               CA       SKEEP6                                #  *
056531,000513: 43,3706           00006                           EXTEND                                         #  *
056532,000514: 43,3707           13711                           BZF      +2                                    #  * ON -0 CONTINUE WITH ROPE CHECK.
056533,000515: 43,3710           03113                           TC       SDISPLAY                              #  * ON +1 GO TO DISPLAY OF SUM.
056534,000516: 43,3711           11371                           CCS      SKEEP1                                #  FORCE SUM TO ABSOLUTE VALUE.
056535,000517: 43,3712           03714                           TC       +2                                    
056536,000518: 43,3713           03715                           TC       +2                                    
056537,000519: 43,3714           64753                           AD       S+1                                   
056538,000520: 43,3715           55371                           TS       SKEEP1                                
056539,000521: 43,3716           40001        BNKCHK             CS       L                                     #  = - BANK NUMBER
056540,000522: 43,3717           61371                           AD       SKEEP1                                
056541,000523: 43,3720           67747                           AD       S-1                                   
056542,000524: 43,3721           03273                           TC       -1CHK                                 #  CHECK SUM
056543,000525: 43,3722           03633                           TC       NXTBNK                                
056544,000526: 
056545,000527: 43,3723     0067                                  EBANK=   NEWJOB                                
056546,000528: 43,3723           66100        LSTBNKCH           BBCON*                                         #  * CONSTANT, LAST BANK.
056547,000529: 

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