Source Code
These source-code files are part of a reconstructed copy of Artemis 071, the
first release of the Apollo 15 through 17 Command Module (CM) Apollo Guidance
Computer (AGC) software.
The reconstruction began with source code of Artemis 072 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes between the two versions. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021154-. Note that page numbers in the reconstructed code match those on the Artemis 072 printout, although the changed code would likely have changed page numbers for a real Artemis 071 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. |
059537,000002: ## Copyright: Public domain.
059538,000003: ## Filename: AGC_BLOCK_TWO_SELF-CHECK.agc
059539,000004: ## Purpose: A section of Artemis revision 071.
059540,000005: ## It is part of the reconstructed source code for the first
059541,000006: ## release of the flight software for the Command Module's
059542,000007: ## (CM) Apollo Guidance Computer (AGC) for Apollo 15 through
059543,000008: ## 17. The code has been recreated from a copy of Artemis 072.
059544,000009: ## It has been adapted such that the resulting bugger words
059545,000010: ## exactly match those specified for Artemis 071 in NASA
059546,000011: ## drawing 2021154-, which gives relatively high confidence
059547,000012: ## that the reconstruction is correct.
059548,000013: ## Reference: 1392
059549,000014: ## Assembler: yaYUL
059550,000015: ## Contact: Ron Burkey <info@sandroid.org>.
059551,000016: ## Website: www.ibiblio.org/apollo/index.html
059552,000017: ## Mod history: 2019-08-14 MAS Created from Artemis 072.
059553,000018:
Page 1392 |
059555,000020:
059556,000021: # PROGRAM DESCRIPTION DATE 20 DECEMBER 1967
059557,000022: # PROGRAM NAME - SELF-CHECK LOG SECTION AGC BLOCK TWO SELF-CHECK
059558,000023: # MOD NO - 1 ASSEMBLY SUBROUTINE UTILITYM REV 25
059559,000024: # MOD BY - GAUNTT
059560,000025:
059561,000026: # FUNCTIONAL DESCRIPTION
059562,000027:
059563,000028: # PROGRAM HAS TWO MAIN PARTS. THE FIRST IS SELF-CHECK WHICH RUNS AS A ZERO PRIORITY JOB WITH NO CORE SET, AS
059564,000029: # PART OF THE BACK-UP IDLE LOOP. THE SECOND IS SHOW-BANKSUM WHICH RUNS AS A REGULAR EXECUTIVE JOB WITH ITS OWN
059565,000030: # STARTING VERB.
059566,000031: # THE PURPOSE OF SELF-CHECK IS TO CHECK OUT VARIOUS PARTS OF THE COMPUTER AS OUTLINED BELOW IN THE OPTIONS.
059567,000032: # THE PURPOSE OF SHOW-BANKSUM IS TO DISPLAY THE SUM OF EACH BANK, ONE AT A TIME.
059568,000033: # IN ALL THERE ARE 7 POSSIBLE OPTIONS IN THIS BLOCK II VERSION OF SELF-CHECK. MORE DETAIL DESCRIPTION MAY BE
059569,000034: # FOUND IN E-2065 BLOCK II AGC SELF-CHECK AND SHOW BANKSUM BY EDWIN D. SMALLY DECEMBER 1966, AND ADDENDA 2 AND 3.
059570,000035: # THE DIFFERENT OPTIONS ARE CONTROLLED BY PUTTING DIFFERENT NUMBERS IN THE SMODE REGISTER (NOUN 27). BELOW IS
059571,000036: # A DESCRIPTION OF WHAT PARTS OF THE COMPUTER THAT ARE CHECKED BY THE OPTIONS, AND THE CORRESPONDING NUMBER, IN
059572,000037: # OCTAL, TO LOAD INTO SMODE.
059573,000038: # +-4 ERASABLE MEMORY
059574,000039: # +-5 FIXED MEMORY
059575,000040: # +-1,2,3,6,7,10 EVERYTHING IN OPTIONS 4 AND 5.
059576,000041: # -0 SAME AS +-10 UNTIL AN ERROR IS DETECTED.
059577,000042: # +0 NO CHECK, PUTS COMPUTER INTO THE BACKUP IDLE LOOP.
059578,000043:
059579,000044: # WARNINGS
059580,000045:
059581,000046: # USE OF E MEMORY RESERVED FOR SELF-CHECK (EVEN IN IDLE LOOP) AS TEMP STORAGE BY OTHER PROGRAMS IS DANGEROUS.
059582,000047: # SMODE SET GREATER THAN OCT 10 PUTS COMPUTER INTO BACKUP IDLE LOOP.
059583,000048:
059584,000049: # CALLING SEQUENCE
059585,000050:
059586,000051: # TO CALL SELF-CHECK KEY IN
059587,000052: # V 21 N 27 E OPTION NUMBER E
059588,000053: # TO CALL SHOW-BANKSUM KEY IN
059589,000054: # V 91 E DISPLAYS FIRST BANK
059590,000055: # V 33 E PROCEED, DISPLAYS NEXT BANK
059591,000056:
059592,000057:
059593,000058: # EXIT MODES, NORMAL AND ALARM
059594,000059:
059595,000060: # SELF-CHECK NORMALLY CONTINUES INDEFINITELY UNLESS THERE IS AN ERROR DETECTED. IF SO + OPTION NUMBERS PUT
059596,000061: # COMPUTER INTO BACKUP IDLE LOOP, - OPTION NUMBERS RESTART THE OPTION.
059597,000062: # THE -0 OPTION PROCEEDS FROM THE LINE FOLLOWING THE LINE WHERE THE ERROR WAS DETECTED.
059598,000063: # SHOW-BANKSUM PROCEEDS UNTIL A TERMINATE IS KEYED IN (V 34 E). THE COMPUTER IS PUT INTO THE BACKUP IDLE LOOP
059599,000064:
059600,000065:
059601,000066: # OUTPUT
Page 1393 |
059603,000068: # SELF-CHECK UPON DETECTING AN ERROR LOADS THE SELF-CHECK ALARM CONSTANT (01102) INTO THE FAILREG SET AND
059604,000069: # TURNS ON THE ALARM LIGHT. THE OPERATOR MAY THEN DISPLAY THE THREE FAILREGS BY KEYING IN V 05 N 09 E. FOR FURTHER
059605,000070: # 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,
059606,000071: # IN R2 THE BBCON OF SELF-CHECK, AND IN R3 THE TOTAL NUMBER OF ERRORS DETECTED BY SELF-CHECK SINCE THE LAST MAN
059607,000072: # INITIATED FRESH START (SLAP1).
059608,000073: # SHOW-BANKSUM STARTING WITH BANK 0 DISPLAYS IN R1 THE BANK SUM (A +-NUMBER EQUAL TO THE BANK NUMBER), IN R2
059609,000074: # THE BANK NUMBER, AND IN R3 THE BUGGER WORD.
059610,000075:
059611,000076:
059612,000077: # ERASABLE INITIALIZATION REQUIRED
059613,000078:
059614,000079: # ACCOMPLISHED BY FRESH START
059615,000080: # SMODE SET TO +0
059616,000081:
059617,000082: # DEBRIS
059618,000083:
059619,000084: # ALL EXITS FROM THE CHECK OF ERASABLE (ERASCHK) RESTORE ORIGINAL CONTENTS TO REGISTERS UNDER CHECK.
059620,000085: # EXCEPTION IS A RESTART. RESTART THAT OCCURS DURING ERASCHK RESTORES ERASABLE, UNLESS THERE IS EVIDENCE TO DOUBT
059621,000086: # E MEMORY, IN WHICH CASE PROGRAM THEN DOES A FRESH START (DOFSTART).
059622,000087:
059623,000088: 43,2000 SETLOC SELFCHEC
059624,000089: 43,2000 BANK
059625,000090:
059626,000091: 43,3166 COUNT* $$/SELF
059627,000092: 43,3166 4770 SBIT1 EQUALS BIT1
059628,000093: 43,3166 4767 SBIT2 EQUALS BIT2
059629,000094: 43,3166 4766 SBIT3 EQUALS BIT3
059630,000095: 43,3166 4765 SBIT4 EQUALS BIT4
059631,000096: 43,3166 4764 SBIT5 EQUALS BIT5
059632,000097: 43,3166 4763 SBIT6 EQUALS BIT6
059633,000098: 43,3166 4762 SBIT7 EQUALS BIT7
059634,000099: 43,3166 4761 SBIT8 EQUALS BIT8
059635,000100: 43,3166 4760 SBIT9 EQUALS BIT9
059636,000101: 43,3166 4757 SBIT10 EQUALS BIT10
059637,000102: 43,3166 4756 SBIT11 EQUALS BIT11
059638,000103: 43,3166 4755 SBIT12 EQUALS BIT12
059639,000104: 43,3166 4754 SBIT13 EQUALS BIT13
059640,000105: 43,3166 4753 SBIT14 EQUALS BIT14
059641,000106: 43,3166 4752 SBIT15 EQUALS BIT15
059642,000107:
059643,000108: 43,3166 4772 S+ZERO EQUALS ZERO
059644,000109: 43,3166 4770 S+1 EQUALS BIT1
059645,000110: 43,3166 4767 S+2 EQUALS BIT2
059646,000111: 43,3166 6214 S+3 EQUALS THREE
059647,000112: 43,3166 4766 S+4 EQUALS FOUR
059648,000113: 43,3166 4773 S+5 EQUALS FIVE
059649,000114: 43,3166 6211 S+6 EQUALS SIX
059650,000115: 43,3166 4774 S+7 EQUALS SEVEN
Page 1394 |
059652,000117: 43,3166 4350 S8BITS EQUALS LOW8 # 00377
059653,000118: 43,3166 5004 CNTRCON = OCT50 # USED IN CNTRCHK
059654,000119: 43,3166 00061 ERASCON1 OCTAL 00061 # USED IN ERASCHK
059655,000120: 43,3167 01373 ERASCON2 OCTAL 01373 # USED IN ERASCHK
059656,000121: 43,3170 5024 ERASCON6 = OCT1400 # USED IN ERASCHK
059657,000122: 43,3170 5030 ERASCON3 EQUALS V06N49 # USED IN ERASCHK
059658,000123: 43,3170 01773 ERASCON4 OCTAL 01773 # USED IN ERASCHK
059659,000124: 43,3171 5041 S10BITS EQUALS LOW10 # 01777, USED IN ERASCHK
059660,000125: 43,3171 5050 SBNK03 EQUALS PRIO6 # 06000, USED IN ROPECHK
059661,000126: 43,3171 4344 -MAXADRS = HI5 # FOR ROPECHK
059662,000127: 43,3171 5010 SIXTY EQUALS SUPER011
059663,000128: 43,3171 60017 SUPRCON OCTAL 60017 # USED IN ROPECHK
059664,000129: 43,3172 17777 S13BITS OCTAL 17777
059665,000130: 43,3173 25252 CONC+S1 OCTAL 25252 # USED IN CYCLSHFT
059666,000131: 43,3174 52400 CONC+S2 OCTAL 52400 # USED IN CYCLSHFT
059667,000132: 43,3175 76777 ERASCON5 OCTAL 76777
059668,000133: 43,3176 5736 S-7 = OCT77770
059669,000134: 43,3176 6061 S-4 EQUALS NEG4
059670,000135: 43,3176 7700 S-3 EQUALS NEG3
059671,000136: 43,3176 7701 S-2 EQUALS NEG2
059672,000137: 43,3176 7702 S-1 EQUALS NEGONE
059673,000138: 43,3176 4771 S-ZERO EQUALS NEG0
059674,000139:
059675,000140: 43,3176 E3,1400 EBANK= LST1
059676,000141: 43,3176 01371 ADRS1 ADRES SKEEP1
059677,000142: 43,3177 03270 SELFADRS ADRES SELFCHK # SELFCHK RETURN ADDRESS. SHOULD BE PUT
059678,000143: # IN SELFRET WHEN GOING FROM SELFCHK TO
059679,000144: # SHOWSUM AND PUT IN SKEEP1 WHEN GOING
059680,000145: # FROM SHOWSUM TO SELF-CHECK.
059681,000146:
059682,000147: 43,3200 31360 PRERRORS CA ERESTORE # IS IT NECESSARY TO RESTORE ERASABLE
059683,000148: 43,3201 00006 EXTEND
059684,000149: 43,3202 13211 BZF ERRORS # NO
059685,000150: 43,3203 00006 EXTEND
059686,000151: 43,3204 31376 DCA SKEEP5
059687,000152: 43,3205 51377 INDEX SKEEP7
059688,000153: 43,3206 52001 DXCH 0000 # RESTORE THE TWO ERASABLE REGISTERS
059689,000154: 43,3207 34772 CA S+ZERO
059690,000155: 43,3210 55360 TS ERESTORE
059691,000156: 43,3211 00004 ERRORS INHINT
059692,000157: 43,3212 30002 CA Q
059693,000158: 43,3213 55357 TS SFAIL # SAVE Q FOR FAILURE LOCATION
059694,000159: 43,3214 55363 TS ALMCADR # FOR DISPLAY WITH BBANK AND ERCOUNT
059695,000160: 43,3215 25365 INCR ERCOUNT # KEEP TRACK OF NUMBER OF MALFUNCTIONS.
059696,000161: 43,3216 05673 TCALARM2 TC ALARM2
059697,000162: 43,3217 01102 OCT 01102 # SELF-CHECK MALFUNCTION INDICATOR
059698,000163: 43,3220 11362 CCS SMODE
059699,000164: 43,3221 34772 SIDLOOP CA S+ZERO
059700,000165: 43,3222 55362 TS SMODE
059701,000166: 43,3223 03270 TC SELFCHK # GO TO IDLE LOOP
Page 1395 |
059703,000168: 43,3224 01357 TC SFAIL # CONTINUE WITH SELF-CHECK
059704,000169:
059705,000170: 43,3225 10000 -1CHK CCS A
059706,000171: 43,3226 13200 TCF PRERRORS
059707,000172: 43,3227 13200 TCF PRERRORS
059708,000173: 43,3230 10000 CCS A
059709,000174: 43,3231 13200 TCF PRERRORS
059710,000175: 43,3232 00002 TC Q
059711,000176:
059712,000177: 43,3233 00006 SMODECHK EXTEND
059713,000178: 43,3234 23371 QXCH SKEEP1
059714,000179: 43,3235 03264 TC CHECKNJ # CHECK FOR NEW JOB
059715,000180: 43,3236 11362 CCS SMODE
059716,000181: 43,3237 03244 TC SOPTIONS
059717,000182: 43,3240 03235 TC SMODECHK +2 # TO BACKUP IDLE LOOP
059718,000183: 43,3241 03244 TC SOPTIONS
059719,000184: 43,3242 25366 INCR SCOUNT
059720,000185: 43,3243 01371 TC SKEEP1 # CONTINUE WITH SELF-CHECK
059721,000186:
059722,000187: 43,3244 65736 SOPTIONS AD S-7
059723,000188: 43,3245 00006 EXTEND
059724,000189: 43,3246 63250 BZMF +2 # FOR OPTIONS BELOW NINE.
059725,000190: 43,3247 03221 BNKOPTN TC SIDLOOP # ILLEGAL OPTION. GO TO IDLE LOOP.
059726,000191: 43,3250 25366 INCR SCOUNT # FOR OPTIONS BELOW NINE.
059727,000192: 43,3251 64774 AD S+7
059728,000193:
059729,000194: 43,3252 50000 INDEX A
059730,000195: 43,3253 03254 TC SOPTION1
059731,000196: 43,3254 01371 SOPTION1 TC SKEEP1 # WAS TC+TCF
059732,000197: 43,3255 01371 SOPTION2 TC SKEEP1 # WAS IN:OUT1
059733,000198: 43,3256 01371 SOPTION3 TC SKEEP1 # WAS COUNTCHK
059734,000199: 43,3257 03271 SOPTION4 TC ERASCHK
059735,000200: 43,3260 03452 SOPTION5 TC ROPECHK
059736,000201: 43,3261 01371 SOPTION6 TC SKEEP1
059737,000202: 43,3262 01371 SOPTION7 TC SKEEP1
059738,000203: 43,3263 01371 SOPTON10 TC SKEEP1 # CONTINUE WITH SELF-CHECK
059739,000204:
059740,000205: 43,3264 00006 CHECKNJ EXTEND
059741,000206: 43,3265 23361 QXCH SELFRET # SAVE RETURN ADDRESS WHILE TESTING NEWJOB
059742,000207: 43,3266 04655 TC POSTJUMP # TO SEE IF ANY JOBS HAVE BECOME ACTIVE.
059743,000208: 43,3267 03177 CADR ADVAN
059744,000209:
059745,000210: 43,3270 03233 SELFCHK TC SMODECHK # ** CHARLEY, COME IN HERE
059746,000211:
059747,000212: # SKEEP7 HOLDS LOWEST OF TWO ADDRESSES BEING CHECKED.
059748,000213: # SKEEP6 HOLDS B(X+1).
059749,000214: # SKEEP5 HOLDS B(X).
059750,000215: # SKEEP4 HOLDS C(EBANK) DURING ERASLOOP AND CHECKNJ.
059751,000216: # SKEEP3 HOLDS LAST ADDRESS BEING CHECKED (HIGHEST ADDRESS).
059752,000217: # SKEEP2 CONTROLS CHECKING OF NON-SWITCHABLE ERASABLE MEMORY WITH BANK NUMBERS IN EB.
Page 1396 |
059754,000219: # ERASCHK TAKES APPROXMATELY 7 SECONDS
059755,000220:
059756,000221: 43,3271 34770 ERASCHK CA S+1
059757,000222: 43,3272 55372 TS SKEEP2
059758,000223: 43,3273 34772 0EBANK CA S+ZERO
059759,000224: 43,3274 54003 TS EBANK
059760,000225: 43,3275 35030 CA ERASCON3 # 01461
059761,000226: 43,3276 55377 TS SKEEP7 # STARTING ADDRESS
059762,000227: 43,3277 35041 CA S10BITS # 01777
059763,000228: 43,3300 55373 TS SKEEP3 # LAST ADDRESS CHECKED
059764,000229: 43,3301 03321 TC ERASLOOP
059765,000230:
059766,000231: 43,3302 35024 E134567B CA ERASCON6 # 01400
059767,000232: 43,3303 55377 TS SKEEP7 # STARTING ADDRESS
059768,000233: 43,3304 35041 CA S10BITS # 01777
059769,000234: 43,3305 55373 TS SKEEP3 # LAST ADDRESS CHECKED
059770,000235: 43,3306 03321 TC ERASLOOP
059771,000236:
059772,000237: 43,3307 35024 2EBANK CA ERASCON6 # 01400
059773,000238: 43,3310 55377 TS SKEEP7 # STARTING ADDRESS
059774,000239: 43,3311 33170 CA ERASCON4 # 01773
059775,000240: 43,3312 55373 TS SKEEP3 # LAST ADDRESS CHECKED
059776,000241: 43,3313 03321 TC ERASLOOP
059777,000242:
059778,000243: 43,3314 55372 NOEBANK TS SKEEP2 # +0
059779,000244: 43,3315 33166 CA ERASCON1 # 00061
059780,000245: 43,3316 55377 TS SKEEP7 # STARTING ADDRESS
059781,000246: 43,3317 33167 CA ERASCON2 # 01373
059782,000247: 43,3320 55373 TS SKEEP3 # LAST ADDRESS CHECKED
059783,000248:
059784,000249: 43,3321 00004 ERASLOOP INHINT
059785,000250: 43,3322 30003 CA EBANK # STORES C(EBANK)
059786,000251: 43,3323 55374 TS SKEEP4
059787,000252: 43,3324 00006 EXTEND
059788,000253: 43,3325 51377 NDX SKEEP7
059789,000254: 43,3326 30001 DCA 0000
059790,000255: 43,3327 53376 DXCH SKEEP5 # STORES C(X) AND C(X+1) IN SKEEP6 AND 5.
059791,000256: 43,3330 31377 CA SKEEP7
059792,000257: 43,3331 55360 TS ERESTORE # IF RESTART, RESTORE C(X) AND C(X+1)
059793,000258: 43,3332 54001 TS L
059794,000259: 43,3333 24001 INCR L
059795,000260: 43,3334 50000 NDX A
059796,000261: 43,3335 52001 DXCH 0000 # PUTS OWN ADDRESS IN X AND X +1
059797,000262: 43,3336 51377 NDX SKEEP7
059798,000263: 43,3337 40001 CS 0001 # CS X+1
059799,000264: 43,3340 51377 NDX SKEEP7
059800,000265: 43,3341 60000 AD 0000 # AD X
059801,000266: 43,3342 03225 TC -1CHK
059802,000267: 43,3343 31360 CA ERESTORE # HAS ERASABLE BEEN RESTORED
059803,000268: 43,3344 00006 EXTEND
059804,000269: 43,3345 13371 BZF ELOOPFIN # YES, EXIT ERASLOOP.
Page 1397 |
059806,000271: 43,3346 00006 EXTEND
059807,000272: 43,3347 51377 NDX SKEEP7
059808,000273: 43,3350 40001 DCS 0000 # COMPLEMENT OF ADDRESS OF X AND X+1
059809,000274: 43,3351 51377 NDX SKEEP7
059810,000275: 43,3352 52001 DXCH 0000 # PUT COMPLEMENT OF ADDRESS OF X AND X+1
059811,000276: 43,3353 51377 NDX SKEEP7
059812,000277: 43,3354 40000 CS 0000 # CS X
059813,000278: 43,3355 51377 NDX SKEEP7
059814,000279: 43,3356 60001 AD 0001 # AD X+1
059815,000280: 43,3357 03225 TC -1CHK
059816,000281: 43,3360 31360 CA ERESTORE # HAS ERASABLE BEEN RESTORED
059817,000282: 43,3361 00006 EXTEND
059818,000283: 43,3362 13371 BZF ELOOPFIN # YES, EXIT ERASLOOP.
059819,000284: 43,3363 00006 EXTEND
059820,000285: 43,3364 31376 DCA SKEEP5
059821,000286: 43,3365 51377 NDX SKEEP7
059822,000287: 43,3366 52001 DXCH 0000 # PUT B(X) AND B(X+1) BACK INTO X AND X+1
059823,000288: 43,3367 34772 CA S+ZERO
059824,000289: 43,3370 55360 TS ERESTORE # IF RESTART, DO NOT RESTORE C(X), C(X+1)
059825,000290: 43,3371 00003 ELOOPFIN RELINT
059826,000291: 43,3372 03264 TC CHECKNJ # CHECK FOR NEW JOB
059827,000292: 43,3373 31374 CA SKEEP4 # REPLACES B(EBANK)
059828,000293: 43,3374 54003 TS EBANK
059829,000294: 43,3375 25377 INCR SKEEP7
059830,000295: 43,3376 41377 CS SKEEP7
059831,000296: 43,3377 61373 AD SKEEP3
059832,000297: 43,3400 00006 EXTEND
059833,000298: 43,3401 13403 BZF +2
059834,000299: 43,3402 03321 TC ERASLOOP # GO TO NEXT ADDRESS IN SAME BANK
059835,000300: 43,3403 11372 CCS SKEEP2
059836,000301: 43,3404 03314 TC NOEBANK
059837,000302: 43,3405 25372 INCR SKEEP2 # PUT +1 IN SKEEP2.
059838,000303: 43,3406 30003 CA EBANK
059839,000304: 43,3407 64760 AD SBIT9
059840,000305: 43,3410 54003 TS EBANK
059841,000306: 43,3411 63175 AD ERASCON5 # 76777, CHECK FOR BANK E2
059842,000307: 43,3412 00006 EXTEND
059843,000308: 43,3413 13307 BZF 2EBANK
059844,000309: 43,3414 10003 CCS EBANK
059845,000310: 43,3415 03302 TC E134567B # GO TO EBANKS 1,3,4,5,6, AND 7
059846,000311: 43,3416 35024 CA ERASCON6 # END OF ERASCHK
059847,000312: 43,3417 54003 TS EBANK
059848,000313:
059849,000314: # CNTRCHK PERFORMS A CS OF ALL REGISTERS FROM OCT. 60 THROUGH OCT. 10.
059850,000315: # INCLUDED ARE ALL COUNTERS, T6-1, CYCLE AND SHIFT, AND ALL RUPT REGISTERS
059851,000316:
059852,000317: 43,3420 35004 CNTRCHK CA CNTRCON # 00050
059853,000318: 43,3421 55372 CNTRLOOP TS SKEEP2
059854,000319: 43,3422 64765 AD SBIT4 # +10 OCTAL
059855,000320: 43,3423 50000 INDEX A
059856,000321: 43,3424 40000 CS 0000
059857,000322: 43,3425 11372 CCS SKEEP2
Page 1398 |
059859,000324: 43,3426 03421 TC CNTRLOOP
059860,000325:
059861,000326: # CYCLSHFT CHECKS THE CYCLE AND SHIFT REGISTERS
059862,000327:
059863,000328: 43,3427 33173 CYCLSHFT CA CONC+S1 # 25252
059864,000329: 43,3430 54020 TS CYR # C(CYR) = 12525
059865,000330: 43,3431 54022 TS CYL # C(CYL) = 52524
059866,000331: 43,3432 54021 TS SR # C(SR) = 12525
059867,000332: 43,3433 54023 TS EDOP # C(EDOP) = 00125
059868,000333: 43,3434 60020 AD CYR # 37777 C(CYR) = 45252
059869,000334: 43,3435 60022 AD CYL # 00-12524 C(CYL) = 25251
059870,000335: 43,3436 60021 AD SR # 00-25251 C(SR) = 05252
059871,000336: 43,3437 60023 AD EDOP # 00-25376 C(EDOP) = +0
059872,000337: 43,3440 63174 AD CONC+S2 # C(CONC+S2) = 52400
059873,000338: 43,3441 03225 TC -1CHK
059874,000339: 43,3442 60020 AD CYR # 45252
059875,000340: 43,3443 60022 AD CYL # 72523
059876,000341: 43,3444 60021 AD SR # 77775
059877,000342: 43,3445 60023 AD EDOP # 77775
059878,000343: 43,3446 64770 AD S+1 # 77776
059879,000344: 43,3447 03225 TC -1CHK
059880,000345:
059881,000346: 43,3450 25367 INCR SCOUNT +1
059882,000347: 43,3451 03233 TC SMODECHK
059883,000348:
059884,000349: # SKEEP1 HOLDS SUM
059885,000350: # SKEEP2 HOLDS PRESENT CONTENTS OF ADDRESS IN ROPECHK AND SHOWSUM ROUTINES
059886,000351: # SKEEP2 HOLDS BANK NUMBER IN LOW ORDER BITS DURING SHOWSUM DISPLAY
059887,000352: # SKEEP3 HOLDS PRESENT ADDRESS (00000 TO 01777 IN COMMON FIXED BANKS)
059888,000353: # (04000 TO 07777 IN FXFX BANKS)
059889,000354: # SKEEP3 HOLDS BUGGER WORD DURING SHOWSUM DISPLAY
059890,000355: # SKEEP4 HOLDS BANK NUMBER AND SUPER BANK NUMBER
059891,000356: # SKEEP5 COUNTS 2 SUCCESSIVE TC SELF WORDS
059892,000357: # SKEEP6 CONTROLS ROPECHK OR SHOWSUM OPTION
059893,000358: # SKEEP7 CONTROLS WHEN ROUNTINE IS IN COMMON FIXED OR FIXED FIXED BANKS
059894,000359:
059895,000360: 43,3452 34771 ROPECHK CA S-ZERO # *
059896,000361: 43,3453 55376 TS SKEEP6 # * -0 FOR ROPECHK.
059897,000362: 43,3454 34772 STSHOSUM CA S+ZERO # * SHOULD BE ROPECHK
059898,000363:
059899,000364: 43,3455 55374 TS SKEEP4 # BANK NUMBER
059900,000365: 43,3456 34770 CA S+1
059901,000366: 43,3457 55377 COMMFX TS SKEEP7
059902,000367: 43,3460 34772 CA S+ZERO
059903,000368: 43,3461 55371 TS SKEEP1
059904,000369: 43,3462 55373 TS SKEEP3
059905,000370: 43,3463 34770 CA S+1
059906,000371: 43,3464 55375 TS SKEEP5 # COUNTS DOWN 2 TC SELF WORDS
059907,000372: 43,3465 31374 COMADRS CA SKEEP4
059908,000373: 43,3466 54001 TS L # TO SET SUPER BANK
059909,000374: 43,3467 74344 MASK HI5
059910,000375: 43,3470 61373 AD SKEEP3
Page 1399 |
059912,000377: 43,3471 04671 TC SUPDACAL # SUPER DATA CALL
059913,000378: 43,3472 03515 TC ADSUM
059914,000379: 43,3473 64756 AD SBIT11 # 02000
059915,000380: 43,3474 03526 TC ADRSCHK
059916,000381:
059917,000382: 43,3475 40000 FXFX CS A
059918,000383: 43,3476 55377 TS SKEEP7
059919,000384: 43,3477 00006 EXTEND
059920,000385: 43,3500 13503 BZF +3
059921,000386: 43,3501 34755 CA SBIT12 # 04000, STARTING ADDRESS OF BANK 02
059922,000387: 43,3502 03504 TC +2
059923,000388: 43,3503 35050 CA SBNK03 # 06000, STARTING ADDRESS OF BANK 03
059924,000389: 43,3504 55373 TS SKEEP3
059925,000390: 43,3505 34772 CA S+ZERO
059926,000391: 43,3506 55371 TS SKEEP1
059927,000392: 43,3507 34770 CA S+1
059928,000393: 43,3510 55375 TS SKEEP5 # COUNTS DOWN 2 TC SELF WORDS
059929,000394: 43,3511 51373 FXADRS INDEX SKEEP3
059930,000395: 43,3512 30000 CA 0000
059931,000396: 43,3513 03515 TC ADSUM
059932,000397: 43,3514 03526 TC ADRSCHK
059933,000398:
059934,000399: 43,3515 55372 ADSUM TS SKEEP2
059935,000400: 43,3516 61371 AD SKEEP1
059936,000401: 43,3517 55371 TS SKEEP1
059937,000402: 43,3520 34772 CAF S+ZERO
059938,000403: 43,3521 61371 AD SKEEP1
059939,000404: 43,3522 55371 TS SKEEP1
059940,000405: 43,3523 41372 CS SKEEP2
059941,000406: 43,3524 61373 AD SKEEP3
059942,000407: 43,3525 00002 TC Q
059943,000408:
059944,000409: 43,3526 22000 ADRSCHK LXCH A
059945,000410: 43,3527 31373 CA SKEEP3
059946,000411: 43,3530 75041 MASK LOW10 # RELATIVE ADDRESS
059947,000412: 43,3531 64344 AD -MAXADRS # SUBTRACT MAX RELATIVE ADDRESS = 1777.
059948,000413: 43,3532 00006 EXTEND
059949,000414: 43,3533 13622 BZF SOPTION # CHECKSUM FINISHED IF LAST ADDRESS.
059950,000415: 43,3534 11375 CCS SKEEP5 # IS CHECKSUM FINISHED
059951,000416: 43,3535 03540 TC +3 # NO
059952,000417: 43,3536 03540 TC +2 # NO
059953,000418: 43,3537 03622 TC SOPTION # GO TO ROPECHK SHOWSUM OPTION
059954,000419: 43,3540 10001 CCS L # -0 MEANS A TC SELF WORD.
059955,000420: 43,3541 03550 TC CONTINU
059956,000421: 43,3542 03550 TC CONTINU
059957,000422: 43,3543 03550 TC CONTINU
059958,000423: 43,3544 11375 CCS SKEEP5
059959,000424: 43,3545 03551 TC CONTINU +1
059960,000425: 43,3546 37702 CA S-1
059961,000426: 43,3547 03551 TC CONTINU +1 # AD IN THE BUGGER WORD
Page 1400 |
059963,000428: 43,3550 34770 CONTINU CA S+1 # MAKE SURE TWO CONSECUTIVE TC SELF WORDS
059964,000429: 43,3551 55375 TS SKEEP5
059965,000430: 43,3552 11376 CCS SKEEP6 # *
059966,000431: 43,3553 10067 CCS NEWJOB # * +1, SHOWSUM
059967,000432: 43,3554 05152 TC CHANG1 # *
059968,000433: 43,3555 03557 TC +2 # *
059969,000434: 43,3556 03264 TC CHECKNJ # -0 IN SKEEP6 FOR ROPECHK
059970,000435:
059971,000436: 43,3557 25373 ADRS+1 INCR SKEEP3
059972,000437: 43,3560 11377 CCS SKEEP7
059973,000438: 43,3561 03465 TC COMADRS
059974,000439: 43,3562 03465 TC COMADRS
059975,000440: 43,3563 03511 TC FXADRS
059976,000441: 43,3564 03511 TC FXADRS
059977,000442:
059978,000443: 43,3565 41374 NXTBNK CS SKEEP4
059979,000444: 43,3566 63655 AD LSTBNKCH # LAST BANK TO BE CHECKED
059980,000445: 43,3567 00006 EXTEND
059981,000446: 43,3570 12764 BZF ENDSUMS # END OF SUMMING OF BANKS.
059982,000447: 43,3571 31374 CA SKEEP4
059983,000448: 43,3572 64756 AD SBIT11
059984,000449: 43,3573 55374 TS SKEEP4 # 37 TO 40 INCRMTS SKEEP4 BY END RND CARRY
059985,000450: 43,3574 03600 TC CHKSUPR
059986,000451: 43,3575 34752 17TO20 CA SBIT15
059987,000452: 43,3576 27374 ADS SKEEP4 # SET FOR BANK 20
059988,000453: 43,3577 03614 TC GONXTBNK
059989,000454: 43,3600 74344 CHKSUPR MASK HI5
059990,000455: 43,3601 00006 EXTEND
059991,000456: 43,3602 13612 BZF NXTSUPR # INCREMENT SUPER BANK
059992,000457: 43,3603 63172 27TO30 AD S13BITS
059993,000458: 43,3604 00006 EXTEND
059994,000459: 43,3605 13607 BZF +2 # BANK SET FOR 30
059995,000460: 43,3606 03614 TC GONXTBNK
059996,000461: 43,3607 35010 CA SIXTY # FIRST SUPER BANK
059997,000462: 43,3610 27374 ADS SKEEP4
059998,000463: 43,3611 03614 TC GONXTBNK
059999,000464: 43,3612 63171 NXTSUPR AD SUPRCON # SET BNK 30 + INCR SUPR BNK AND CANCEL
060000,000465: 43,3613 27374 ADS SKEEP4 # ERC BIT OF THE 37 TO 40 ADVANCE.
060001,000466: 43,3614 11377 GONXTBNK CCS SKEEP7
060002,000467: 43,3615 03457 TC COMMFX
060003,000468: 43,3616 34770 CA S+1
060004,000469: 43,3617 03475 TC FXFX
060005,000470: 43,3620 34762 CA SBIT7 # HAS TO BE LARGER THAN NO OF FXSW BANKS.
060006,000471: 43,3621 03457 TC COMMFX
060007,000472:
060008,000473: 43,3622 31374 SOPTION CA SKEEP4
060009,000474: 43,3623 74344 MASK HI5 # = BANK BITS
060010,000475: 43,3624 04333 TC LEFT5
060011,000476: 43,3625 54001 TS L # BANK NUMBER BEFORE SUPER BANK
060012,000477: 43,3626 31374 CA SKEEP4
Page 1401 |
060014,000479: 43,3627 74350 MASK S8BITS # = SUPER BANK BITS
060015,000480: 43,3630 00006 EXTEND
060016,000481: 43,3631 13637 BZF SOPT # BEFORE SUPER BANK
060017,000482: 43,3632 54021 TS SR # SUPER BANK NECESSARY
060018,000483: 43,3633 30001 CA L
060019,000484: 43,3634 74774 MASK SEVEN
060020,000485: 43,3635 60021 AD SR
060021,000486: 43,3636 54001 TS L # BANK NUMBER WITH SUPER BANK
060022,000487: 43,3637 31376 SOPT CA SKEEP6 # *
060023,000488: 43,3640 00006 EXTEND # *
060024,000489: 43,3641 13643 BZF +2 # * ON -0 CONTINUE WITH ROPE CHECK.
060025,000490: 43,3642 02746 TC SDISPLAY # * ON +1 GO TO DISPLAY OF SUM.
060026,000491: 43,3643 11371 CCS SKEEP1 # FORCE SUM TO ABSOLUTE VALUE.
060027,000492: 43,3644 03646 TC +2
060028,000493: 43,3645 03647 TC +2
060029,000494: 43,3646 64770 AD S+1
060030,000495: 43,3647 55371 TS SKEEP1
060031,000496: 43,3650 40001 BNKCHK CS L # = - BANK NUMBER
060032,000497: 43,3651 61371 AD SKEEP1
060033,000498: 43,3652 67702 AD S-1
060034,000499: 43,3653 03225 TC -1CHK # CHECK SUM
060035,000500: 43,3654 03565 TC NXTBNK
060036,000501:
060037,000502: 43,3655 0067 EBANK= NEWJOB
060038,000503: 43,3655 66100 LSTBNKCH BBCON* # * CONSTANT, LAST BANK.
060039,000504:
060040,000505: 43,3656 30,2000 SBANK= LOWSUPER
End of include-file AGC_BLOCK_TWO_SELF-CHECK.agc. Parent file is MAIN.agc