Source Code
These source-code files are part of a reconstructed copy of Comanche 45/2 (AKA Manche45 revision 2),
the final, flown mission release of the Apollo 10 Command Module (CM) Apollo Guidance
Computer (AGC) software. Comanche 45/2 was preceded by Comanche 44 and Comanche 45. The
reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era
listing of Comanche 45/2, some explanation of the reconstruction process is needed
to insure confidence in that accuracy.
The starting point was the source code of Comanche 45 (itself previously accurately reconstructed). Comanche 45 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 45 and 45/2. The now-reconstructed Comanche 45/2 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 listing. Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
|
051870,000002: ## Copyright: Public domain.
051871,000003: ## Filename: WAITLIST.agc
051872,000004: ## Purpose: A section of Manche45 revision 2.
051873,000005: ## It is part of the reconstructed source code for the
051874,000006: ## final, flown release of the flight software for the Command
051875,000007: ## Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
051876,000008: ## The code has been recreated from a copy of Comanche 055. It
051877,000009: ## has been adapted such that the resulting bugger words
051878,000010: ## exactly match those specified for Manche 45/2 in NASA drawing
051879,000011: ## 2021153D, which gives relatively high confidence that the
051880,000012: ## reconstruction is correct.
051881,000013: ## Assembler: yaYUL
051882,000014: ## Contact: Ron Burkey <info@sandroid.org>.
051883,000015: ## Website: www.ibiblio.org/apollo/index.html
051884,000016: ## Mod history: 2020-12-24 MAS Created from Comanche 45.
051885,000017:
Page 1221 |
051887,000019: # PROGRAM DESCRIPTION DATE - 10 OCTOBER 1966
051888,000020: # MOD NO - 2 LOG SECTION - WAITLIST
051889,000021: # MOD BY - MILLER (DTMAX INCREASED TO 162.5 SEC) ASSEMBLY SUNBURST REV 5
051890,000022: # MOD 3 BY KERNAN (INHINT INSERTED AT WAITLIST) 2/28/68 SKIPPER REV 4
051891,000023: # MOD 4 BY KERNAN (TWIDDLE IN 54) 3/28/68 SKIPPER REV 13.
051892,000024:
051893,000025: # FUNCTIONAL DESCRIPTION -
051894,000026: # PART OF A SECTION OF PROGRAMS,- WAITLIST, TASKOVER, T3RUPT, USED TO CALL A PROGRAM, (CALLED A TASK),
051895,000027: # WHICH IS TO BEGIN IN C(A) CENTISECONDS. WAITLIST UPDATES TIME3, LST1 AND LST2. THE MEANING OF THESE LISTS
051896,000028: # FOLLOW.
051897,000029:
051898,000030: # C(TIME3) = 16384 -(T1-T) CENTISECONDS, (T=PRESENT TIME, T1-TIME FOR TASK1)
051899,000031:
051900,000032: # C(LST1) = -(T2-T1)+1
051901,000033: # C(LST1 +1) = -(T3-T2)+1
051902,000034: # C(LST1 +2) = -(T4-T3)+1
051903,000035: # .
051904,000036: # .
051905,000037: # C(LST1 +6) = -(T8-T7)+1
051906,000038: # C(LST1 +7) = -(T9-T8)+1
051907,000039:
051908,000040: # C(LST2) = 2CADR OF TASK1
051909,000041: # C(LST2 +2) = 2CADR OF TASK2
051910,000042: # .
051911,000043: # .
051912,000044: # C(LST2 +14) = 2CADR OF TASK8
051913,000045: # C(LST2 +16) = 2CADR OF TASK9
051914,000046:
051915,000047: # WARNINGS-
051916,000048: # --------
051917,000049: # 1) 1 <= C(A) <= 16250D (1 CENTISECOND TO 162.5 SEC)
051918,000050: # 2) 9 TASKS MAXIMUM
051919,000051: # 3) TASKS CALLED UNDER INTERRUPT INHIBITED
051920,000052: # 4) TASKS END BY TC TASKOVER
051921,000053:
051922,000054: # CALLING SEQUENCE -
051923,000055: # L-1 CA DELTAT (TIME IN CENTISECONDS TO TASK START)
051924,000056: # L TC WAITLIST
051925,000057: # L+1 2CADR DESIRED TASK
051926,000058: # L+2 (MINOR OF 2CADR)
051927,000059: # L+3 RELINT (RETURNS HERE)
051928,000060:
051929,000061: # TWIDDLE-
051930,000062: # -------
051931,000063: # TWIDDLE IS FOR USE WHEN THE TASK BEING SET UP IS IN THE SAME EBANK AND FBANK AS THE USER. IN
051932,000064: # SUCH CASES, IT IMPROVES UPON WAITLIST BY ELIMINATING THE NEED FOR THE BBCON HALF OF THE 2CADR,
Page 1222 |
051934,000066: # SAVING A WORD. TWIDDLE IS LIKE WAITLIST IN EVERY RESPECT EXCEPT CALLING SEQUENCE, TO WIT-
051935,000067: # L-1 CA DELTAT
051936,000068: # L TC TWIDDLE
051937,000069: # L+1 ADRES DESIRED TASK
051938,000070: # L+2 RELINT (RETURNS HERE)
051939,000071:
051940,000072: # NORMAL EXIT MODES -
051941,000073: # AT L+3 OF CALLING SEQUENCE
051942,000074:
051943,000075: # ALARM OR ABORT EXIT MODES -
051944,000076: # TC ABORT
051945,000077: # OCT 1203 (WAITLIST OVERFLOW - TOO MANY TASKS)
051946,000078:
051947,000079: # ERASABLE INITIALIZATION REQUIRED -
051948,000080: # ACCOMPLISHED BY FRESH START,-- LST2, ..., LST2 +16 = ENDTASK
051949,000081: # LST1, ..., LST1 +7 = NEG1/2
051950,000082:
051951,000083: # OUTPUT --
051952,000084: # LST1 AND LST2 UPDATED WITH NEW TASK AND ASSOCIATED TIME.
051953,000085:
051954,000086: # DEBRIS -
051955,000087: # CENTRALS - A,Q,L
051956,000088: # OTHER - WAITEXIT, WAITADR, WAITTEMP, WAITBANK
051957,000089:
051958,000090: # DETAILED ANALYSIS OF TIMING -
051959,000091: # CONTROL WILL NOT BE RETURNED TO THE SPECIFIED ADDRESS (2CADR) IN EXACTLY DELTA T CENTISECONDS.
051960,000092: # THE APPROXIMATE TIME MAY BE CALCULATED AS FOLLOWS
051961,000093: # LET TO = THE TIME OF THE TC WAITLIST
051962,000094: # LET TS = TO +147U + COUNTER INCREMENTS (SET UP TIME)
051963,000095: # LET X = TS -(100TS)/100 (VARIANCE FROM COUNTERS)
051964,000096: # LET Y = LENGTH OF TIME OF INHIBIT INTERRUPT AFTER T3RUPT
051965,000097: # LET Z = LENGTH OF TIME TO PROCESS TASKS WHICH ARE DUE THIS T3RUPT BUT DISPATCHED EARLIER.
051966,000098: # (Z=0, USUALLY)
051967,000099: # LET DELTD = THE ACTUAL TIME TAKEN TO GIVE CONTROL TO 2CADR
051968,000100: # THEN DELTD = TS+DELTA T -X +Y +Z +1.05MS* +COUNTERS*
051969,000101: # *-THE TIME TAKEN BY WAITLIST ITSELF AND THE COUNTER TICKING DURING THIS WAITLIST TIME.
051970,000102: # IN SHORT, THE ACTUAL TIME TO RETURN CONTROL TO A 2CADR IS AUGMENTED BY THE TIME TO SET UP THE TASK:S
051971,000103: # INTERRUPT, ALL COUNTERS TICKING, THE T3RUPT PROCESSING TIME, THE WAITLIST PROCESSING TIME AND THE POSSIBILITY
051972,000104: # OF OTHER TASKS INHIBITING THE INTERRUPT.
051973,000105:
051974,000106: 5235 BLOCK 02
Page 1223 |
051976,000108: 5235 E3,1400 EBANK= LST1 # TASK LISTS IN SWITCHED E BANK.
051977,000109:
051978,000110: 5235 COUNT 02/WAIT
051979,000111:
051980,000112: 5235 00004 TWIDDLE INHINT
051981,000113: 5236 54001 TS L # SAVE DELAY TIME IN L
051982,000114: 5237 34777 CA POSMAX
051983,000115: 5240 26002 ADS Q # CREATING OVERFLOW AND Q-1 IN Q
051984,000116: 5241 30006 CA BBANK
051985,000117: 5242 00006 EXTEND
051986,000118: 5243 04007 ROR SUPERBNK
051987,000119: 5244 56001 XCH L
051988,000120:
051989,000121: 5245 00004 WAITLIST INHINT
051990,000122: 5246 00006 EXTEND
051991,000123: 5247 65261 BZMF WATLST0-
051992,000124: 5250 56002 XCH Q # SAVE DELTA T IN Q AND RETURN IN
051993,000125: 5251 54061 TS WAITEXIT # WAITEXIT.
051994,000126: 5252 00006 EXTEND
051995,000127: 5253 50061 INDEX WAITEXIT # IF TWIDDLING, THE TS SKIPS TO HERE
051996,000128: 5254 30001 DCA 0 # PICK UP 2CADR OF TASK.
051997,000129: 5255 54063 -1 TS WAITADR # BBCON WILL REMAIN IN L
051998,000130: 5256 35266 DLY2 CAF WAITBB # ENTRY FROM FIXDELAY AND VARDELAY.
051999,000131: 5257 56006 XCH BBANK
052000,000132: 5260 13246 TCF WAIT2
052001,000133:
052002,000134: 5261 05721 WATLST0- TC POODOO
052003,000135: 5262 01204 OCT 1204 # WAITLIST CALL WITH ZERO OR NEG DT
052004,000136:
052005,000137: # RETURN TO CALLER AFTER TASK INSERTION:
052006,000138:
052007,000139: 5263 52062 LVWTLIST DXCH WAITEXIT
052008,000140: 5264 65016 AD TWO
052009,000141: 5265 52006 DTCB
052010,000142:
052011,000143: 5266 E3,1400 EBANK= LST1
052012,000144: 5266 02063 WAITBB BBCON WAIT2
052013,000145:
052014,000146: # RETURN TO CALLER +2 AFTER WAITING DT SPECIFIED AT CALLER +1.
052015,000147:
052016,000148: 5267 50002 FIXDELAY INDEX Q # BOTH ROUTINES MUST BE CALLED UNDER
052017,000149: 5270 30000 CAF 0 # WAITLIST CONTROL AND TERMINATE THE TASK
052018,000150: 5271 24002 INCR Q # IN WHICH THEY WERE CALLED.
052019,000151:
052020,000152: # RETURN TO CALLER +1 AFTER WAITING THE DT AS ARRIVING IN A.
052021,000153:
052022,000154: 5272 56002 VARDELAY XCH Q # DT TO Q. TASK ADRES TO WAITADR.
052023,000155: 5273 54063 TS WAITADR
052024,000156: 5274 30006 CA BBANK # BBANK IS SAVED DURING DELAY.
052025,000157: 5275 00006 EXTEND
Page 1224 |
052027,000159: 5276 04007 ROR SUPERBNK # ADD SBANK TO BBCON.
052028,000160: 5277 54001 TS L
052029,000161: 5300 35303 CAF DELAYEX
052030,000162: 5301 54061 TS WAITEXIT # GO TO TASKOVER AFTER TASK ENTRY.
052031,000163: 5302 15256 TCF DLY2
052032,000164:
052033,000165: 5303 15322 DELAYEX TCF TASKOVER -2 # RETURNS TO TASKOVER
052034,000166:
Page 1225 |
052036,000168: # ENDTASK MUST BE ENTERED IN FIXED-FIXED SO IT IS DISTINGUISHABLE BY ITS ADRES ALONE.
052037,000169:
052038,000170: 5304 E3,1400 EBANK= LST1
052039,000171: 5304 72471 73714 ENDTASK -2CADR SVCT3
052040,000172:
052041,000173: 5306 10076 SVCT3 CCS FLAGWRD2 # DRIFT FLAG
052042,000174: 5307 15324 TCF TASKOVER
052043,000175: 5310 15324 TCF TASKOVER
052044,000176: 5311 15312 TCF +1
052045,000177:
052046,000178: 5312 11322 CCS IMUCADR # DON'T DO NBDONLY IF SOMEONE ELSE IS IN
052047,000179: 5313 17717 TCF SVCT3X
052048,000180: 5314 15317 TCF +3
052049,000181: 5315 17717 TCF SVCT3X
052050,000182: 5316 17717 TCF SVCT3X
052051,000183: 5317 37672 +3 CAF PRIO35 # COMPENSATE FOR NBD COEFFICIENTS ONLY.
052052,000184: 5320 05134 TC NOVAC # ENABLE EVERY 81.93 SECONDS
052053,000185: 5321 E3,1460 EBANK= NBDX
052054,000186: 5321 03542 14063 2CADR NBDONLY
052055,000187:
052056,000188: 5323 15324 TCF TASKOVER
052057,000189:
052058,000190: 6000 SETLOC FFTAG6
052059,000191: 6000 BANK
052060,000192:
052061,000193: 7717 05267 SVCT3X TC FIXDELAY # DELAY MAX OF 2 TIMES FOR IMU ZERO
052062,000194: 7720 00764 DEC 500 B-14
052063,000195: 7721 05306 TC SVCT3 # CHECK DRIFT FLAG AGAIN
052064,000196:
Page 1226 |
052066,000198: # BEGIN TASK INSERTION.
052067,000199:
052068,000200: 01,3246 BANK 01
052069,000201: 01,3246 COUNT 01/WAIT
052070,000202:
052071,000203: 01,3246 54062 WAIT2 TS WAITBANK # BBANK OF CALLING PROGRAM.
052072,000204: 01,3247 40026 CS TIME3
052073,000205: 01,3250 65010 AD BIT8 # BIT 8 = OCT 200
052074,000206: 01,3251 10000 CCS A # TEST 200 - C(TIME3). IF POSITIVE,
052075,000207: # IT MEANS THAT TIME3 OVERFLOW HAS OCCURRED PRIOR TO CS TIME3 AND THAT
052076,000208: # C(TIME3) = T - T1, INSTEAD OF 1.0 - (T1 - T). THE FOLLOWING FOUR
052077,000209: # ORDERS SET C(A) = TD - T1 + 1 IN EITHER CASE.
052078,000210:
052079,000211: 01,3252 66056 AD OCT40001 # OVERFLOW HAS OCCURRED. SET C(A) =
052080,000212: 01,3253 40000 CS A # T - T1 + 1.0 - 201
052081,000213:
052082,000214: # NORMAL CASE (C(A) NNZ) YIELDS SAME C(A): -( -(1.0-(T1-T)) + 200) - 1
052083,000215:
052084,000216: 01,3254 63402 AD OCT40201
052085,000217: 01,3255 60002 AD Q # RESULT = TD - T1 + 1.
052086,000218:
052087,000219: 01,3256 10000 CCS A # TEST TD - T1 +1
052088,000220:
052089,000221: 01,3257 61400 AD LST1 # IF TD - T1 POS, GO TO WTLST5 WITH
052090,000222: 01,3260 13322 TCF WTLST5 # C(A) = (TD - T1) + C(LST1) = TD-T2+1
052091,000223:
052092,000224: 01,3261 13262 NOOP
052093,000225: 01,3262 40002 CS Q
052094,000226:
052095,000227: # NOTE THAT THIS PROGRAM SECTION IS NEVER ENTERED WHEN T-T1 G/E -1,
052096,000228: # SINCE TD-T1+1 = (TD-T) + (T-T1+1), AND DELTA T = TD-T G/E +1. (G/E
052097,000229: # SYMBOL MEANS GREATER THAN OR EQUAL TO). THUS THERE NEED BE NO CON-
052098,000230: # CERN OVER A PREVIOUS OR IMMINENT OVERFLOW OF TIME3 HERE.
052099,000231:
052100,000232: 01,3263 65002 AD POS1/2 # WHEN TD IS NEXT, FORM QUANTITY
052101,000233: 01,3264 65002 AD POS1/2 # 1.0 - DELTA T = 1.0 - (TD - T)
052102,000234: 01,3265 56026 XCH TIME3
052103,000235: 01,3266 65001 AD NEGMAX
052104,000236: 01,3267 60002 AD Q # 1.0 - DELTAT T NOW COMPLETE.
052105,000237: 01,3270 00006 EXTEND # ZERO INDEX Q.
052106,000238: 01,3271 22007 QXCH 7 # (ZQ)
052107,000239:
Page 1227 |
052109,000241: 01,3272 57400 WTLST4 XCH LST1
052110,000242: 01,3273 57401 XCH LST1 +1
052111,000243: 01,3274 57402 XCH LST1 +2
052112,000244: 01,3275 57403 XCH LST1 +3
052113,000245: 01,3276 57404 XCH LST1 +4
052114,000246: 01,3277 57405 XCH LST1 +5
052115,000247: 01,3300 57406 XCH LST1 +6
052116,000248: 01,3301 57407 XCH LST1 +7
052117,000249:
052118,000250: 01,3302 30063 CA WAITADR # (MINOR PART OF TASK CADR HAS BEEN IN L.)
052119,000251: 01,3303 50002 INDEX Q
052120,000252: 01,3304 13305 TCF +1
052121,000253:
052122,000254: 01,3305 53411 DXCH LST2
052123,000255: 01,3306 53413 DXCH LST2 +2
052124,000256: 01,3307 53415 DXCH LST2 +4
052125,000257: 01,3310 53417 DXCH LST2 +6
052126,000258: 01,3311 53421 DXCH LST2 +8D
052127,000259: 01,3312 53423 DXCH LST2 +10D # AT END, CHECK THAT C(LST2 +10) IS STD
052128,000260: 01,3313 53425 DXCH LST2 +12D
052129,000261: 01,3314 53427 DXCH LST2 +14D
052130,000262: 01,3315 53431 DXCH LST2 +16D
052131,000263: 01,3316 65304 AD ENDTASK # END ITEM, AS CHECK FOR EXCEEDING
052132,000264: # THE LENGTH OF THE LIST.
052133,000265: 01,3317 00006 EXTEND # DUMMY TASK ADRES SHOULD BE IN FIXED-
052134,000266: 01,3320 15263 BZF LVWTLIST # FIXED SO ITS ADRES ALONE DISTINGUISHES
052135,000267: 01,3321 13375 TCF WTABORT # IT.
052136,000268:
Page 1228 |
052138,000270: 01,3322 10000 WTLST5 CCS A # TEST TD - T2 + 1
052139,000271: 01,3323 61401 AD LST1 +1
052140,000272: 01,3324 13330 TCF +4
052141,000273: 01,3325 65017 AD ONE
052142,000274: 01,3326 03403 TC WTLST2
052143,000275: 01,3327 00001 OCT 1
052144,000276:
052145,000277: 01,3330 10000 +4 CCS A # TEST TD - T3 + 1
052146,000278: 01,3331 61402 AD LST1 +2
052147,000279: 01,3332 13336 TCF +4
052148,000280: 01,3333 65017 AD ONE
052149,000281: 01,3334 03403 TC WTLST2
052150,000282: 01,3335 00002 OCT 2
052151,000283:
052152,000284: 01,3336 10000 +4 CCS A # TEST TD - T4 + 1
052153,000285: 01,3337 61403 AD LST1 +3
052154,000286: 01,3340 13344 TCF +4
052155,000287: 01,3341 65017 AD ONE
052156,000288: 01,3342 03403 TC WTLST2
052157,000289: 01,3343 00003 OCT 3
052158,000290:
052159,000291: 01,3344 10000 +4 CCS A # TEST TD - T5 + 1
052160,000292: 01,3345 61404 AD LST1 +4
052161,000293: 01,3346 13352 TCF +4
052162,000294: 01,3347 65017 AD ONE
052163,000295: 01,3350 03403 TC WTLST2
052164,000296: 01,3351 00004 OCT 4
052165,000297:
052166,000298: 01,3352 10000 +4 CCS A # TEST TD - T6 + 1
052167,000299: 01,3353 61405 AD LST1 +5
052168,000300: 01,3354 13360 TCF +4
052169,000301: 01,3355 65017 AD ONE
052170,000302: 01,3356 03403 TC WTLST2
052171,000303: 01,3357 00005 OCT 5
052172,000304:
052173,000305: 01,3360 10000 +4 CCS A # TEST TD - T7 + 1
052174,000306: 01,3361 61406 AD LST1 +6
052175,000307: 01,3362 13366 TCF +4
052176,000308: 01,3363 65017 AD ONE
052177,000309: 01,3364 03403 TC WTLST2
052178,000310: 01,3365 00006 OCT 6
052179,000311:
Page 1229 |
052181,000313: 01,3366 10000 +4 CCS A
052182,000314: 01,3367 61407 AD LST1 +7
052183,000315: 01,3370 13374 TCF +4
052184,000316: 01,3371 65017 AD ONE
052185,000317: 01,3372 03403 TC WTLST2
052186,000318: 01,3373 00007 OCT 7
052187,000319:
052188,000320: 01,3374 10000 +4 CCS A
052189,000321: 01,3375 07755 WTABORT TC BAILOUT # NO ROOM IN THE INN.
052190,000322: 01,3376 01203 OCT 1203
052191,000323:
052192,000324: 01,3377 65017 AD ONE
052193,000325: 01,3400 03403 TC WTLST2
052194,000326: 01,3401 00010 OCT 10
052195,000327:
052196,000328: 01,3402 40201 OCT40201 OCT 40201
052197,000329:
Page 1230 |
052199,000331: # THE ENTRY TO WTLST2 JUST PRECEDING OCT N IS FOR T LE TD LE T -1.
052200,000332: # N N+1
052201,000333:
052202,000334: # (LE MEANS LESS THAN OR EQUAL TO). AT ENTRY, C(A) = -(TD - T + 1)
052203,000335: # N+1
052204,000336:
052205,000337: # THE LST1 ENTRY-(T -T +1) IS TO BE REPLACED BY -(TD - T + 1), AND
052206,000338: # N+1 N N
052207,000339:
052208,000340: # THE ENTRY-(T - TD + 1) IS TO BE INSERTED IMMEDIATELY FOLLOWING.
052209,000341: # N+1
052210,000342:
052211,000343: 01,3403 54064 WTLST2 TS WAITTEMP # C(A) = -(TD - T + 1)
052212,000344: 01,3404 50002 INDEX Q
052213,000345: 01,3405 30000 CAF 0
052214,000346: 01,3406 54002 TS Q # INDEX VALUE INTO Q.
052215,000347:
052216,000348: 01,3407 35017 CAF ONE
052217,000349: 01,3410 60064 AD WAITTEMP
052218,000350: 01,3411 50002 INDEX Q # C(A) = -(TD - T ) + 1.
052219,000351: 01,3412 27377 ADS LST1 -1 # N
052220,000352:
052221,000353: 01,3413 40064 CS WAITTEMP
052222,000354: 01,3414 50002 INDEX Q
052223,000355: 01,3415 13272 TCF WTLST4
052224,000356:
052225,000357: # C(TIME3) = 1.0 - (T1 - T)
052226,000358:
052227,000359: # C(LST1 ) = - (T2 - T1) + 1
052228,000360: # C(LST1+1) = - (T3 - T2) + 1
052229,000361: # C(LST1+2) = - (T4 - T3) + 1
052230,000362: # C(LST1+3) = - (T5 - T4) + 1
052231,000363: # C(LST1+4) = - (T6 - T5) + 1
052232,000364:
052233,000365: # C(LST2 ) = 2CADR TASK1
052234,000366: # C(LST2+2 ) = 2CADR TASK2
052235,000367: # C(LST2+4 ) = 2CADR TASK3
052236,000368: # C(LST2+6 ) = 2CADR TASK4
052237,000369: # C(LST2+8 ) = 2CADR TASK5
052238,000370: # C(LST2+10) = 2CADR TASK6
052239,000371:
Page 1231 |
052241,000373: # ENTERS HERE ON T3 RUPT TO DISPATCH WAITLISTED TASK.
052242,000374:
052243,000375: 01,3416 00006 T3RUPT EXTEND
052244,000376: 01,3417 04007 ROR SUPERBNK # READ CURRENT SUPERBANK VALUE AND
052245,000377: 01,3420 54016 TS BANKRUPT # SAVE WITH E AND F BANK VALUES.
052246,000378: 01,3421 00006 EXTEND
052247,000379: 01,3422 22012 QXCH QRUPT
052248,000380:
052249,000381: 01,3423 35000 T3RUPT2 CAF NEG1/2 # DISPATCH WAITLIST TASK.
052250,000382: 01,3424 57407 XCH LST1 +7
052251,000383: 01,3425 57406 XCH LST1 +6
052252,000384: 01,3426 57405 XCH LST1 +5
052253,000385: 01,3427 57404 XCH LST1 +4 # 1. MOVE UP LST1 CONTENTS, ENTERING
052254,000386: 01,3430 57403 XCH LST1 +3 # A VALUE OF 1/2 +1 AT THE BOTTOM
052255,000387: 01,3431 57402 XCH LST1 +2 # FOR T6-T5, CORRESPONDING TO THE
052256,000388: 01,3432 57401 XCH LST1 +1 # INTERVAL 81.91 SEC FOR ENDTASK.
052257,000389: 01,3433 57400 XCH LST1
052258,000390: 01,3434 64777 AD POSMAX # 2. SET T3 = 1.0 - T2 - T USING LIST 1.
052259,000391: 01,3435 26026 ADS TIME3 # SO T3 WONT TICK DURING UPDATE.
052260,000392: 01,3436 54734 TS RUPTAGN
052261,000393: 01,3437 45021 CS ZERO
052262,000394: 01,3440 54734 TS RUPTAGN # SETS RUPTAGN TO +1 ON OVERFLOW.
052263,000395:
052264,000396: 01,3441 00006 EXTEND # DISPATCH TASK.
052265,000397: 01,3442 45305 DCS ENDTASK
052266,000398: 01,3443 53431 DXCH LST2 +16D
052267,000399: 01,3444 53427 DXCH LST2 +14D
052268,000400: 01,3445 53425 DXCH LST2 +12D
052269,000401: 01,3446 53423 DXCH LST2 +10D
052270,000402: 01,3447 53421 DXCH LST2 +8D
052271,000403: 01,3450 53417 DXCH LST2 +6
052272,000404: 01,3451 53415 DXCH LST2 +4
052273,000405: 01,3452 53413 DXCH LST2 +2
052274,000406: 01,3453 53411 DXCH LST2
052275,000407:
052276,000408: 01,3454 56001 XCH L
052277,000409: 01,3455 00006 EXTEND
052278,000410: 01,3456 01007 WRITE SUPERBNK # SET SUPERBANK FROM BBCON OF 2CADR
052279,000411: 01,3457 56001 XCH L # RESTORE TO L FOR DXCH Z.
052280,000412: 01,3460 52006 DTCB
052281,000413:
Page 1232 |
052283,000415: # RETURN, AFTER EXECUTION OF T3 OVERFLOW TASK:
052284,000416:
052285,000417: 5324 BLOCK 02
052286,000418: 5324 COUNT 02/WAIT
052287,000419:
052288,000420: 5324 10734 TASKOVER CCS RUPTAGN # IF +1 RETURN TO T3RUPT, IF -0 RESUME.
052289,000421: 5325 35266 CAF WAITBB
052290,000422: 5326 54006 TS BBANK
052291,000423: 5327 13423 TCF T3RUPT2 # DISPATCH NEXT TASK IF IT WAS DUE.
052292,000424:
052293,000425: 5330 30016 CA BANKRUPT
052294,000426: 5331 00006 EXTEND
052295,000427: 5332 01007 WRITE SUPERBNK # RESTORE SUPERBANK BEFORE RESUME IS DONE
052296,000428:
052297,000429: 5333 00006 RESUME EXTEND
052298,000430: 5334 22012 QXCH QRUPT
052299,000431: 5335 30016 NOQRSM CA BANKRUPT
052300,000432: 5336 56006 XCH BBANK
052301,000433: 5337 52011 NOQBRSM DXCH ARUPT
052302,000434: 5340 00003 RELINT
052303,000435: 5341 50017 RESUME
052304,000436:
Page 1233 |
052306,000438: # LONGCALL
052307,000439: # PROGRAM DESCRIPTION DATE - 17 MARCH 1967
052308,000440: # PROGRAM WRITTEN BY W.H.VANDEVER LOG SECTION WAITLIST
052309,000441: # MOD BY - R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 100
052310,000442:
052311,000443: # FUNCTIONAL DESCRIPTION -
052312,000444: # LONGCALL IS CALLED WITH THE DELTA TIME ARRIVING IN A,L SCALED AS TIME2,TIME1 WITH THE 2CADR OF THE TASK
052313,000445: # IMMEDIATELY FOLLOWING THE TC LONGCALL. FOR EXAMPLE, IT MIGHT BE DONE AS FOLLOWS WHERE TIMELOC IS THE NAME OF
052314,000446: # A DP REGISTER CONTAINING A DELTA TIME AND WHERE TASKTODO IS THE NAME OF THE LOCATION AT WHICH LONGCALL IS TO
052315,000447: # START
052316,000448:
052317,000449: # CALLING SEQUENCE -
052318,000450: # EXTEND
052319,000451: # DCA TIMELOC
052320,000452: # TC LONGCALL
052321,000453: # 2CADR TASKTODO
052322,000454:
052323,000455: # NORMAL EXIT MODE -
052324,000456: # 1). TC WAITLIST
052325,000457: # 2). DTCB (TO L+3 OF CALLING ROUTINE 1ST PASS THRU LONGCYCL)
052326,000458: # 3). DTCB (TO TASKOVER ON SUBSEQUENT PASSES THRU LONGCYCL)
052327,000459:
052328,000460: # ALARM OR ABORT EXIT MODE -
052329,000461: # NONE
052330,000462:
052331,000463: # OUTPUT -
052332,000464: # LONGTIME AND LONGTIME+1 = DELTA TIME
052333,000465: # LONGEXIT AND LONGEXIT+1 = RETURN 2CADR
052334,000466: # LONGCADR AND LONGCADR+1 = TASK 2CADR
052335,000467: # A = SINGLE PRECISION TIME FOR WAITLIST
052336,000468:
052337,000469: # ERASABLE INITIALIZATION -
052338,000470: # A = MOST SIGNIFICANT PART OF DELTA TIME
052339,000471: # L = LEAST SIGNIFICANT PART OF DELTA TIME
052340,000472: # Q = ADDRESS OF 2CADR TASK VALUE
052341,000473:
052342,000474: # DEBRIS -
052343,000475: # A,Q,L
052344,000476: # LONGCADR AND LONGCADR+1
052345,000477: # LONGEXIT AND LONGEXIT+1
052346,000478: # LONGTIME AND LONGTIME+1
052347,000479:
052348,000480: # *** THE FOLLOWING IS TO BE IN FIXED-FIXED AND UNSWITCHED ERRASIBLE ***
052349,000481:
052350,000482: 5342 BLOCK 02
052351,000483: 5342 E3,1400 EBANK= LST1
052352,000484: 5342 53140 LONGCALL DXCH LONGTIME # OBTAIN THE DELTA TIME
052353,000485:
052354,000486: 5343 00006 EXTEND # OBTAIN THE 2CADR
Page 1234 |
052356,000488: 5344 50002 NDX Q
052357,000489: 5345 30001 DCA 0
052358,000490: 5346 53134 DXCH LONGCADR
052359,000491:
052360,000492: 5347 00006 EXTEND # NOW GO TO THE APPROPRIATE SWITCHED BANK
052361,000493: 5350 35353 DCA LGCL2CDR # FOR THE REST OF LONGCALL
052362,000494: 5351 52006 DTCB
052363,000495:
052364,000496: 5352 E3,1400 EBANK= LST1
052365,000497: 5352 03461 02063 LGCL2CDR 2CADR LNGCALL2
052366,000498:
052367,000499: # *** THE FOLLOWING MAY BE IN A SWITCHED BANK, INCLUDING ITS ERASABLE ***
052368,000500:
052369,000501: 01,3461 BANK 01
052370,000502: 01,3461 COUNT 01/WAIT
052371,000503:
052372,000504: 01,3461 23435 LNGCALL2 LXCH LONGEXIT +1 # SAVE THE CORRECT BB FOR RETURN
052373,000505: 01,3462 35016 CA TWO # OBTAIN THE RETURN ADDRESS
052374,000506: 01,3463 26002 ADS Q
052375,000507: 01,3464 55434 TS LONGEXIT
052376,000508:
052377,000509: # *** WAITLIST TASK LONGCYCL ***
052378,000510:
052379,000511: 01,3465 00006 LONGCYCL EXTEND # CAN WE SUCCESFULLY TAKE ABOUT 1.25
052380,000512: 01,3466 43477 DCS DPBIT14 # MINUTES OFF OF LONGTIME
052381,000513: 01,3467 21140 DAS LONGTIME
052382,000514:
052383,000515: 01,3470 11140 CCS LONGTIME +1 # THE REASONIBG BEHIND THIS PART IS
052384,000516: 01,3471 13510 TCF MUCHTIME # INVOLVED, TAKING INTO ACCOUNT THAT THE
052385,000517: # WORDS MAY NOT BE SIGNED CORRECTED (DP
052386,000518: # BASIC INSTRUCTIONS
052387,000519: # DO NOT SIGN CORRECT) AND THAT WE SUBTRAC
052388,000520: # TED BIT14 (1 OVER HALF THE POS. VALUE
052389,000521: # REPRESENTIBLE IN SINGLE WORD)
052390,000522: 01,3472 13473 NOOP # CAN:T GET HERE **********
052391,000523: 01,3473 13474 TCF +1
052392,000524: 01,3474 11137 CCS LONGTIME
052393,000525: 01,3475 13510 TCF MUCHTIME
052394,000526: 01,3476 00000 DPBIT14 OCT 00000
052395,000527: 01,3477 20000 OCT 20000
052396,000528:
052397,000529: # LONGCALL
052398,000530: 01,3500 35002 LASTTIME CA BIT14 # GET BACK THE CORRECT DELTA TFOR WAITLIST
052399,000531: 01,3501 27140 ADS LONGTIME +1
052400,000532: 01,3502 05245 TC WAITLIST
052401,000533: 01,3503 E3,1400 EBANK= LST1
052402,000534: 01,3503 03515 02063 2CADR GETCADR # THE ENTRY TO OUR LONGCADR
052403,000535:
052404,000536: 01,3505 33517 LONGRTRN CA TSKOVCDR # SET IT UP SO THAT ONLY THE FIRST EXIT IS
Page 1235 |
052406,000538: 01,3506 53435 DXCH LONGEXIT # TO THE CALLER OF LONGCALL
052407,000539: 01,3507 52006 DTCB # THE REST ARE TO TASKOVER
052408,000540:
052409,000541: 01,3510 35002 MUCHTIME CA BIT14 # WE HAVE OVER OUR ABOUT 1.25 MINUTES
052410,000542: 01,3511 05245 TC WAITLIST # SO SET UP FOR ANOTHER CYCLE THROUGH HERE
052411,000543: 01,3512 E3,1400 EBANK= LST1
052412,000544: 01,3512 03465 02063 2CADR LONGCYCL
052413,000545:
052414,000546: 01,3514 13505 TCF LONGRTRN # NOW EXIT PROPERLY
052415,000547:
052416,000548: # *** WAITLIST TASK GETCADR ***
052417,000549:
052418,000550: 01,3515 53134 GETCADR DXCH LONGCADR # GET THE LONGCALL THAT WE WISHED TO START
052419,000551: 01,3516 52006 DTCB # AND TRANSFER CONTROL TO IT
052420,000552:
052421,000553: 01,3517 05324 TSKOVCDR GENADR TASKOVER
052422,000554:
052423,000555:
End of include-file WAITLIST.agc. Parent file is MAIN.agc