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