Source Code
This is a reconstructed version of Luminary 130, the initial AGC program released
in November 1969 for the Apollo 13 LM. Three more releases
followed before the flown revision was finally manufactured in February 1970.
This reconstruction was created from a previous transcription of the original listing of Luminary 131, combined with Luminary memo #129 which describes the small difference between the Luminary 130 and 131. The reconstructed source code was verified by matching memory-bank checksums to those listed for Luminary 130 in drawing 2021152G. In this source code, program comments from the original (Luminary 131) code are prefixed with '#', while those added later by the Virtual AGC project are prefixed with '##'. |
054040,000002: ## Copyright: Public domain.
054041,000003: ## Filename: AGC_BLOCK_TWO_SELF-CHECK.agc
054042,000004: ## Purpose: A section of the reconstructed source code for Luminary 130.
054043,000005: ## This was the original program released for the Apollo 13 LM,
054044,000006: ## although several more revisions would follow. It has been
054045,000007: ## reconstructed from a listing of Luminary 131, from which it
054046,000008: ## differs on only two lines in P70-P71. The difference is
054047,000009: ## described in detail in Luminary memo #129, which was used
054048,000010: ## to perform the reconstruction. This file is intended to be a
054049,000011: ## faithful reconstruction, except that the code format has been
054050,000012: ## changed to conform to the requirements of the yaYUL assembler
054051,000013: ## rather than the original YUL assembler.
054052,000014: ## Reference: pp. 1276-1285
054053,000015: ## Contact: Ron Burkey <info@sandroid.org>.
054054,000016: ## Website: www.ibiblio.org/apollo/index.html
054055,000017: ## Mod history: 06/05/03 RSB. Began transcribing.
054056,000018: ## 05/14/05 RSB Corrected website reference above.
054057,000019: ## 2017-01-06 RSB Page numbers now agree with those on the
054058,000020: ## original hardcopy, as opposed to the PDF page
054059,000021: ## numbers in 1701.pdf.
054060,000022: ## 2017-01-28 RSB WTIH -> WITH.
054061,000023: ## 2017-02-27 RSB Proofed comment text using octopus/ProoferComments.
054062,000024: ## 2018-09-04 MAS Copied from Luminary 131 for Luminary 130.
054063,000025:
Page 1276 |
054065,000027: # PROGRAM DESCRIPTION DATE 20 DECEMBER 1967
054066,000028: # PROGRAM NAME - SELF-CHECK LOG SECTION AGC BLOCK TWO SELF-CHECK
054067,000029: # MOD NO - 1 ASSEMBLY SUBROUTINE UTILITYM REV 25
054068,000030: # MOD BY - GAUNTT
054069,000031:
054070,000032: # FUNCTIONAL DESCRIPTION
054071,000033: # PROGRAM HAS TWO MAIN PARTS. THE FIRST IS SELF-CHECK WHICH RUNS AS A ZERO PRIORITY JOB WITH NO CORE SET, AS
054072,000034: # PART OF THE BACK-UP IDLE LOOP. THE SECOND IS SHOW-BANKSUM WHICH RUNS AS A REGULAR EXECUTIVE JOB WITH ITS OWN
054073,000035: # STARTING VERB.
054074,000036:
054075,000037: # THE PURPOSE OF SELF-CHECK IS TO CHECK OUT VARIOUS PARTS OF THE COMPUTER AS OUTLINED BELOW IN THE OPTIONS.
054076,000038:
054077,000039: # THE PURPOSE OF SHOW-BANKSUM IS TO DISPLAY THE SUM OF EACH BANK, ONE AT A TIME.
054078,000040:
054079,000041: # IN ALL THERE ARE 7 POSSIBLE OPTIONS IN THIS BLOCK II VERSION OF SELF-CHECK. MORE DETAIL DESCRIPTION MAY BE
054080,000042: # FOUND IN E-2065 BLOCK II AGC SELF-CHECK AND SHOW BANKSUM BY EDWIN D. SMALLY DECEMBER 1966, AND ADDENDA 2 AND 3.
054081,000043:
054082,000044: # THE DIFFERENT OPTIONS ARE CONTROLLED BY PUTTING DIFFERENT NUMBERS IN THE SMODE REGISTER (NOUN 27). BELOW IS
054083,000045: # A DESCRIPTION OF WHAT PARTS OF THE COMPUTER THAT ARE CHECKED BY THE OPTIONS, AND THE CORRESPONDING NUMBER, IN
054084,000046: # OCTAL, TO LOAD INTO SMODE.
054085,000047: # +-4 ERASABLE MEMORY
054086,000048: # +-5 FIXED MEMORY
054087,000049: # +-1,2,3,6,7,10 EVERYTHING IN OPTIONS 4 AND 5.
054088,000050: # -0 SAME AS +-10 UNTIL AN ERROR IS DETECTED.
054089,000051: # +0 NO CHECK, PUTS COMPUTER INTO THE BACKUP IDLE LOOP.
054090,000052:
054091,000053: # WARNINGS
054092,000054: # USE OF E MEMORY RESERVED FOR SELF-CHECK (EVEN IN IDLE LOOP) AS TEMP STORAGE BY OTHER PROGRAMS IS DANGEROUS.
054093,000055: # SMODE SET GREATER THAN OCT 10 PUTS COMPUTER INTO BACKUP IDLE LOOP.
054094,000056:
054095,000057: # CALLING SEQUENCE
054096,000058: # TO CALL SELF-CHECK KEY IN
054097,000059: # V 21 N 27 E OPTION NUMBER E
054098,000060: # TO CALL SHOW-BANKSUM KEY IN
054099,000061: # V 91 E DISPLAYS FIRST BANK
054100,000062: # V 33 E PROCEED, DISPLAYS NEXT BANK
054101,000063:
054102,000064: # EXIT MODES, NORMAL AND ALARM
054103,000065: # SELF-CHECK NORMALLY CONTINUES INDEFINITELY UNLESS THERE IS AN ERROR DETECTED. IF SO + OPTION NUMBERS PUT
054104,000066: # COMPUTER INTO BACKUP IDLE LOOP, - OPTION NUMBERS RESTART THE OPTION.
054105,000067:
054106,000068: # THE -0 OPTION PROCEEDS FROM THE LINE FOLLOWING THE LINE WHERE THE ERROR WAS DETECTED.
054107,000069:
054108,000070: # SHOW-BANKSUM PROCEEDS UNTIL A TERMINATE IS KEYED IN (V 34 E). THE COMPUTER IS PUT INTO THE BACKUP IDLE LOOP
054109,000071:
054110,000072: # OUTPUT
Page 1277 |
054112,000074: # SELF-CHECK UPON DETECTING AN ERROR LOADS THE SELF-CHECK ALARM CONSTANT (01102) INTO THE FAILREG SET AND
054113,000075: # TURNS ON THE ALARM LIGHT. THE OPERATOR MAY THEN DISPLAY THE THREE FAILREGS BY KEYING IN V 05 N 09 E. FOR FURTHER
054114,000076: # 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,
054115,000077: # IN R2 THE BBCON OF SELF-CHECK, AND IN R3 THE TOTAL NUMBER OF ERRORS DETECTED BY SELF-CHECK SINCE THE LAST MAN
054116,000078: # INITIATED FRESH START (SLAP1).
054117,000079:
054118,000080: # SHOW-BANKSUM STARTING WITH BANK 0 DISPLAYS IN R1 THE BANK SUM (A +-NUMBER EQUAL TO THE BANK NUMBER), IN R2
054119,000081: # THE BANK NUMBER, AND IN R3 THE BUGGER WORD.
054120,000082:
054121,000083: # ERASABLE INITIALIZATION REQUIRED
054122,000084: # ACCOMPLISHED BY FRESH START
054123,000085: # SMODE SET TO +0
054124,000086:
054125,000087: # DEBRIS
054126,000088: # ALL EXITS FROM THE CHECK OF ERASABLE (ERASCHK) RESTORE ORIGINAL CONTENTS TO REGISTERS UNDER CHECK.
054127,000089: # EXCEPTION IS A RESTART. RESTART THAT OCCURS DURING ERASCHK RESTORES ERASABLE, UNLESS THERE IS EVIDENCE TO DOUBT
054128,000090: # E MEMORY, IN WHICH CASE PROGRAM THEN DOES A FRESH START (DOFSTART).
054129,000091:
054130,000092: 25,3757 BANK 25
054131,000093: 43,2000 SETLOC SELFCHEC
054132,000094: 43,2000 BANK
054133,000095:
054134,000096: 43,3257 COUNT* $$/SELF
054135,000097: 43,3257 4753 SBIT1 EQUALS BIT1
054136,000098: 43,3257 4752 SBIT2 EQUALS BIT2
054137,000099: 43,3257 4751 SBIT3 EQUALS BIT3
054138,000100: 43,3257 4750 SBIT4 EQUALS BIT4
054139,000101: 43,3257 4747 SBIT5 EQUALS BIT5
054140,000102: 43,3257 4746 SBIT6 EQUALS BIT6
054141,000103: 43,3257 4745 SBIT7 EQUALS BIT7
054142,000104: 43,3257 4744 SBIT8 EQUALS BIT8
054143,000105: 43,3257 4743 SBIT9 EQUALS BIT9
054144,000106: 43,3257 4742 SBIT10 EQUALS BIT10
054145,000107: 43,3257 4741 SBIT11 EQUALS BIT11
054146,000108: 43,3257 4740 SBIT12 EQUALS BIT12
054147,000109: 43,3257 4737 SBIT13 EQUALS BIT13
054148,000110: 43,3257 4736 SBIT14 EQUALS BIT14
054149,000111: 43,3257 4735 SBIT15 EQUALS BIT15
054150,000112:
054151,000113: 43,3257 4755 S+ZERO EQUALS ZERO
054152,000114: 43,3257 4753 S+1 EQUALS BIT1
054153,000115: 43,3257 4752 S+2 EQUALS BIT2
054154,000116: 43,3257 6250 S+3 EQUALS THREE
054155,000117: 43,3257 4751 S+4 EQUALS FOUR
054156,000118: 43,3257 4756 S+5 EQUALS FIVE
054157,000119: 43,3257 6245 S+6 EQUALS SIX
Page 1278 |
054159,000121: 43,3257 4757 S+7 EQUALS SEVEN
054160,000122: 43,3257 4357 S8BITS EQUALS LOW8 # 00377
054161,000123: 43,3257 4771 CNTRCON = OCT50 # USED IN CNTRCHK
054162,000124: 43,3257 00061 ERASCON1 OCTAL 00061 # USED IN ERASCHK
054163,000125: 43,3260 01373 ERASCON2 OCTAL 01373 # USED IN ERASCHK
054164,000126: 43,3261 5007 ERASCON6 = OCT1400 # USED IN ERASCHK
054165,000127: 43,3261 01461 ERASCON3 OCTAL 01461 # USED IN ERASCHK
054166,000128: 43,3262 01773 ERASCON4 OCTAL 01773 # USED IN ERASCHK
054167,000129: 43,3263 5012 S10BITS EQUALS LOW10 # 01777, USED IN ERASCHK
054168,000130: 43,3263 5020 SBNK03 EQUALS PRIO6 # 06000, USED IN ROPECHK
054169,000131: 43,3263 4350 -MAXADRS = HI5 # FOR ROPECHK
054170,000132: 43,3263 00060 SIXTY OCTAL 00060
054171,000133: 43,3264 60017 SUPRCON OCTAL 60017 # USED IN ROPECHK
054172,000134: 43,3265 17777 S13BITS OCTAL 17777
054173,000135: 43,3266 25252 CONC+S1 OCTAL 25252 # USED IN CYCLSHFT
054174,000136: 43,3267 52400 CONC+S2 OCTAL 52400 # USED IN CYCLSHFT
054175,000137: 43,3270 76777 ERASCON5 OCTAL 76777
054176,000138: 43,3271 5650 S-7 = OCT77770
054177,000139: 43,3271 6115 S-4 EQUALS NEG4
054178,000140: 43,3271 7750 S-3 EQUALS NEG3
054179,000141: 43,3271 7751 S-2 EQUALS NEG2
054180,000142: 43,3271 7752 S-1 EQUALS NEGONE
054181,000143: 43,3271 4754 S-ZERO EQUALS NEG0
054182,000144:
054183,000145: 43,3271 E3,1400 EBANK= LST1
054184,000146: 43,3271 01371 ADRS1 ADRES SKEEP1
054185,000147: 43,3272 03363 SELFADRS ADRES SELFCHK # SELFCHK RETURN ADDRESS. SHOULD BE PUT
054186,000148: # IN SELFRET WHEN GOING FROM SELFCHK TO
054187,000149: # SHOWSUM AND PUT IN SKEEP1 WHEN GOING
054188,000150: # FROM SHOWSUM TO SELF-CHECK.
054189,000151:
054190,000152: 43,3273 31360 PRERRORS CA ERESTORE # IS IT NECESSARY TO RESTORE ERASABLE
054191,000153: 43,3274 00006 EXTEND
054192,000154: 43,3275 13304 BZF ERRORS # NO
054193,000155: 43,3276 00006 EXTEND
054194,000156: 43,3277 31376 DCA SKEEP5
054195,000157: 43,3300 51377 INDEX SKEEP7
054196,000158: 43,3301 52001 DXCH 0000 # RESTORE THE TWO ERASABLE REGISTERS
054197,000159: 43,3302 34755 CA S+ZERO
054198,000160: 43,3303 55360 TS ERESTORE
054199,000161: 43,3304 00004 ERRORS INHINT
054200,000162: 43,3305 30002 CA Q
054201,000163: 43,3306 55357 TS SFAIL # SAVE Q FOR FAILURE LOCATION
054202,000164: 43,3307 55363 TS ALMCADR # FOR DISPLAY WITH BBANK AND ERCOUNT
054203,000165: 43,3310 25365 INCR ERCOUNT # KEEP TRACK OF NUMBER OF MALFUNCTIONS.
054204,000166: 43,3311 05571 TCALARM2 TC ALARM2
054205,000167: 43,3312 01102 OCT 01102 # SELF-CHECK MALFUNCTION INDICATOR
054206,000168: 43,3313 11362 CCS SMODE
054207,000169: 43,3314 34755 SIDLOOP CA S+ZERO
054208,000170: 43,3315 55362 TS SMODE
Page 1279 |
054210,000172: 43,3316 03363 TC SELFCHK # GO TO IDLE LOOP
054211,000173: 43,3317 01357 TC SFAIL # CONTINUE WITH SELF-CHECK
054212,000174:
054213,000175: 43,3320 10000 -1CHK CCS A
054214,000176: 43,3321 13273 TCF PRERRORS
054215,000177: 43,3322 13273 TCF PRERRORS
054216,000178: 43,3323 10000 CCS A
054217,000179: 43,3324 13273 TCF PRERRORS
054218,000180: 43,3325 00002 TC Q
054219,000181:
054220,000182: 43,3326 00006 SMODECHK EXTEND
054221,000183: 43,3327 23371 QXCH SKEEP1
054222,000184: 43,3330 03357 TC CHECKNJ # CHECK FOR NEW JOB
054223,000185: 43,3331 11362 CCS SMODE
054224,000186: 43,3332 03337 TC SOPTIONS
054225,000187: 43,3333 03330 TC SMODECHK +2 # TO BACKUP IDLE LOOP
054226,000188: 43,3334 03337 TC SOPTIONS
054227,000189: 43,3335 25366 INCR SCOUNT
054228,000190: 43,3336 01371 TC SKEEP1 # CONTINUE WITH SELF-CHECK
054229,000191:
054230,000192: 43,3337 65650 SOPTIONS AD S-7
054231,000193: 43,3340 00006 EXTEND
054232,000194: 43,3341 63343 BZMF +2 # FOR OPTIONS BELOW NINE.
054233,000195: 43,3342 03314 BNKOPTN TC SIDLOOP # ILLEGAL OPTION. GO TO IDLE LOOP.
054234,000196: 43,3343 25366 INCR SCOUNT # FOR OPTIONS BELOW NINE.
054235,000197: 43,3344 64757 AD S+7
054236,000198:
054237,000199: 43,3345 50000 INDEX A
054238,000200: 43,3346 03347 TC SOPTION1
054239,000201: 43,3347 01371 SOPTION1 TC SKEEP1 # WAS TC+TCF
054240,000202: 43,3350 01371 SOPTION2 TC SKEEP1 # WAS IN:OUT1
054241,000203: 43,3351 01371 SOPTION3 TC SKEEP1 # WAS COUNTCHK
054242,000204: 43,3352 03364 SOPTION4 TC ERASCHK
054243,000205: 43,3353 03545 SOPTION5 TC ROPECHK
054244,000206: 43,3354 01371 SOPTION6 TC SKEEP1
054245,000207: 43,3355 01371 SOPTION7 TC SKEEP1
054246,000208: 43,3356 01371 SOPTON10 TC SKEEP1 # CONTINUE WITH SELF-CHECK
054247,000209:
054248,000210: 43,3357 00006 CHECKNJ EXTEND
054249,000211: 43,3360 23361 QXCH SELFRET # SAVE RETURN ADDRESS WHILE TESTING NEWJOB
054250,000212: 43,3361 04635 TC POSTJUMP # TO SEE IF ANY JOBS HAVE BECOME ACTIVE.
054251,000213: 43,3362 03215 CADR ADVAN
054252,000214:
054253,000215: 43,3363 03326 SELFCHK TC SMODECHK # ** CHARLEY, COME IN HERE
054254,000216:
054255,000217: # SKEEP7 HOLDS LOWEST OF TWO ADDRESSES BEING CHECKED.
054256,000218: # SKEEP6 HOLDS B(X+1).
054257,000219: # SKEEP5 HOLDS B(X).
054258,000220: # SKEEP4 HOLDS C(EBANK) DURING ERASLOOP AND CHECKNJ.
054259,000221: # SKEEP3 HOLDS LAST ADDRESS BEING CHECKED (HIGHEST ADDRESS).
Page 1280 |
054261,000223: # SKEEP2 CONTROLS CHECKING OF NON-SWITCHABLE ERASABLE MEMORY WITH BANK NUMBERS IN EB.
054262,000224: # ERASCHK TAKES APPROXMATELY 7 SECONDS
054263,000225:
054264,000226: 43,3364 34753 ERASCHK CA S+1
054265,000227: 43,3365 55372 TS SKEEP2
054266,000228: 43,3366 34755 0EBANK CA S+ZERO
054267,000229: 43,3367 54003 TS EBANK
054268,000230: 43,3370 33261 CA ERASCON3 # 01461
054269,000231: 43,3371 55377 TS SKEEP7 # STARTING ADDRESS
054270,000232: 43,3372 35012 CA S10BITS # 01777
054271,000233: 43,3373 55373 TS SKEEP3 # LAST ADDRESS CHECKED
054272,000234: 43,3374 03414 TC ERASLOOP
054273,000235:
054274,000236: 43,3375 35007 E134567B CA ERASCON6 # 01400
054275,000237: 43,3376 55377 TS SKEEP7 # STARTING ADDRESS
054276,000238: 43,3377 35012 CA S10BITS # 01777
054277,000239: 43,3400 55373 TS SKEEP3 # LAST ADDRESS CHECKED
054278,000240: 43,3401 03414 TC ERASLOOP
054279,000241:
054280,000242: 43,3402 35007 2EBANK CA ERASCON6 # 01400
054281,000243: 43,3403 55377 TS SKEEP7 # STARTING ADDRESS
054282,000244: 43,3404 33262 CA ERASCON4 # 01773
054283,000245: 43,3405 55373 TS SKEEP3 # LAST ADDRESS CHECKED
054284,000246: 43,3406 03414 TC ERASLOOP
054285,000247:
054286,000248: 43,3407 55372 NOEBANK TS SKEEP2 # +0
054287,000249: 43,3410 33257 CA ERASCON1 # 00061
054288,000250: 43,3411 55377 TS SKEEP7 # STARTING ADDRESS
054289,000251: 43,3412 33260 CA ERASCON2 # 01373
054290,000252: 43,3413 55373 TS SKEEP3 # LAST ADDRESS CHECKED
054291,000253:
054292,000254: 43,3414 00004 ERASLOOP INHINT
054293,000255: 43,3415 30003 CA EBANK # STORES C(EBANK)
054294,000256: 43,3416 55374 TS SKEEP4
054295,000257: 43,3417 00006 EXTEND
054296,000258: 43,3420 51377 NDX SKEEP7
054297,000259: 43,3421 30001 DCA 0000
054298,000260: 43,3422 53376 DXCH SKEEP5 # STORES C(X) AND C(X+1) IN SKEEP6 AND 5.
054299,000261: 43,3423 31377 CA SKEEP7
054300,000262: 43,3424 55360 TS ERESTORE # IF RESTART, RESTORE C(X) AND C(X+1)
054301,000263: 43,3425 54001 TS L
054302,000264: 43,3426 24001 INCR L
054303,000265: 43,3427 50000 NDX A
054304,000266: 43,3430 52001 DXCH 0000 # PUTS OWN ADDRESS IN X AND X +1
054305,000267: 43,3431 51377 NDX SKEEP7
054306,000268: 43,3432 40001 CS 0001 # CS X+1
054307,000269: 43,3433 51377 NDX SKEEP7
054308,000270: 43,3434 60000 AD 0000 # AD X
054309,000271: 43,3435 03320 TC -1CHK
054310,000272: 43,3436 31360 CA ERESTORE # HAS ERASABLE BEEN RESTORED
054311,000273: 43,3437 00006 EXTEND
Page 1281 |
054313,000275: 43,3440 13464 BZF ELOOPFIN # YES, EXIT ERASLOOP.
054314,000276: 43,3441 00006 EXTEND
054315,000277: 43,3442 51377 NDX SKEEP7
054316,000278: 43,3443 40001 DCS 0000 # COMPLEMENT OF ADDRESS OF X AND X+1
054317,000279: 43,3444 51377 NDX SKEEP7
054318,000280: 43,3445 52001 DXCH 0000 # PUT COMPLEMENT OF ADDRESS OF X AND X+1
054319,000281: 43,3446 51377 NDX SKEEP7
054320,000282: 43,3447 40000 CS 0000 # CS X
054321,000283: 43,3450 51377 NDX SKEEP7
054322,000284: 43,3451 60001 AD 0001 # AD X+1
054323,000285: 43,3452 03320 TC -1CHK
054324,000286: 43,3453 31360 CA ERESTORE # HAS ERASABLE BEEN RESTORED
054325,000287: 43,3454 00006 EXTEND
054326,000288: 43,3455 13464 BZF ELOOPFIN # YES, EXIT ERASLOOP.
054327,000289: 43,3456 00006 EXTEND
054328,000290: 43,3457 31376 DCA SKEEP5
054329,000291: 43,3460 51377 NDX SKEEP7
054330,000292: 43,3461 52001 DXCH 0000 # PUT B(X) AND B(X+1) BACK INTO X AND X+1
054331,000293: 43,3462 34755 CA S+ZERO
054332,000294: 43,3463 55360 TS ERESTORE # IF RESTART, DO NOT RESTORE C(X), C(X+1)
054333,000295: 43,3464 00003 ELOOPFIN RELINT
054334,000296: 43,3465 03357 TC CHECKNJ # CHECK FOR NEW JOB
054335,000297: 43,3466 31374 CA SKEEP4 # REPLACES B(EBANK)
054336,000298: 43,3467 54003 TS EBANK
054337,000299: 43,3470 25377 INCR SKEEP7
054338,000300: 43,3471 41377 CS SKEEP7
054339,000301: 43,3472 61373 AD SKEEP3
054340,000302: 43,3473 00006 EXTEND
054341,000303: 43,3474 13476 BZF +2
054342,000304: 43,3475 03414 TC ERASLOOP # GO TO NEXT ADDRESS IN SAME BANK
054343,000305: 43,3476 11372 CCS SKEEP2
054344,000306: 43,3477 03407 TC NOEBANK
054345,000307: 43,3500 25372 INCR SKEEP2 # PUT +1 IN SKEEP2.
054346,000308: 43,3501 30003 CA EBANK
054347,000309: 43,3502 64743 AD SBIT9
054348,000310: 43,3503 54003 TS EBANK
054349,000311: 43,3504 63270 AD ERASCON5 # 76777, CHECK FOR BANK E2
054350,000312: 43,3505 00006 EXTEND
054351,000313: 43,3506 13402 BZF 2EBANK
054352,000314: 43,3507 10003 CCS EBANK
054353,000315: 43,3510 03375 TC E134567B # GO TO EBANKS 1,3,4,5,6, AND 7
054354,000316: 43,3511 35007 CA ERASCON6 # END OF ERASCHK
054355,000317: 43,3512 54003 TS EBANK
054356,000318:
054357,000319: # CNTRCHK PERFORMS A CS OF ALL REGISTERS FROM OCT. 60 THROUGH OCT. 10.
054358,000320: # INCLUDED ARE ALL COUNTERS, T6-1, CYCLE AND SHIFT, AND ALL RUPT REGISTERS
054359,000321:
054360,000322: 43,3513 34771 CNTRCHK CA CNTRCON # 00050
054361,000323: 43,3514 55372 CNTRLOOP TS SKEEP2
054362,000324: 43,3515 64750 AD SBIT4 # +10 OCTAL
054363,000325: 43,3516 50000 INDEX A
054364,000326: 43,3517 40000 CS 0000
Page 1282 |
054366,000328: 43,3520 11372 CCS SKEEP2
054367,000329: 43,3521 03514 TC CNTRLOOP
054368,000330:
054369,000331: # CYCLSHFT CHECKS THE CYCLE AND SHIFT REGISTERS
054370,000332:
054371,000333: 43,3522 33266 CYCLSHFT CA CONC+S1 # 25252
054372,000334: 43,3523 54020 TS CYR # C(CYR) = 12525
054373,000335: 43,3524 54022 TS CYL # C(CYL) = 52524
054374,000336: 43,3525 54021 TS SR # C(SR) = 12525
054375,000337: 43,3526 54023 TS EDOP # C(EDOP) = 00125
054376,000338: 43,3527 60020 AD CYR # 37777 C(CYR) = 45252
054377,000339: 43,3530 60022 AD CYL # 00-12524 C(CYL) = 25251
054378,000340: 43,3531 60021 AD SR # 00-25251 C(SR) = 05252
054379,000341: 43,3532 60023 AD EDOP # 00-25376 C(EDOP) = +0
054380,000342: 43,3533 63267 AD CONC+S2 # C(CONC+S2) = 52400
054381,000343: 43,3534 03320 TC -1CHK
054382,000344: 43,3535 60020 AD CYR # 45252
054383,000345: 43,3536 60022 AD CYL # 72523
054384,000346: 43,3537 60021 AD SR # 77775
054385,000347: 43,3540 60023 AD EDOP # 77775
054386,000348: 43,3541 64753 AD S+1 # 77776
054387,000349: 43,3542 03320 TC -1CHK
054388,000350:
054389,000351: 43,3543 25367 INCR SCOUNT +1
054390,000352: 43,3544 03326 TC SMODECHK
054391,000353:
054392,000354: # SKEEP1 HOLDS SUM
054393,000355: # SKEEP2 HOLDS PRESENT CONTENTS OF ADDRESS IN ROPECHK AND SHOWSUM ROUTINES
054394,000356: # SKEEP2 HOLDS BANK NUMBER IN LOW ORDER BITS DURING SHOWSUM DISPLAY
054395,000357: # SKEEP3 HOLDS PRESENT ADDRESS (00000 TO 01777 IN COMMON FIXED BANKS)
054396,000358: # (04000 TO 07777 IN FXFX BANKS)
054397,000359: # SKEEP3 HOLDS BUGGER WORD DURING SHOWSUM DISPLAY
054398,000360: # SKEEP4 HOLDS BANK NUMBER AND SUPER BANK NUMBER
054399,000361: # SKEEP5 COUNTS 2 SUCCESSIVE TC SELF WORDS
054400,000362: # SKEEP6 CONTROLS ROPECHK OR SHOWSUM OPTION
054401,000363: # SKEEP7 CONTROLS WHEN ROUNTINE IS IN COMMON FIXED OR FIXED FIXED BANKS
054402,000364:
054403,000365: 43,3545 34754 ROPECHK CA S-ZERO # *
054404,000366: 43,3546 55376 TS SKEEP6 # * -0 FOR ROPECHK.
054405,000367: 43,3547 34755 STSHOSUM CA S+ZERO # * SHOULD BE ROPECHK
054406,000368:
054407,000369: 43,3550 55374 TS SKEEP4 # BANK NUMBER
054408,000370: 43,3551 34753 CA S+1
054409,000371: 43,3552 55377 COMMFX TS SKEEP7
054410,000372: 43,3553 34755 CA S+ZERO
054411,000373: 43,3554 55371 TS SKEEP1
054412,000374: 43,3555 55373 TS SKEEP3
054413,000375: 43,3556 34753 CA S+1
054414,000376: 43,3557 55375 TS SKEEP5 # COUNTS DOWN 2 TC SELF WORDS
054415,000377: 43,3560 31374 COMADRS CA SKEEP4
054416,000378: 43,3561 54001 TS L # TO SET SUPER BANK
054417,000379: 43,3562 74350 MASK HI5
Page 1283 |
054419,000381: 43,3563 61373 AD SKEEP3
054420,000382: 43,3564 04651 TC SUPDACAL # SUPER DATA CALL
054421,000383: 43,3565 03610 TC ADSUM
054422,000384: 43,3566 64741 AD SBIT11 # 02000
054423,000385: 43,3567 03621 TC ADRSCHK
054424,000386:
054425,000387: 43,3570 40000 FXFX CS A
054426,000388: 43,3571 55377 TS SKEEP7
054427,000389: 43,3572 00006 EXTEND
054428,000390: 43,3573 13576 BZF +3
054429,000391: 43,3574 34740 CA SBIT12 # 04000, STARTING ADDRESS OF BANK 02
054430,000392: 43,3575 03577 TC +2
054431,000393: 43,3576 35020 CA SBNK03 # 06000, STARTING ADDRESS OF BANK 03
054432,000394: 43,3577 55373 TS SKEEP3
054433,000395: 43,3600 34755 CA S+ZERO
054434,000396: 43,3601 55371 TS SKEEP1
054435,000397: 43,3602 34753 CA S+1
054436,000398: 43,3603 55375 TS SKEEP5 # COUNTS DOWN 2 TC SELF WORDS
054437,000399: 43,3604 51373 FXADRS INDEX SKEEP3
054438,000400: 43,3605 30000 CA 0000
054439,000401: 43,3606 03610 TC ADSUM
054440,000402: 43,3607 03621 TC ADRSCHK
054441,000403:
054442,000404: 43,3610 55372 ADSUM TS SKEEP2
054443,000405: 43,3611 61371 AD SKEEP1
054444,000406: 43,3612 55371 TS SKEEP1
054445,000407: 43,3613 34755 CAF S+ZERO
054446,000408: 43,3614 61371 AD SKEEP1
054447,000409: 43,3615 55371 TS SKEEP1
054448,000410: 43,3616 41372 CS SKEEP2
054449,000411: 43,3617 61373 AD SKEEP3
054450,000412: 43,3620 00002 TC Q
054451,000413:
054452,000414: 43,3621 22000 ADRSCHK LXCH A
054453,000415: 43,3622 31373 CA SKEEP3
054454,000416: 43,3623 75012 MASK LOW10 # RELATIVE ADDRESS
054455,000417: 43,3624 64350 AD -MAXADRS # SUBTRACT MAX RELATIVE ADDRESS = 1777.
054456,000418: 43,3625 00006 EXTEND
054457,000419: 43,3626 13715 BZF SOPTION # CHECKSUM FINISHED IF LAST ADDRESS.
054458,000420: 43,3627 11375 CCS SKEEP5 # IS CHECKSUM FINISHED
054459,000421: 43,3630 03633 TC +3 # NO
054460,000422: 43,3631 03633 TC +2 # NO
054461,000423: 43,3632 03715 TC SOPTION # GO TO ROPECHK SHOWSUM OPTION
054462,000424: 43,3633 10001 CCS L # -0 MEANS A TC SELF WORD.
054463,000425: 43,3634 03643 TC CONTINU
054464,000426: 43,3635 03643 TC CONTINU
054465,000427: 43,3636 03643 TC CONTINU
054466,000428: 43,3637 11375 CCS SKEEP5
054467,000429: 43,3640 03644 TC CONTINU +1
054468,000430: 43,3641 37752 CA S-1
Page 1284 |
054470,000432: 43,3642 03644 TC CONTINU +1 # AD IN THE BUGGER WORD
054471,000433: 43,3643 34753 CONTINU CA S+1 # MAKE SURE TWO CONSECUTIVE TC SELF WORDS
054472,000434: 43,3644 55375 TS SKEEP5
054473,000435: 43,3645 11376 CCS SKEEP6 # *
054474,000436: 43,3646 10067 CCS NEWJOB # * +1, SHOWSUM
054475,000437: 43,3647 05122 TC CHANG1 # *
054476,000438: 43,3650 03652 TC +2 # *
054477,000439: 43,3651 03357 TC CHECKNJ # -0 IN SKEEP6 FOR ROPECHK
054478,000440:
054479,000441: 43,3652 25373 ADRS+1 INCR SKEEP3
054480,000442: 43,3653 11377 CCS SKEEP7
054481,000443: 43,3654 03560 TC COMADRS
054482,000444: 43,3655 03560 TC COMADRS
054483,000445: 43,3656 03604 TC FXADRS
054484,000446: 43,3657 03604 TC FXADRS
054485,000447:
054486,000448: 43,3660 41374 NXTBNK CS SKEEP4
054487,000449: 43,3661 63750 AD LSTBNKCH # LAST BANK TO BE CHECKED
054488,000450: 43,3662 00006 EXTEND
054489,000451: 43,3663 13152 BZF ENDSUMS # END OF SUMMING OF BANKS.
054490,000452: 43,3664 31374 CA SKEEP4
054491,000453: 43,3665 64741 AD SBIT11
054492,000454: 43,3666 55374 TS SKEEP4 # 37 TO 40 INCRMTS SKEEP4 BY END RND CARRY
054493,000455: 43,3667 03673 TC CHKSUPR
054494,000456: 43,3670 34735 17TO20 CA SBIT15
054495,000457: 43,3671 27374 ADS SKEEP4 # SET FOR BANK 20
054496,000458: 43,3672 03707 TC GONXTBNK
054497,000459: 43,3673 74350 CHKSUPR MASK HI5
054498,000460: 43,3674 00006 EXTEND
054499,000461: 43,3675 13705 BZF NXTSUPR # INCREMENT SUPER BANK
054500,000462: 43,3676 63265 27TO30 AD S13BITS
054501,000463: 43,3677 00006 EXTEND
054502,000464: 43,3700 13702 BZF +2 # BANK SET FOR 30
054503,000465: 43,3701 03707 TC GONXTBNK
054504,000466: 43,3702 33263 CA SIXTY # FIRST SUPER BANK
054505,000467: 43,3703 27374 ADS SKEEP4
054506,000468: 43,3704 03707 TC GONXTBNK
054507,000469: 43,3705 63264 NXTSUPR AD SUPRCON # SET BNK 30 + INCR SUPR BNK AND CANCEL
054508,000470: 43,3706 27374 ADS SKEEP4 # ERC BIT OF THE 37 TO 40 ADVANCE.
054509,000471: 43,3707 11377 GONXTBNK CCS SKEEP7
054510,000472: 43,3710 03552 TC COMMFX
054511,000473: 43,3711 34753 CA S+1
054512,000474: 43,3712 03570 TC FXFX
054513,000475: 43,3713 34745 CA SBIT7 # HAS TO BE LARGER THAN NO OF FXSW BANKS.
054514,000476: 43,3714 03552 TC COMMFX
054515,000477:
054516,000478: 43,3715 31374 SOPTION CA SKEEP4
054517,000479: 43,3716 74350 MASK HI5 # = BANK BITS
054518,000480: 43,3717 04331 TC LEFT5
054519,000481: 43,3720 54001 TS L # BANK NUMBER BEFORE SUPER BANK
Page 1285 |
054521,000483: 43,3721 31374 CA SKEEP4
054522,000484: 43,3722 74357 MASK S8BITS # = SUPER BANK BITS
054523,000485: 43,3723 00006 EXTEND
054524,000486: 43,3724 13732 BZF SOPT # BEFORE SUPER BANK
054525,000487: 43,3725 54021 TS SR # SUPER BANK NECESSARY
054526,000488: 43,3726 30001 CA L
054527,000489: 43,3727 74757 MASK SEVEN
054528,000490: 43,3730 60021 AD SR
054529,000491: 43,3731 54001 TS L # BANK NUMBER WITH SUPER BANK
054530,000492: 43,3732 31376 SOPT CA SKEEP6 # *
054531,000493: 43,3733 00006 EXTEND # *
054532,000494: 43,3734 13736 BZF +2 # * ON -0 CONTINUE WITH ROPE CHECK.
054533,000495: 43,3735 03134 TC SDISPLAY # * ON +1 GO TO DISPLAY OF SUM.
054534,000496: 43,3736 11371 CCS SKEEP1 # FORCE SUM TO ABSOLUTE VALUE.
054535,000497: 43,3737 03741 TC +2
054536,000498: 43,3740 03742 TC +2
054537,000499: 43,3741 64753 AD S+1
054538,000500: 43,3742 55371 TS SKEEP1
054539,000501: 43,3743 40001 BNKCHK CS L # = - BANK NUMBER
054540,000502: 43,3744 61371 AD SKEEP1
054541,000503: 43,3745 67752 AD S-1
054542,000504: 43,3746 03320 TC -1CHK # CHECK SUM
054543,000505: 43,3747 03660 TC NXTBNK
054544,000506:
054545,000507: 43,3750 0067 EBANK= NEWJOB
054546,000508: 43,3750 66100 LSTBNKCH BBCON* # * CONSTANT, LAST BANK.
054547,000509:
End of include-file AGC_BLOCK_TWO_SELF-CHECK.agc. Parent file is MAIN.agc