Source Code
These source-code files are part of a reconstructed copy of LM131 revision 1,
the final release of the Apollo 13 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The source reconstruction began with source code of Luminary 131 previously transcribed from a digitized copy of that program. A dump of the flight spare core rope memory module B5, part number 2010802-171, serial number RAY 411, was obtained. This module is the only module different between Luminary 131 and LM131 revision 1. The dump was disassembled and all changes were incorporated into these source files. Note that page numbers in the reconstructed code match those on the Luminary 131 printout, although the changed code would likely have changed page numbers for a real LM131 revision 1 listing. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. |
053612,000002: ## Copyright: Public domain.
053613,000003: ## Filename: AGC_BLOCK_TWO_SELF-CHECK.agc
053614,000004: ## Purpose: A section of LM131 revision 1.
053615,000005: ## It is part of the reconstructed source code for the final
053616,000006: ## release of the flight software for the Lunar Module's (LM)
053617,000007: ## Apollo Guidance Computer (AGC) for Apollo 13. The code has
053618,000008: ## been reconstructed from a listing of Luminary 131 and a dump
053619,000009: ## of a core rope memory module B5, part number 2010802-171,
053620,000010: ## which is the only module different between LM131 revision 1
053621,000011: ## and Luminary 131. The executable generated from this source
053622,000012: ## has been verified against the module dump, so while the names,
053623,000013: ## comments, and ordering may not be exactly correct, the
053624,000014: ## resulting binary is.
053625,000015: ## Reference: pp. 1276-1285
053626,000016: ## Assembler: yaYUL
053627,000017: ## Contact: Ron Burkey <info@sandroid.org>.
053628,000018: ## Website: www.ibiblio.org/apollo/index.html
053629,000019: ## Mod history: 2022-10-28 MAS Created from Luminary 131.
053630,000020:
Page 1276 |
053632,000022: # PROGRAM DESCRIPTION DATE 20 DECEMBER 1967
053633,000023: # PROGRAM NAME - SELF-CHECK LOG SECTION AGC BLOCK TWO SELF-CHECK
053634,000024: # MOD NO - 1 ASSEMBLY SUBROUTINE UTILITYM REV 25
053635,000025: # MOD BY - GAUNTT
053636,000026:
053637,000027: # FUNCTIONAL DESCRIPTION
053638,000028: # PROGRAM HAS TWO MAIN PARTS. THE FIRST IS SELF-CHECK WHICH RUNS AS A ZERO PRIORITY JOB WITH NO CORE SET, AS
053639,000029: # PART OF THE BACK-UP IDLE LOOP. THE SECOND IS SHOW-BANKSUM WHICH RUNS AS A REGULAR EXECUTIVE JOB WITH ITS OWN
053640,000030: # STARTING VERB.
053641,000031:
053642,000032: # THE PURPOSE OF SELF-CHECK IS TO CHECK OUT VARIOUS PARTS OF THE COMPUTER AS OUTLINED BELOW IN THE OPTIONS.
053643,000033:
053644,000034: # THE PURPOSE OF SHOW-BANKSUM IS TO DISPLAY THE SUM OF EACH BANK, ONE AT A TIME.
053645,000035:
053646,000036: # IN ALL THERE ARE 7 POSSIBLE OPTIONS IN THIS BLOCK II VERSION OF SELF-CHECK. MORE DETAIL DESCRIPTION MAY BE
053647,000037: # FOUND IN E-2065 BLOCK II AGC SELF-CHECK AND SHOW BANKSUM BY EDWIN D. SMALLY DECEMBER 1966, AND ADDENDA 2 AND 3.
053648,000038:
053649,000039: # THE DIFFERENT OPTIONS ARE CONTROLLED BY PUTTING DIFFERENT NUMBERS IN THE SMODE REGISTER (NOUN 27). BELOW IS
053650,000040: # A DESCRIPTION OF WHAT PARTS OF THE COMPUTER THAT ARE CHECKED BY THE OPTIONS, AND THE CORRESPONDING NUMBER, IN
053651,000041: # OCTAL, TO LOAD INTO SMODE.
053652,000042: # +-4 ERASABLE MEMORY
053653,000043: # +-5 FIXED MEMORY
053654,000044: # +-1,2,3,6,7,10 EVERYTHING IN OPTIONS 4 AND 5.
053655,000045: # -0 SAME AS +-10 UNTIL AN ERROR IS DETECTED.
053656,000046: # +0 NO CHECK, PUTS COMPUTER INTO THE BACKUP IDLE LOOP.
053657,000047:
053658,000048: # WARNINGS
053659,000049: # USE OF E MEMORY RESERVED FOR SELF-CHECK (EVEN IN IDLE LOOP) AS TEMP STORAGE BY OTHER PROGRAMS IS DANGEROUS.
053660,000050: # SMODE SET GREATER THAN OCT 10 PUTS COMPUTER INTO BACKUP IDLE LOOP.
053661,000051:
053662,000052: # CALLING SEQUENCE
053663,000053: # TO CALL SELF-CHECK KEY IN
053664,000054: # V 21 N 27 E OPTION NUMBER E
053665,000055: # TO CALL SHOW-BANKSUM KEY IN
053666,000056: # V 91 E DISPLAYS FIRST BANK
053667,000057: # V 33 E PROCEED, DISPLAYS NEXT BANK
053668,000058:
053669,000059: # EXIT MODES, NORMAL AND ALARM
053670,000060: # SELF-CHECK NORMALLY CONTINUES INDEFINITELY UNLESS THERE IS AN ERROR DETECTED. IF SO + OPTION NUMBERS PUT
053671,000061: # COMPUTER INTO BACKUP IDLE LOOP, - OPTION NUMBERS RESTART THE OPTION.
053672,000062:
053673,000063: # THE -0 OPTION PROCEEDS FROM THE LINE FOLLOWING THE LINE WHERE THE ERROR WAS DETECTED.
053674,000064:
053675,000065: # SHOW-BANKSUM PROCEEDS UNTIL A TERMINATE IS KEYED IN (V 34 E). THE COMPUTER IS PUT INTO THE BACKUP IDLE LOOP
053676,000066:
053677,000067: # OUTPUT
Page 1277 |
053679,000069: # SELF-CHECK UPON DETECTING AN ERROR LOADS THE SELF-CHECK ALARM CONSTANT (01102) INTO THE FAILREG SET AND
053680,000070: # TURNS ON THE ALARM LIGHT. THE OPERATOR MAY THEN DISPLAY THE THREE FAILREGS BY KEYING IN V 05 N 09 E. FOR FURTHER
053681,000071: # 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,
053682,000072: # IN R2 THE BBCON OF SELF-CHECK, AND IN R3 THE TOTAL NUMBER OF ERRORS DETECTED BY SELF-CHECK SINCE THE LAST MAN
053683,000073: # INITIATED FRESH START (SLAP1).
053684,000074:
053685,000075: # SHOW-BANKSUM STARTING WITH BANK 0 DISPLAYS IN R1 THE BANK SUM (A +-NUMBER EQUAL TO THE BANK NUMBER), IN R2
053686,000076: # THE BANK NUMBER, AND IN R3 THE BUGGER WORD.
053687,000077:
053688,000078: # ERASABLE INITIALIZATION REQUIRED
053689,000079: # ACCOMPLISHED BY FRESH START
053690,000080: # SMODE SET TO +0
053691,000081:
053692,000082: # DEBRIS
053693,000083: # ALL EXITS FROM THE CHECK OF ERASABLE (ERASCHK) RESTORE ORIGINAL CONTENTS TO REGISTERS UNDER CHECK.
053694,000084: # EXCEPTION IS A RESTART. RESTART THAT OCCURS DURING ERASCHK RESTORES ERASABLE, UNLESS THERE IS EVIDENCE TO DOUBT
053695,000085: # E MEMORY, IN WHICH CASE PROGRAM THEN DOES A FRESH START (DOFSTART).
053696,000086:
053697,000087: 25,3757 BANK 25
053698,000088: 43,2000 SETLOC SELFCHEC
053699,000089: 43,2000 BANK
053700,000090:
053701,000091: 43,3257 COUNT* $$/SELF
053702,000092: 43,3257 4753 SBIT1 EQUALS BIT1
053703,000093: 43,3257 4752 SBIT2 EQUALS BIT2
053704,000094: 43,3257 4751 SBIT3 EQUALS BIT3
053705,000095: 43,3257 4750 SBIT4 EQUALS BIT4
053706,000096: 43,3257 4747 SBIT5 EQUALS BIT5
053707,000097: 43,3257 4746 SBIT6 EQUALS BIT6
053708,000098: 43,3257 4745 SBIT7 EQUALS BIT7
053709,000099: 43,3257 4744 SBIT8 EQUALS BIT8
053710,000100: 43,3257 4743 SBIT9 EQUALS BIT9
053711,000101: 43,3257 4742 SBIT10 EQUALS BIT10
053712,000102: 43,3257 4741 SBIT11 EQUALS BIT11
053713,000103: 43,3257 4740 SBIT12 EQUALS BIT12
053714,000104: 43,3257 4737 SBIT13 EQUALS BIT13
053715,000105: 43,3257 4736 SBIT14 EQUALS BIT14
053716,000106: 43,3257 4735 SBIT15 EQUALS BIT15
053717,000107:
053718,000108: 43,3257 4755 S+ZERO EQUALS ZERO
053719,000109: 43,3257 4753 S+1 EQUALS BIT1
053720,000110: 43,3257 4752 S+2 EQUALS BIT2
053721,000111: 43,3257 6250 S+3 EQUALS THREE
053722,000112: 43,3257 4751 S+4 EQUALS FOUR
053723,000113: 43,3257 4756 S+5 EQUALS FIVE
053724,000114: 43,3257 6245 S+6 EQUALS SIX
Page 1278 |
053726,000116: 43,3257 4757 S+7 EQUALS SEVEN
053727,000117: 43,3257 4357 S8BITS EQUALS LOW8 # 00377
053728,000118: 43,3257 4771 CNTRCON = OCT50 # USED IN CNTRCHK
053729,000119: 43,3257 00061 ERASCON1 OCTAL 00061 # USED IN ERASCHK
053730,000120: 43,3260 01373 ERASCON2 OCTAL 01373 # USED IN ERASCHK
053731,000121: 43,3261 5007 ERASCON6 = OCT1400 # USED IN ERASCHK
053732,000122: 43,3261 01461 ERASCON3 OCTAL 01461 # USED IN ERASCHK
053733,000123: 43,3262 01773 ERASCON4 OCTAL 01773 # USED IN ERASCHK
053734,000124: 43,3263 5012 S10BITS EQUALS LOW10 # 01777, USED IN ERASCHK
053735,000125: 43,3263 5020 SBNK03 EQUALS PRIO6 # 06000, USED IN ROPECHK
053736,000126: 43,3263 4350 -MAXADRS = HI5 # FOR ROPECHK
053737,000127: 43,3263 00060 SIXTY OCTAL 00060
053738,000128: 43,3264 60017 SUPRCON OCTAL 60017 # USED IN ROPECHK
053739,000129: 43,3265 17777 S13BITS OCTAL 17777
053740,000130: 43,3266 25252 CONC+S1 OCTAL 25252 # USED IN CYCLSHFT
053741,000131: 43,3267 52400 CONC+S2 OCTAL 52400 # USED IN CYCLSHFT
053742,000132: 43,3270 76777 ERASCON5 OCTAL 76777
053743,000133: 43,3271 5650 S-7 = OCT77770
053744,000134: 43,3271 6115 S-4 EQUALS NEG4
053745,000135: 43,3271 7750 S-3 EQUALS NEG3
053746,000136: 43,3271 7751 S-2 EQUALS NEG2
053747,000137: 43,3271 7752 S-1 EQUALS NEGONE
053748,000138: 43,3271 4754 S-ZERO EQUALS NEG0
053749,000139:
053750,000140: 43,3271 E3,1400 EBANK= LST1
053751,000141: 43,3271 01371 ADRS1 ADRES SKEEP1
053752,000142: 43,3272 03363 SELFADRS ADRES SELFCHK # SELFCHK RETURN ADDRESS. SHOULD BE PUT
053753,000143: # IN SELFRET WHEN GOING FROM SELFCHK TO
053754,000144: # SHOWSUM AND PUT IN SKEEP1 WHEN GOING
053755,000145: # FROM SHOWSUM TO SELF-CHECK.
053756,000146:
053757,000147: 43,3273 31360 PRERRORS CA ERESTORE # IS IT NECESSARY TO RESTORE ERASABLE
053758,000148: 43,3274 00006 EXTEND
053759,000149: 43,3275 13304 BZF ERRORS # NO
053760,000150: 43,3276 00006 EXTEND
053761,000151: 43,3277 31376 DCA SKEEP5
053762,000152: 43,3300 51377 INDEX SKEEP7
053763,000153: 43,3301 52001 DXCH 0000 # RESTORE THE TWO ERASABLE REGISTERS
053764,000154: 43,3302 34755 CA S+ZERO
053765,000155: 43,3303 55360 TS ERESTORE
053766,000156: 43,3304 00004 ERRORS INHINT
053767,000157: 43,3305 30002 CA Q
053768,000158: 43,3306 55357 TS SFAIL # SAVE Q FOR FAILURE LOCATION
053769,000159: 43,3307 55363 TS ALMCADR # FOR DISPLAY WITH BBANK AND ERCOUNT
053770,000160: 43,3310 25365 INCR ERCOUNT # KEEP TRACK OF NUMBER OF MALFUNCTIONS.
053771,000161: 43,3311 05571 TCALARM2 TC ALARM2
053772,000162: 43,3312 01102 OCT 01102 # SELF-CHECK MALFUNCTION INDICATOR
053773,000163: 43,3313 11362 CCS SMODE
053774,000164: 43,3314 34755 SIDLOOP CA S+ZERO
053775,000165: 43,3315 55362 TS SMODE
Page 1279 |
053777,000167: 43,3316 03363 TC SELFCHK # GO TO IDLE LOOP
053778,000168: 43,3317 01357 TC SFAIL # CONTINUE WITH SELF-CHECK
053779,000169:
053780,000170: 43,3320 10000 -1CHK CCS A
053781,000171: 43,3321 13273 TCF PRERRORS
053782,000172: 43,3322 13273 TCF PRERRORS
053783,000173: 43,3323 10000 CCS A
053784,000174: 43,3324 13273 TCF PRERRORS
053785,000175: 43,3325 00002 TC Q
053786,000176:
053787,000177: 43,3326 00006 SMODECHK EXTEND
053788,000178: 43,3327 23371 QXCH SKEEP1
053789,000179: 43,3330 03357 TC CHECKNJ # CHECK FOR NEW JOB
053790,000180: 43,3331 11362 CCS SMODE
053791,000181: 43,3332 03337 TC SOPTIONS
053792,000182: 43,3333 03330 TC SMODECHK +2 # TO BACKUP IDLE LOOP
053793,000183: 43,3334 03337 TC SOPTIONS
053794,000184: 43,3335 25366 INCR SCOUNT
053795,000185: 43,3336 01371 TC SKEEP1 # CONTINUE WITH SELF-CHECK
053796,000186:
053797,000187: 43,3337 65650 SOPTIONS AD S-7
053798,000188: 43,3340 00006 EXTEND
053799,000189: 43,3341 63343 BZMF +2 # FOR OPTIONS BELOW NINE.
053800,000190: 43,3342 03314 BNKOPTN TC SIDLOOP # ILLEGAL OPTION. GO TO IDLE LOOP.
053801,000191: 43,3343 25366 INCR SCOUNT # FOR OPTIONS BELOW NINE.
053802,000192: 43,3344 64757 AD S+7
053803,000193:
053804,000194: 43,3345 50000 INDEX A
053805,000195: 43,3346 03347 TC SOPTION1
053806,000196: 43,3347 01371 SOPTION1 TC SKEEP1 # WAS TC+TCF
053807,000197: 43,3350 01371 SOPTION2 TC SKEEP1 # WAS IN:OUT1
053808,000198: 43,3351 01371 SOPTION3 TC SKEEP1 # WAS COUNTCHK
053809,000199: 43,3352 03364 SOPTION4 TC ERASCHK
053810,000200: 43,3353 03545 SOPTION5 TC ROPECHK
053811,000201: 43,3354 01371 SOPTION6 TC SKEEP1
053812,000202: 43,3355 01371 SOPTION7 TC SKEEP1
053813,000203: 43,3356 01371 SOPTON10 TC SKEEP1 # CONTINUE WITH SELF-CHECK
053814,000204:
053815,000205: 43,3357 00006 CHECKNJ EXTEND
053816,000206: 43,3360 23361 QXCH SELFRET # SAVE RETURN ADDRESS WHILE TESTING NEWJOB
053817,000207: 43,3361 04635 TC POSTJUMP # TO SEE IF ANY JOBS HAVE BECOME ACTIVE.
053818,000208: 43,3362 03215 CADR ADVAN
053819,000209:
053820,000210: 43,3363 03326 SELFCHK TC SMODECHK # ** CHARLEY, COME IN HERE
053821,000211:
053822,000212: # SKEEP7 HOLDS LOWEST OF TWO ADDRESSES BEING CHECKED.
053823,000213: # SKEEP6 HOLDS B(X+1).
053824,000214: # SKEEP5 HOLDS B(X).
053825,000215: # SKEEP4 HOLDS C(EBANK) DURING ERASLOOP AND CHECKNJ.
053826,000216: # SKEEP3 HOLDS LAST ADDRESS BEING CHECKED (HIGHEST ADDRESS).
Page 1280 |
053828,000218: # SKEEP2 CONTROLS CHECKING OF NON-SWITCHABLE ERASABLE MEMORY WITH BANK NUMBERS IN EB.
053829,000219: # ERASCHK TAKES APPROXMATELY 7 SECONDS
053830,000220:
053831,000221: 43,3364 34753 ERASCHK CA S+1
053832,000222: 43,3365 55372 TS SKEEP2
053833,000223: 43,3366 34755 0EBANK CA S+ZERO
053834,000224: 43,3367 54003 TS EBANK
053835,000225: 43,3370 33261 CA ERASCON3 # 01461
053836,000226: 43,3371 55377 TS SKEEP7 # STARTING ADDRESS
053837,000227: 43,3372 35012 CA S10BITS # 01777
053838,000228: 43,3373 55373 TS SKEEP3 # LAST ADDRESS CHECKED
053839,000229: 43,3374 03414 TC ERASLOOP
053840,000230:
053841,000231: 43,3375 35007 E134567B CA ERASCON6 # 01400
053842,000232: 43,3376 55377 TS SKEEP7 # STARTING ADDRESS
053843,000233: 43,3377 35012 CA S10BITS # 01777
053844,000234: 43,3400 55373 TS SKEEP3 # LAST ADDRESS CHECKED
053845,000235: 43,3401 03414 TC ERASLOOP
053846,000236:
053847,000237: 43,3402 35007 2EBANK CA ERASCON6 # 01400
053848,000238: 43,3403 55377 TS SKEEP7 # STARTING ADDRESS
053849,000239: 43,3404 33262 CA ERASCON4 # 01773
053850,000240: 43,3405 55373 TS SKEEP3 # LAST ADDRESS CHECKED
053851,000241: 43,3406 03414 TC ERASLOOP
053852,000242:
053853,000243: 43,3407 55372 NOEBANK TS SKEEP2 # +0
053854,000244: 43,3410 33257 CA ERASCON1 # 00061
053855,000245: 43,3411 55377 TS SKEEP7 # STARTING ADDRESS
053856,000246: 43,3412 33260 CA ERASCON2 # 01373
053857,000247: 43,3413 55373 TS SKEEP3 # LAST ADDRESS CHECKED
053858,000248:
053859,000249: 43,3414 00004 ERASLOOP INHINT
053860,000250: 43,3415 30003 CA EBANK # STORES C(EBANK)
053861,000251: 43,3416 55374 TS SKEEP4
053862,000252: 43,3417 00006 EXTEND
053863,000253: 43,3420 51377 NDX SKEEP7
053864,000254: 43,3421 30001 DCA 0000
053865,000255: 43,3422 53376 DXCH SKEEP5 # STORES C(X) AND C(X+1) IN SKEEP6 AND 5.
053866,000256: 43,3423 31377 CA SKEEP7
053867,000257: 43,3424 55360 TS ERESTORE # IF RESTART, RESTORE C(X) AND C(X+1)
053868,000258: 43,3425 54001 TS L
053869,000259: 43,3426 24001 INCR L
053870,000260: 43,3427 50000 NDX A
053871,000261: 43,3430 52001 DXCH 0000 # PUTS OWN ADDRESS IN X AND X +1
053872,000262: 43,3431 51377 NDX SKEEP7
053873,000263: 43,3432 40001 CS 0001 # CS X+1
053874,000264: 43,3433 51377 NDX SKEEP7
053875,000265: 43,3434 60000 AD 0000 # AD X
053876,000266: 43,3435 03320 TC -1CHK
053877,000267: 43,3436 31360 CA ERESTORE # HAS ERASABLE BEEN RESTORED
053878,000268: 43,3437 00006 EXTEND
Page 1281 |
053880,000270: 43,3440 13464 BZF ELOOPFIN # YES, EXIT ERASLOOP.
053881,000271: 43,3441 00006 EXTEND
053882,000272: 43,3442 51377 NDX SKEEP7
053883,000273: 43,3443 40001 DCS 0000 # COMPLEMENT OF ADDRESS OF X AND X+1
053884,000274: 43,3444 51377 NDX SKEEP7
053885,000275: 43,3445 52001 DXCH 0000 # PUT COMPLEMENT OF ADDRESS OF X AND X+1
053886,000276: 43,3446 51377 NDX SKEEP7
053887,000277: 43,3447 40000 CS 0000 # CS X
053888,000278: 43,3450 51377 NDX SKEEP7
053889,000279: 43,3451 60001 AD 0001 # AD X+1
053890,000280: 43,3452 03320 TC -1CHK
053891,000281: 43,3453 31360 CA ERESTORE # HAS ERASABLE BEEN RESTORED
053892,000282: 43,3454 00006 EXTEND
053893,000283: 43,3455 13464 BZF ELOOPFIN # YES, EXIT ERASLOOP.
053894,000284: 43,3456 00006 EXTEND
053895,000285: 43,3457 31376 DCA SKEEP5
053896,000286: 43,3460 51377 NDX SKEEP7
053897,000287: 43,3461 52001 DXCH 0000 # PUT B(X) AND B(X+1) BACK INTO X AND X+1
053898,000288: 43,3462 34755 CA S+ZERO
053899,000289: 43,3463 55360 TS ERESTORE # IF RESTART, DO NOT RESTORE C(X), C(X+1)
053900,000290: 43,3464 00003 ELOOPFIN RELINT
053901,000291: 43,3465 03357 TC CHECKNJ # CHECK FOR NEW JOB
053902,000292: 43,3466 31374 CA SKEEP4 # REPLACES B(EBANK)
053903,000293: 43,3467 54003 TS EBANK
053904,000294: 43,3470 25377 INCR SKEEP7
053905,000295: 43,3471 41377 CS SKEEP7
053906,000296: 43,3472 61373 AD SKEEP3
053907,000297: 43,3473 00006 EXTEND
053908,000298: 43,3474 13476 BZF +2
053909,000299: 43,3475 03414 TC ERASLOOP # GO TO NEXT ADDRESS IN SAME BANK
053910,000300: 43,3476 11372 CCS SKEEP2
053911,000301: 43,3477 03407 TC NOEBANK
053912,000302: 43,3500 25372 INCR SKEEP2 # PUT +1 IN SKEEP2.
053913,000303: 43,3501 30003 CA EBANK
053914,000304: 43,3502 64743 AD SBIT9
053915,000305: 43,3503 54003 TS EBANK
053916,000306: 43,3504 63270 AD ERASCON5 # 76777, CHECK FOR BANK E2
053917,000307: 43,3505 00006 EXTEND
053918,000308: 43,3506 13402 BZF 2EBANK
053919,000309: 43,3507 10003 CCS EBANK
053920,000310: 43,3510 03375 TC E134567B # GO TO EBANKS 1,3,4,5,6, AND 7
053921,000311: 43,3511 35007 CA ERASCON6 # END OF ERASCHK
053922,000312: 43,3512 54003 TS EBANK
053923,000313:
053924,000314: # CNTRCHK PERFORMS A CS OF ALL REGISTERS FROM OCT. 60 THROUGH OCT. 10.
053925,000315: # INCLUDED ARE ALL COUNTERS, T6-1, CYCLE AND SHIFT, AND ALL RUPT REGISTERS
053926,000316:
053927,000317: 43,3513 34771 CNTRCHK CA CNTRCON # 00050
053928,000318: 43,3514 55372 CNTRLOOP TS SKEEP2
053929,000319: 43,3515 64750 AD SBIT4 # +10 OCTAL
053930,000320: 43,3516 50000 INDEX A
053931,000321: 43,3517 40000 CS 0000
Page 1282 |
053933,000323: 43,3520 11372 CCS SKEEP2
053934,000324: 43,3521 03514 TC CNTRLOOP
053935,000325:
053936,000326: # CYCLSHFT CHECKS THE CYCLE AND SHIFT REGISTERS
053937,000327:
053938,000328: 43,3522 33266 CYCLSHFT CA CONC+S1 # 25252
053939,000329: 43,3523 54020 TS CYR # C(CYR) = 12525
053940,000330: 43,3524 54022 TS CYL # C(CYL) = 52524
053941,000331: 43,3525 54021 TS SR # C(SR) = 12525
053942,000332: 43,3526 54023 TS EDOP # C(EDOP) = 00125
053943,000333: 43,3527 60020 AD CYR # 37777 C(CYR) = 45252
053944,000334: 43,3530 60022 AD CYL # 00-12524 C(CYL) = 25251
053945,000335: 43,3531 60021 AD SR # 00-25251 C(SR) = 05252
053946,000336: 43,3532 60023 AD EDOP # 00-25376 C(EDOP) = +0
053947,000337: 43,3533 63267 AD CONC+S2 # C(CONC+S2) = 52400
053948,000338: 43,3534 03320 TC -1CHK
053949,000339: 43,3535 60020 AD CYR # 45252
053950,000340: 43,3536 60022 AD CYL # 72523
053951,000341: 43,3537 60021 AD SR # 77775
053952,000342: 43,3540 60023 AD EDOP # 77775
053953,000343: 43,3541 64753 AD S+1 # 77776
053954,000344: 43,3542 03320 TC -1CHK
053955,000345:
053956,000346: 43,3543 25367 INCR SCOUNT +1
053957,000347: 43,3544 03326 TC SMODECHK
053958,000348:
053959,000349: # SKEEP1 HOLDS SUM
053960,000350: # SKEEP2 HOLDS PRESENT CONTENTS OF ADDRESS IN ROPECHK AND SHOWSUM ROUTINES
053961,000351: # SKEEP2 HOLDS BANK NUMBER IN LOW ORDER BITS DURING SHOWSUM DISPLAY
053962,000352: # SKEEP3 HOLDS PRESENT ADDRESS (00000 TO 01777 IN COMMON FIXED BANKS)
053963,000353: # (04000 TO 07777 IN FXFX BANKS)
053964,000354: # SKEEP3 HOLDS BUGGER WORD DURING SHOWSUM DISPLAY
053965,000355: # SKEEP4 HOLDS BANK NUMBER AND SUPER BANK NUMBER
053966,000356: # SKEEP5 COUNTS 2 SUCCESSIVE TC SELF WORDS
053967,000357: # SKEEP6 CONTROLS ROPECHK OR SHOWSUM OPTION
053968,000358: # SKEEP7 CONTROLS WHEN ROUNTINE IS IN COMMON FIXED OR FIXED FIXED BANKS
053969,000359:
053970,000360: 43,3545 34754 ROPECHK CA S-ZERO # *
053971,000361: 43,3546 55376 TS SKEEP6 # * -0 FOR ROPECHK.
053972,000362: 43,3547 34755 STSHOSUM CA S+ZERO # * SHOULD BE ROPECHK
053973,000363:
053974,000364: 43,3550 55374 TS SKEEP4 # BANK NUMBER
053975,000365: 43,3551 34753 CA S+1
053976,000366: 43,3552 55377 COMMFX TS SKEEP7
053977,000367: 43,3553 34755 CA S+ZERO
053978,000368: 43,3554 55371 TS SKEEP1
053979,000369: 43,3555 55373 TS SKEEP3
053980,000370: 43,3556 34753 CA S+1
053981,000371: 43,3557 55375 TS SKEEP5 # COUNTS DOWN 2 TC SELF WORDS
053982,000372: 43,3560 31374 COMADRS CA SKEEP4
053983,000373: 43,3561 54001 TS L # TO SET SUPER BANK
053984,000374: 43,3562 74350 MASK HI5
Page 1283 |
053986,000376: 43,3563 61373 AD SKEEP3
053987,000377: 43,3564 04651 TC SUPDACAL # SUPER DATA CALL
053988,000378: 43,3565 03610 TC ADSUM
053989,000379: 43,3566 64741 AD SBIT11 # 02000
053990,000380: 43,3567 03621 TC ADRSCHK
053991,000381:
053992,000382: 43,3570 40000 FXFX CS A
053993,000383: 43,3571 55377 TS SKEEP7
053994,000384: 43,3572 00006 EXTEND
053995,000385: 43,3573 13576 BZF +3
053996,000386: 43,3574 34740 CA SBIT12 # 04000, STARTING ADDRESS OF BANK 02
053997,000387: 43,3575 03577 TC +2
053998,000388: 43,3576 35020 CA SBNK03 # 06000, STARTING ADDRESS OF BANK 03
053999,000389: 43,3577 55373 TS SKEEP3
054000,000390: 43,3600 34755 CA S+ZERO
054001,000391: 43,3601 55371 TS SKEEP1
054002,000392: 43,3602 34753 CA S+1
054003,000393: 43,3603 55375 TS SKEEP5 # COUNTS DOWN 2 TC SELF WORDS
054004,000394: 43,3604 51373 FXADRS INDEX SKEEP3
054005,000395: 43,3605 30000 CA 0000
054006,000396: 43,3606 03610 TC ADSUM
054007,000397: 43,3607 03621 TC ADRSCHK
054008,000398:
054009,000399: 43,3610 55372 ADSUM TS SKEEP2
054010,000400: 43,3611 61371 AD SKEEP1
054011,000401: 43,3612 55371 TS SKEEP1
054012,000402: 43,3613 34755 CAF S+ZERO
054013,000403: 43,3614 61371 AD SKEEP1
054014,000404: 43,3615 55371 TS SKEEP1
054015,000405: 43,3616 41372 CS SKEEP2
054016,000406: 43,3617 61373 AD SKEEP3
054017,000407: 43,3620 00002 TC Q
054018,000408:
054019,000409: 43,3621 22000 ADRSCHK LXCH A
054020,000410: 43,3622 31373 CA SKEEP3
054021,000411: 43,3623 75012 MASK LOW10 # RELATIVE ADDRESS
054022,000412: 43,3624 64350 AD -MAXADRS # SUBTRACT MAX RELATIVE ADDRESS = 1777.
054023,000413: 43,3625 00006 EXTEND
054024,000414: 43,3626 13715 BZF SOPTION # CHECKSUM FINISHED IF LAST ADDRESS.
054025,000415: 43,3627 11375 CCS SKEEP5 # IS CHECKSUM FINISHED
054026,000416: 43,3630 03633 TC +3 # NO
054027,000417: 43,3631 03633 TC +2 # NO
054028,000418: 43,3632 03715 TC SOPTION # GO TO ROPECHK SHOWSUM OPTION
054029,000419: 43,3633 10001 CCS L # -0 MEANS A TC SELF WORD.
054030,000420: 43,3634 03643 TC CONTINU
054031,000421: 43,3635 03643 TC CONTINU
054032,000422: 43,3636 03643 TC CONTINU
054033,000423: 43,3637 11375 CCS SKEEP5
054034,000424: 43,3640 03644 TC CONTINU +1
054035,000425: 43,3641 37752 CA S-1
Page 1284 |
054037,000427: 43,3642 03644 TC CONTINU +1 # AD IN THE BUGGER WORD
054038,000428: 43,3643 34753 CONTINU CA S+1 # MAKE SURE TWO CONSECUTIVE TC SELF WORDS
054039,000429: 43,3644 55375 TS SKEEP5
054040,000430: 43,3645 11376 CCS SKEEP6 # *
054041,000431: 43,3646 10067 CCS NEWJOB # * +1, SHOWSUM
054042,000432: 43,3647 05122 TC CHANG1 # *
054043,000433: 43,3650 03652 TC +2 # *
054044,000434: 43,3651 03357 TC CHECKNJ # -0 IN SKEEP6 FOR ROPECHK
054045,000435:
054046,000436: 43,3652 25373 ADRS+1 INCR SKEEP3
054047,000437: 43,3653 11377 CCS SKEEP7
054048,000438: 43,3654 03560 TC COMADRS
054049,000439: 43,3655 03560 TC COMADRS
054050,000440: 43,3656 03604 TC FXADRS
054051,000441: 43,3657 03604 TC FXADRS
054052,000442:
054053,000443: 43,3660 41374 NXTBNK CS SKEEP4
054054,000444: 43,3661 63750 AD LSTBNKCH # LAST BANK TO BE CHECKED
054055,000445: 43,3662 00006 EXTEND
054056,000446: 43,3663 13152 BZF ENDSUMS # END OF SUMMING OF BANKS.
054057,000447: 43,3664 31374 CA SKEEP4
054058,000448: 43,3665 64741 AD SBIT11
054059,000449: 43,3666 55374 TS SKEEP4 # 37 TO 40 INCRMTS SKEEP4 BY END RND CARRY
054060,000450: 43,3667 03673 TC CHKSUPR
054061,000451: 43,3670 34735 17TO20 CA SBIT15
054062,000452: 43,3671 27374 ADS SKEEP4 # SET FOR BANK 20
054063,000453: 43,3672 03707 TC GONXTBNK
054064,000454: 43,3673 74350 CHKSUPR MASK HI5
054065,000455: 43,3674 00006 EXTEND
054066,000456: 43,3675 13705 BZF NXTSUPR # INCREMENT SUPER BANK
054067,000457: 43,3676 63265 27TO30 AD S13BITS
054068,000458: 43,3677 00006 EXTEND
054069,000459: 43,3700 13702 BZF +2 # BANK SET FOR 30
054070,000460: 43,3701 03707 TC GONXTBNK
054071,000461: 43,3702 33263 CA SIXTY # FIRST SUPER BANK
054072,000462: 43,3703 27374 ADS SKEEP4
054073,000463: 43,3704 03707 TC GONXTBNK
054074,000464: 43,3705 63264 NXTSUPR AD SUPRCON # SET BNK 30 + INCR SUPR BNK AND CANCEL
054075,000465: 43,3706 27374 ADS SKEEP4 # ERC BIT OF THE 37 TO 40 ADVANCE.
054076,000466: 43,3707 11377 GONXTBNK CCS SKEEP7
054077,000467: 43,3710 03552 TC COMMFX
054078,000468: 43,3711 34753 CA S+1
054079,000469: 43,3712 03570 TC FXFX
054080,000470: 43,3713 34745 CA SBIT7 # HAS TO BE LARGER THAN NO OF FXSW BANKS.
054081,000471: 43,3714 03552 TC COMMFX
054082,000472:
054083,000473: 43,3715 31374 SOPTION CA SKEEP4
054084,000474: 43,3716 74350 MASK HI5 # = BANK BITS
054085,000475: 43,3717 04331 TC LEFT5
054086,000476: 43,3720 54001 TS L # BANK NUMBER BEFORE SUPER BANK
Page 1285 |
054088,000478: 43,3721 31374 CA SKEEP4
054089,000479: 43,3722 74357 MASK S8BITS # = SUPER BANK BITS
054090,000480: 43,3723 00006 EXTEND
054091,000481: 43,3724 13732 BZF SOPT # BEFORE SUPER BANK
054092,000482: 43,3725 54021 TS SR # SUPER BANK NECESSARY
054093,000483: 43,3726 30001 CA L
054094,000484: 43,3727 74757 MASK SEVEN
054095,000485: 43,3730 60021 AD SR
054096,000486: 43,3731 54001 TS L # BANK NUMBER WITH SUPER BANK
054097,000487: 43,3732 31376 SOPT CA SKEEP6 # *
054098,000488: 43,3733 00006 EXTEND # *
054099,000489: 43,3734 13736 BZF +2 # * ON -0 CONTINUE WITH ROPE CHECK.
054100,000490: 43,3735 03134 TC SDISPLAY # * ON +1 GO TO DISPLAY OF SUM.
054101,000491: 43,3736 11371 CCS SKEEP1 # FORCE SUM TO ABSOLUTE VALUE.
054102,000492: 43,3737 03741 TC +2
054103,000493: 43,3740 03742 TC +2
054104,000494: 43,3741 64753 AD S+1
054105,000495: 43,3742 55371 TS SKEEP1
054106,000496: 43,3743 40001 BNKCHK CS L # = - BANK NUMBER
054107,000497: 43,3744 61371 AD SKEEP1
054108,000498: 43,3745 67752 AD S-1
054109,000499: 43,3746 03320 TC -1CHK # CHECK SUM
054110,000500: 43,3747 03660 TC NXTBNK
054111,000501:
054112,000502: 43,3750 0067 EBANK= NEWJOB
054113,000503: 43,3750 66100 LSTBNKCH BBCON* # * CONSTANT, LAST BANK.
054114,000504:
End of include-file AGC_BLOCK_TWO_SELF-CHECK.agc. Parent file is MAIN.agc