Source Code
These source-code files are part of a reconstructed copy of Comanche 67, the
Apollo Guidance Computer (AGC) Command Module (CM) software for Apollo 12.
They have been adapted from sources files for Comanche 55, and updated via disassembly of binary dumps of original core rope memory modules, part numbers 2003972-1081, 2003972-1091, 2003972-1111, 2003972-1121, 2003972-1131, and 2003972-1141. Since only binary dumps (rather than listings) of Comanche 67 are available as source material, all comments and labels are approximate. They have been taken from other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing. |
050667,000002: ## Copyright: Public domain.
050668,000003: ## Filename: WAITLIST.agc
050669,000004: ## Purpose: A section of Comanche revision 067.
050670,000005: ## It is part of the reconstructed source code for the flight
050671,000006: ## software for the Command Module's (CM) Apollo Guidance Computer
050672,000007: ## (AGC) for Apollo 12. No original listings of this program are
050673,000008: ## available; instead, this file was created via dissassembly of
050674,000009: ## dumps of Comanche 067 core rope modules and comparison with
050675,000010: ## other AGC programs.
050676,000011: ## Assembler: yaYUL
050677,000012: ## Contact: Ron Burkey <info@sandroid.org>.
050678,000013: ## Website: www.ibiblio.org/apollo/index.html
050679,000014: ## Mod history: 2023-08-16 MAS Created from Comanche 055.
050680,000015: ## 2024-05-13 MAS Updated for Comanche 067.
050681,000016:
050682,000017: # PROGRAM DESCRIPTION DATE - 10 OCTOBER 1966
050683,000018: # MOD NO - 2 LOG SECTION - WAITLIST
050684,000019: # MOD BY - MILLER (DTMAX INCREASED TO 162.5 SEC) ASSEMBLY SUNBURST REV 5
050685,000020: # MOD 3 BY KERNAN (INHINT INSERTED AT WAITLIST) 2/28/68 SKIPPER REV 4
050686,000021: # MOD 4 BY KERNAN (TWIDDLE IN 54) 3/28/68 SKIPPER REV 13.
050687,000022:
050688,000023: # FUNCTIONAL DESCRIPTION -
050689,000024: # PART OF A SECTION OF PROGRAMS,- WAITLIST, TASKOVER, T3RUPT, USED TO CALL A PROGRAM, (CALLED A TASK),
050690,000025: # WHICH IS TO BEGIN IN C(A) CENTISECONDS. WAITLIST UPDATES TIME3, LST1 AND LST2. THE MEANING OF THESE LISTS
050691,000026: # FOLLOW.
050692,000027:
050693,000028: # C(TIME3) = 16384 -(T1-T) CENTISECONDS, (T=PRESENT TIME, T1-TIME FOR TASK1)
050694,000029:
050695,000030: # C(LST1) = -(T2-T1)+1
050696,000031: # C(LST1 +1) = -(T3-T2)+1
050697,000032: # C(LST1 +2) = -(T4-T3)+1
050698,000033: # .
050699,000034: # .
050700,000035: # C(LST1 +6) = -(T8-T7)+1
050701,000036: # C(LST1 +7) = -(T9-T8)+1
050702,000037:
050703,000038: # C(LST2) = 2CADR OF TASK1
050704,000039: # C(LST2 +2) = 2CADR OF TASK2
050705,000040: # .
050706,000041: # .
050707,000042: # C(LST2 +14) = 2CADR OF TASK8
050708,000043: # C(LST2 +16) = 2CADR OF TASK9
050709,000044:
050710,000045: # WARNINGS-
050711,000046: # --------
050712,000047: # 1) 1 <= C(A) <= 16250D (1 CENTISECOND TO 162.5 SEC)
050713,000048: # 2) 9 TASKS MAXIMUM
050714,000049: # 3) TASKS CALLED UNDER INTERRUPT INHIBITED
050715,000050: # 4) TASKS END BY TC TASKOVER
050716,000051:
050717,000052: # CALLING SEQUENCE -
050718,000053: # L-1 CA DELTAT (TIME IN CENTISECONDS TO TASK START)
050719,000054: # L TC WAITLIST
050720,000055: # L+1 2CADR DESIRED TASK
050721,000056: # L+2 (MINOR OF 2CADR)
050722,000057: # L+3 RELINT (RETURNS HERE)
050723,000058:
050724,000059: # TWIDDLE-
050725,000060: # -------
050726,000061: # TWIDDLE IS FOR USE WHEN THE TASK BEING SET UP IS IN THE SAME EBANK AND FBANK AS THE USER. IN
050727,000062: # SUCH CASES, IT IMPROVES UPON WAITLIST BY ELIMINATING THE NEED FOR THE BBCON HALF OF THE 2CADR,
050728,000063: # SAVING A WORD. TWIDDLE IS LIKE WAITLIST IN EVERY RESPECT EXCEPT CALLING SEQUENCE, TO WIT-
050729,000064: # L-1 CA DELTAT
050730,000065: # L TC TWIDDLE
050731,000066: # L+1 ADRES DESIRED TASK
050732,000067: # L+2 RELINT (RETURNS HERE)
050733,000068:
050734,000069: # NORMAL EXIT MODES -
050735,000070: # AT L+3 OF CALLING SEQUENCE
050736,000071:
050737,000072: # ALARM OR ABORT EXIT MODES -
050738,000073: # TC ABORT
050739,000074: # OCT 1203 (WAITLIST OVERFLOW - TOO MANY TASKS)
050740,000075:
050741,000076: # ERASABLE INITIALIZATION REQUIRED -
050742,000077: # ACCOMPLISHED BY FRESH START,-- LST2, ..., LST2 +16 = ENDTASK
050743,000078: # LST1, ..., LST1 +7 = NEG1/2
050744,000079:
050745,000080: # OUTPUT --
050746,000081: # LST1 AND LST2 UPDATED WITH NEW TASK AND ASSOCIATED TIME.
050747,000082:
050748,000083: # DEBRIS -
050749,000084: # CENTRALS - A,Q,L
050750,000085: # OTHER - WAITEXIT, WAITADR, WAITTEMP, WAITBANK
050751,000086:
050752,000087: # DETAILED ANALYSIS OF TIMING -
050753,000088: # CONTROL WILL NOT BE RETURNED TO THE SPECIFIED ADDRESS (2CADR) IN EXACTLY DELTA T CENTISECONDS.
050754,000089: # THE APPROXIMATE TIME MAY BE CALCULATED AS FOLLOWS
050755,000090: # LET TO = THE TIME OF THE TC WAITLIST
050756,000091: # LET TS = TO +147U + COUNTER INCREMENTS (SET UP TIME)
050757,000092: # LET X = TS -(100TS)/100 (VARIANCE FROM COUNTERS)
050758,000093: # LET Y = LENGTH OF TIME OF INHIBIT INTERRUPT AFTER T3RUPT
050759,000094: # LET Z = LENGTH OF TIME TO PROCESS TASKS WHICH ARE DUE THIS T3RUPT BUT DISPATCHED EARLIER.
050760,000095: # (Z=0, USUALLY)
050761,000096: # LET DELTD = THE ACTUAL TIME TAKEN TO GIVE CONTROL TO 2CADR
050762,000097: # THEN DELTD = TS+DELTA T -X +Y +Z +1.05MS* +COUNTERS*
050763,000098: # *-THE TIME TAKEN BY WAITLIST ITSELF AND THE COUNTER TICKING DURING THIS WAITLIST TIME.
050764,000099: # IN SHORT, THE ACTUAL TIME TO RETURN CONTROL TO A 2CADR IS AUGMENTED BY THE TIME TO SET UP THE TASK:S
050765,000100: # INTERRUPT, ALL COUNTERS TICKING, THE T3RUPT PROCESSING TIME, THE WAITLIST PROCESSING TIME AND THE POSSIBILITY
050766,000101: # OF OTHER TASKS INHIBITING THE INTERRUPT.
050767,000102:
050768,000103: 5251 BLOCK 02
050769,000104: 5251 E3,1400 EBANK= LST1 # TASK LISTS IN SWITCHED E BANK.
050770,000105:
050771,000106: 5251 COUNT 02/WAIT
050772,000107:
050773,000108: 5251 00004 TWIDDLE INHINT
050774,000109: 5252 54001 TS L # SAVE DELAY TIME IN L
050775,000110: 5253 35013 CA POSMAX
050776,000111: 5254 26002 ADS Q # CREATING OVERFLOW AND Q-1 IN Q
050777,000112: 5255 30006 CA BBANK
050778,000113: 5256 00006 EXTEND
050779,000114: 5257 04007 ROR SUPERBNK
050780,000115: 5260 56001 XCH L
050781,000116:
050782,000117: 5261 00004 WAITLIST INHINT
050783,000118: 5262 00006 EXTEND
050784,000119: 5263 65275 BZMF WATLST0-
050785,000120: 5264 56002 XCH Q # SAVE DELTA T IN Q AND RETURN IN
050786,000121: 5265 54061 TS WAITEXIT # WAITEXIT.
050787,000122: 5266 00006 EXTEND
050788,000123: 5267 50061 INDEX WAITEXIT # IF TWIDDLING, THE TS SKIPS TO HERE
050789,000124: 5270 30001 DCA 0 # PICK UP 2CADR OF TASK.
050790,000125: 5271 54063 -1 TS WAITADR # BBCON WILL REMAIN IN L
050791,000126: 5272 35302 DLY2 CAF WAITBB # ENTRY FROM FIXDELAY AND VARDELAY.
050792,000127: 5273 56006 XCH BBANK
050793,000128: 5274 13246 TCF WAIT2
050794,000129:
050795,000130: 5275 05725 WATLST0- TC POODOO
050796,000131: 5276 21204 OCT 21204
050797,000132:
050798,000133: # RETURN TO CALLER AFTER TASK INSERTION:
050799,000134:
050800,000135: 5277 52062 LVWTLIST DXCH WAITEXIT
050801,000136: 5300 65032 AD TWO
050802,000137: 5301 52006 DTCB
050803,000138:
050804,000139: 5302 E3,1400 EBANK= LST1
050805,000140: 5302 02063 WAITBB BBCON WAIT2
050806,000141:
050807,000142: # RETURN TO CALLER +2 AFTER WAITING DT SPECIFIED AT CALLER +1.
050808,000143:
050809,000144: 5303 50002 FIXDELAY INDEX Q # BOTH ROUTINES MUST BE CALLED UNDER
050810,000145: 5304 30000 CAF 0 # WAITLIST CONTROL AND TERMINATE THE TASK
050811,000146: 5305 24002 INCR Q # IN WHICH THEY WERE CALLED.
050812,000147:
050813,000148: # RETURN TO CALLER +1 AFTER WAITING THE DT AS ARRIVING IN A.
050814,000149:
050815,000150: 5306 56002 VARDELAY XCH Q # DT TO Q. TASK ADRES TO WAITADR.
050816,000151: 5307 54063 TS WAITADR
050817,000152: 5310 30006 CA BBANK # BBANK IS SAVED DURING DELAY.
050818,000153: 5311 00006 EXTEND
050819,000154: 5312 04007 ROR SUPERBNK # ADD SBANK TO BBCON.
050820,000155: 5313 54001 TS L
050821,000156: 5314 35317 CAF DELAYEX
050822,000157: 5315 54061 TS WAITEXIT # GO TO TASKOVER AFTER TASK ENTRY.
050823,000158: 5316 15272 TCF DLY2
050824,000159:
050825,000160: 5317 15336 DELAYEX TCF TASKOVER -2 # RETURNS TO TASKOVER
050826,000161:
050827,000162: # ENDTASK MUST BE ENTERED IN FIXED-FIXED SO IT IS DISTINGUISHABLE BY ITS ADRES ALONE.
050828,000163:
050829,000164: 5320 E3,1400 EBANK= LST1
050830,000165: 5320 72455 73714 ENDTASK -2CADR SVCT3
050831,000166:
050832,000167: 5322 10076 SVCT3 CCS FLAGWRD2 # DRIFT FLAG
050833,000168: 5323 15340 TCF TASKOVER
050834,000169: 5324 15340 TCF TASKOVER
050835,000170: 5325 15326 TCF +1
050836,000171:
050837,000172: 5326 11322 CCS IMUCADR # DON'T DO NBDONLY IF SOMEONE ELSE IS IN
050838,000173: 5327 17717 TCF SVCT3X
050839,000174: 5330 15333 TCF +3
050840,000175: 5331 17717 TCF SVCT3X
050841,000176: 5332 17717 TCF SVCT3X
050842,000177: 5333 37672 +3 CAF PRIO35 # COMPENSATE FOR NBD COEFFICIENTS ONLY.
050843,000178: 5334 05150 TC NOVAC # ENABLE EVERY 81.93 SECONDS
050844,000179: 5335 E3,1460 EBANK= NBDX
050845,000180: 5335 03542 14063 2CADR NBDONLY
050846,000181:
050847,000182: 5337 15340 TCF TASKOVER
050848,000183:
050849,000184: 6000 SETLOC FFTAG6
050850,000185: 6000 BANK
050851,000186:
050852,000187: 7717 05303 SVCT3X TC FIXDELAY # DELAY MAX OF 2 TIMES FOR IMU ZERO
050853,000188: 7720 00764 DEC 500 B-14
050854,000189: 7721 05322 TC SVCT3 # CHECK DRIFT FLAG AGAIN
050855,000190:
050856,000191: # BEGIN TASK INSERTION.
050857,000192:
050858,000193: 01,3246 BANK 01
050859,000194: 01,3246 COUNT 01/WAIT
050860,000195:
050861,000196: 01,3246 54062 WAIT2 TS WAITBANK # BBANK OF CALLING PROGRAM.
050862,000197: 01,3247 40026 CS TIME3
050863,000198: 01,3250 65024 AD BIT8 # BIT 8 = OCT 200
050864,000199: 01,3251 10000 CCS A # TEST 200 - C(TIME3). IF POSITIVE,
050865,000200: # IT MEANS THAT TIME3 OVERFLOW HAS OCCURRED PRIOR TO CS TIME3 AND THAT
050866,000201: # C(TIME3) = T - T1, INSTEAD OF 1.0 - (T1 - T). THE FOLLOWING FOUR
050867,000202: # ORDERS SET C(A) = TD - T1 + 1 IN EITHER CASE.
050868,000203:
050869,000204: 01,3252 66056 AD OCT40001 # OVERFLOW HAS OCCURRED. SET C(A) =
050870,000205: 01,3253 40000 CS A # T - T1 + 1.0 - 201
050871,000206:
050872,000207: # NORMAL CASE (C(A) NNZ) YIELDS SAME C(A): -( -(1.0-(T1-T)) + 200) - 1
050873,000208:
050874,000209: 01,3254 63402 AD OCT40201
050875,000210: 01,3255 60002 AD Q # RESULT = TD - T1 + 1.
050876,000211:
050877,000212: 01,3256 10000 CCS A # TEST TD - T1 +1
050878,000213:
050879,000214: 01,3257 61400 AD LST1 # IF TD - T1 POS, GO TO WTLST5 WITH
050880,000215: 01,3260 13322 TCF WTLST5 # C(A) = (TD - T1) + C(LST1) = TD-T2+1
050881,000216:
050882,000217: 01,3261 13262 NOOP
050883,000218: 01,3262 40002 CS Q
050884,000219:
050885,000220: # NOTE THAT THIS PROGRAM SECTION IS NEVER ENTERED WHEN T-T1 G/E -1,
050886,000221: # SINCE TD-T1+1 = (TD-T) + (T-T1+1), AND DELTA T = TD-T G/E +1. (G/E
050887,000222: # SYMBOL MEANS GREATER THAN OR EQUAL TO). THUS THERE NEED BE NO CON-
050888,000223: # CERN OVER A PREVIOUS OR IMMINENT OVERFLOW OF TIME3 HERE.
050889,000224:
050890,000225: 01,3263 65016 AD POS1/2 # WHEN TD IS NEXT, FORM QUANTITY
050891,000226: 01,3264 65016 AD POS1/2 # 1.0 - DELTA T = 1.0 - (TD - T)
050892,000227: 01,3265 56026 XCH TIME3
050893,000228: 01,3266 65015 AD NEGMAX
050894,000229: 01,3267 60002 AD Q # 1.0 - DELTAT T NOW COMPLETE.
050895,000230: 01,3270 00006 EXTEND # ZERO INDEX Q.
050896,000231: 01,3271 22007 QXCH 7 # (ZQ)
050897,000232:
050898,000233: 01,3272 57400 WTLST4 XCH LST1
050899,000234: 01,3273 57401 XCH LST1 +1
050900,000235: 01,3274 57402 XCH LST1 +2
050901,000236: 01,3275 57403 XCH LST1 +3
050902,000237: 01,3276 57404 XCH LST1 +4
050903,000238: 01,3277 57405 XCH LST1 +5
050904,000239: 01,3300 57406 XCH LST1 +6
050905,000240: 01,3301 57407 XCH LST1 +7
050906,000241:
050907,000242: 01,3302 30063 CA WAITADR # (MINOR PART OF TASK CADR HAS BEEN IN L.)
050908,000243: 01,3303 50002 INDEX Q
050909,000244: 01,3304 13305 TCF +1
050910,000245:
050911,000246: 01,3305 53411 DXCH LST2
050912,000247: 01,3306 53413 DXCH LST2 +2
050913,000248: 01,3307 53415 DXCH LST2 +4
050914,000249: 01,3310 53417 DXCH LST2 +6
050915,000250: 01,3311 53421 DXCH LST2 +8D
050916,000251: 01,3312 53423 DXCH LST2 +10D # AT END, CHECK THAT C(LST2 +10) IS STD
050917,000252: 01,3313 53425 DXCH LST2 +12D
050918,000253: 01,3314 53427 DXCH LST2 +14D
050919,000254: 01,3315 53431 DXCH LST2 +16D
050920,000255: 01,3316 65320 AD ENDTASK # END ITEM, AS CHECK FOR EXCEEDING
050921,000256: # THE LENGTH OF THE LIST.
050922,000257: 01,3317 00006 EXTEND # DUMMY TASK ADRES SHOULD BE IN FIXED-
050923,000258: 01,3320 15277 BZF LVWTLIST # FIXED SO ITS ADRES ALONE DISTINGUISHES
050924,000259: 01,3321 13375 TCF WTABORT # IT.
050925,000260:
050926,000261: 01,3322 10000 WTLST5 CCS A # TEST TD - T2 + 1
050927,000262: 01,3323 61401 AD LST1 +1
050928,000263: 01,3324 13330 TCF +4
050929,000264: 01,3325 65033 AD ONE
050930,000265: 01,3326 03403 TC WTLST2
050931,000266: 01,3327 00001 OCT 1
050932,000267:
050933,000268: 01,3330 10000 +4 CCS A # TEST TD - T3 + 1
050934,000269: 01,3331 61402 AD LST1 +2
050935,000270: 01,3332 13336 TCF +4
050936,000271: 01,3333 65033 AD ONE
050937,000272: 01,3334 03403 TC WTLST2
050938,000273: 01,3335 00002 OCT 2
050939,000274:
050940,000275: 01,3336 10000 +4 CCS A # TEST TD - T4 + 1
050941,000276: 01,3337 61403 AD LST1 +3
050942,000277: 01,3340 13344 TCF +4
050943,000278: 01,3341 65033 AD ONE
050944,000279: 01,3342 03403 TC WTLST2
050945,000280: 01,3343 00003 OCT 3
050946,000281:
050947,000282: 01,3344 10000 +4 CCS A # TEST TD - T5 + 1
050948,000283: 01,3345 61404 AD LST1 +4
050949,000284: 01,3346 13352 TCF +4
050950,000285: 01,3347 65033 AD ONE
050951,000286: 01,3350 03403 TC WTLST2
050952,000287: 01,3351 00004 OCT 4
050953,000288:
050954,000289: 01,3352 10000 +4 CCS A # TEST TD - T6 + 1
050955,000290: 01,3353 61405 AD LST1 +5
050956,000291: 01,3354 13360 TCF +4
050957,000292: 01,3355 65033 AD ONE
050958,000293: 01,3356 03403 TC WTLST2
050959,000294: 01,3357 00005 OCT 5
050960,000295:
050961,000296: 01,3360 10000 +4 CCS A # TEST TD - T7 + 1
050962,000297: 01,3361 61406 AD LST1 +6
050963,000298: 01,3362 13366 TCF +4
050964,000299: 01,3363 65033 AD ONE
050965,000300: 01,3364 03403 TC WTLST2
050966,000301: 01,3365 00006 OCT 6
050967,000302:
050968,000303: 01,3366 10000 +4 CCS A
050969,000304: 01,3367 61407 AD LST1 +7
050970,000305: 01,3370 13374 TCF +4
050971,000306: 01,3371 65033 AD ONE
050972,000307: 01,3372 03403 TC WTLST2
050973,000308: 01,3373 00007 OCT 7
050974,000309:
050975,000310: 01,3374 10000 +4 CCS A
050976,000311: 01,3375 07755 WTABORT TC BAILOUT # NO ROOM IN THE INN.
050977,000312: 01,3376 31203 OCT 31203
050978,000313:
050979,000314: 01,3377 65033 AD ONE
050980,000315: 01,3400 03403 TC WTLST2
050981,000316: 01,3401 00010 OCT 10
050982,000317:
050983,000318: 01,3402 40201 OCT40201 OCT 40201
050984,000319:
050985,000320: # THE ENTRY TO WTLST2 JUST PRECEDING OCT N IS FOR T LE TD LE T -1.
050986,000321: # N N+1
050987,000322:
050988,000323: # (LE MEANS LESS THAN OR EQUAL TO). AT ENTRY, C(A) = -(TD - T + 1)
050989,000324: # N+1
050990,000325:
050991,000326: # THE LST1 ENTRY-(T -T +1) IS TO BE REPLACED BY -(TD - T + 1), AND
050992,000327: # N+1 N N
050993,000328:
050994,000329: # THE ENTRY-(T - TD + 1) IS TO BE INSERTED IMMEDIATELY FOLLOWING.
050995,000330: # N+1
050996,000331:
050997,000332: 01,3403 54064 WTLST2 TS WAITTEMP # C(A) = -(TD - T + 1)
050998,000333: 01,3404 50002 INDEX Q
050999,000334: 01,3405 30000 CAF 0
051000,000335: 01,3406 54002 TS Q # INDEX VALUE INTO Q.
051001,000336:
051002,000337: 01,3407 35033 CAF ONE
051003,000338: 01,3410 60064 AD WAITTEMP
051004,000339: 01,3411 50002 INDEX Q # C(A) = -(TD - T ) + 1.
051005,000340: 01,3412 27377 ADS LST1 -1 # N
051006,000341:
051007,000342: 01,3413 40064 CS WAITTEMP
051008,000343: 01,3414 50002 INDEX Q
051009,000344: 01,3415 13272 TCF WTLST4
051010,000345:
051011,000346: # C(TIME3) = 1.0 - (T1 - T)
051012,000347:
051013,000348: # C(LST1 ) = - (T2 - T1) + 1
051014,000349: # C(LST1+1) = - (T3 - T2) + 1
051015,000350: # C(LST1+2) = - (T4 - T3) + 1
051016,000351: # C(LST1+3) = - (T5 - T4) + 1
051017,000352: # C(LST1+4) = - (T6 - T5) + 1
051018,000353:
051019,000354: # C(LST2 ) = 2CADR TASK1
051020,000355: # C(LST2+2 ) = 2CADR TASK2
051021,000356: # C(LST2+4 ) = 2CADR TASK3
051022,000357: # C(LST2+6 ) = 2CADR TASK4
051023,000358: # C(LST2+8 ) = 2CADR TASK5
051024,000359: # C(LST2+10) = 2CADR TASK6
051025,000360:
051026,000361: # ENTERS HERE ON T3 RUPT TO DISPATCH WAITLISTED TASK.
051027,000362:
051028,000363: 01,3416 00006 T3RUPT EXTEND
051029,000364: 01,3417 04007 ROR SUPERBNK # READ CURRENT SUPERBANK VALUE AND
051030,000365: 01,3420 54016 TS BANKRUPT # SAVE WITH E AND F BANK VALUES.
051031,000366: 01,3421 00006 EXTEND
051032,000367: 01,3422 22012 QXCH QRUPT
051033,000368:
051034,000369: 01,3423 35014 T3RUPT2 CAF NEG1/2 # DISPATCH WAITLIST TASK.
051035,000370: 01,3424 57407 XCH LST1 +7
051036,000371: 01,3425 57406 XCH LST1 +6
051037,000372: 01,3426 57405 XCH LST1 +5
051038,000373: 01,3427 57404 XCH LST1 +4 # 1. MOVE UP LST1 CONTENTS, ENTERING
051039,000374: 01,3430 57403 XCH LST1 +3 # A VALUE OF 1/2 +1 AT THE BOTTOM
051040,000375: 01,3431 57402 XCH LST1 +2 # FOR T6-T5, CORRESPONDING TO THE
051041,000376: 01,3432 57401 XCH LST1 +1 # INTERVAL 81.91 SEC FOR ENDTASK.
051042,000377: 01,3433 57400 XCH LST1
051043,000378: 01,3434 65013 AD POSMAX # 2. SET T3 = 1.0 - T2 - T USING LIST 1.
051044,000379: 01,3435 26026 ADS TIME3 # SO T3 WONT TICK DURING UPDATE.
051045,000380: 01,3436 54734 TS RUPTAGN
051046,000381: 01,3437 45035 CS ZERO
051047,000382: 01,3440 54734 TS RUPTAGN # SETS RUPTAGN TO +1 ON OVERFLOW.
051048,000383:
051049,000384: 01,3441 00006 EXTEND # DISPATCH TASK.
051050,000385: 01,3442 45321 DCS ENDTASK
051051,000386: 01,3443 53431 DXCH LST2 +16D
051052,000387: 01,3444 53427 DXCH LST2 +14D
051053,000388: 01,3445 53425 DXCH LST2 +12D
051054,000389: 01,3446 53423 DXCH LST2 +10D
051055,000390: 01,3447 53421 DXCH LST2 +8D
051056,000391: 01,3450 53417 DXCH LST2 +6
051057,000392: 01,3451 53415 DXCH LST2 +4
051058,000393: 01,3452 53413 DXCH LST2 +2
051059,000394: 01,3453 53411 DXCH LST2
051060,000395:
051061,000396: 01,3454 56001 XCH L
051062,000397: 01,3455 00006 EXTEND
051063,000398: 01,3456 01007 WRITE SUPERBNK # SET SUPERBANK FROM BBCON OF 2CADR
051064,000399: 01,3457 56001 XCH L # RESTORE TO L FOR DXCH Z.
051065,000400: 01,3460 52006 DTCB
051066,000401:
051067,000402: # RETURN, AFTER EXECUTION OF T3 OVERFLOW TASK:
051068,000403:
051069,000404: 5340 BLOCK 02
051070,000405: 5340 COUNT 02/WAIT
051071,000406:
051072,000407: 5340 10734 TASKOVER CCS RUPTAGN # IF +1 RETURN TO T3RUPT, IF -0 RESUME.
051073,000408: 5341 35302 CAF WAITBB
051074,000409: 5342 54006 TS BBANK
051075,000410: 5343 13423 TCF T3RUPT2 # DISPATCH NEXT TASK IF IT WAS DUE.
051076,000411:
051077,000412: 5344 30016 CA BANKRUPT
051078,000413: 5345 00006 EXTEND
051079,000414: 5346 01007 WRITE SUPERBNK # RESTORE SUPERBANK BEFORE RESUME IS DONE
051080,000415:
051081,000416: 5347 00006 RESUME EXTEND
051082,000417: 5350 22012 QXCH QRUPT
051083,000418: 5351 30016 NOQRSM CA BANKRUPT
051084,000419: 5352 56006 XCH BBANK
051085,000420: 5353 52011 NOQBRSM DXCH ARUPT
051086,000421: 5354 00003 RELINT
051087,000422: 5355 50017 RESUME
051088,000423:
051089,000424: # LONGCALL
051090,000425: # PROGRAM DESCRIPTION DATE - 17 MARCH 1967
051091,000426: # PROGRAM WRITTEN BY W.H.VANDEVER LOG SECTION WAITLIST
051092,000427: # MOD BY - R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 100
051093,000428:
051094,000429: # FUNCTIONAL DESCRIPTION -
051095,000430: # LONGCALL IS CALLED WITH THE DELTA TIME ARRIVING IN A,L SCALED AS TIME2,TIME1 WITH THE 2CADR OF THE TASK
051096,000431: # IMMEDIATELY FOLLOWING THE TC LONGCALL. FOR EXAMPLE, IT MIGHT BE DONE AS FOLLOWS WHERE TIMELOC IS THE NAME OF
051097,000432: # A DP REGISTER CONTAINING A DELTA TIME AND WHERE TASKTODO IS THE NAME OF THE LOCATION AT WHICH LONGCALL IS TO
051098,000433: # START
051099,000434:
051100,000435: # CALLING SEQUENCE -
051101,000436: # EXTEND
051102,000437: # DCA TIMELOC
051103,000438: # TC LONGCALL
051104,000439: # 2CADR TASKTODO
051105,000440:
051106,000441: # NORMAL EXIT MODE -
051107,000442: # 1). TC WAITLIST
051108,000443: # 2). DTCB (TO L+3 OF CALLING ROUTINE 1ST PASS THRU LONGCYCL)
051109,000444: # 3). DTCB (TO TASKOVER ON SUBSEQUENT PASSES THRU LONGCYCL)
051110,000445:
051111,000446: # ALARM OR ABORT EXIT MODE -
051112,000447: # NONE
051113,000448:
051114,000449: # OUTPUT -
051115,000450: # LONGTIME AND LONGTIME+1 = DELTA TIME
051116,000451: # LONGEXIT AND LONGEXIT+1 = RETURN 2CADR
051117,000452: # LONGCADR AND LONGCADR+1 = TASK 2CADR
051118,000453: # A = SINGLE PRECISION TIME FOR WAITLIST
051119,000454:
051120,000455: # ERASABLE INITIALIZATION -
051121,000456: # A = MOST SIGNIFICANT PART OF DELTA TIME
051122,000457: # L = LEAST SIGNIFICANT PART OF DELTA TIME
051123,000458: # Q = ADDRESS OF 2CADR TASK VALUE
051124,000459:
051125,000460: # DEBRIS -
051126,000461: # A,Q,L
051127,000462: # LONGCADR AND LONGCADR+1
051128,000463: # LONGEXIT AND LONGEXIT+1
051129,000464: # LONGTIME AND LONGTIME+1
051130,000465:
051131,000466: # *** THE FOLLOWING IS TO BE IN FIXED-FIXED AND UNSWITCHED ERRASIBLE ***
051132,000467:
051133,000468: 5356 BLOCK 02
051134,000469: 5356 E3,1400 EBANK= LST1
051135,000470: 5356 53140 LONGCALL DXCH LONGTIME # OBTAIN THE DELTA TIME
051136,000471:
051137,000472: 5357 00006 EXTEND # OBTAIN THE 2CADR
051138,000473: 5360 50002 NDX Q
051139,000474: 5361 30001 DCA 0
051140,000475: 5362 53134 DXCH LONGCADR
051141,000476:
051142,000477: 5363 00006 EXTEND # NOW GO TO THE APPROPRIATE SWITCHED BANK
051143,000478: 5364 35367 DCA LGCL2CDR # FOR THE REST OF LONGCALL
051144,000479: 5365 52006 DTCB
051145,000480:
051146,000481: 5366 E3,1400 EBANK= LST1
051147,000482: 5366 03461 02063 LGCL2CDR 2CADR LNGCALL2
051148,000483:
051149,000484: # *** THE FOLLOWING MAY BE IN A SWITCHED BANK, INCLUDING ITS ERASABLE ***
051150,000485:
051151,000486: 01,3461 BANK 01
051152,000487: 01,3461 COUNT 01/WAIT
051153,000488:
051154,000489: 01,3461 23435 LNGCALL2 LXCH LONGEXIT +1 # SAVE THE CORRECT BB FOR RETURN
051155,000490: 01,3462 35032 CA TWO # OBTAIN THE RETURN ADDRESS
051156,000491: 01,3463 26002 ADS Q
051157,000492: 01,3464 55434 TS LONGEXIT
051158,000493:
051159,000494: # *** WAITLIST TASK LONGCYCL ***
051160,000495:
051161,000496: 01,3465 00006 LONGCYCL EXTEND # CAN WE SUCCESFULLY TAKE ABOUT 1.25
051162,000497: 01,3466 43477 DCS DPBIT14 # MINUTES OFF OF LONGTIME
051163,000498: 01,3467 21140 DAS LONGTIME
051164,000499:
051165,000500: 01,3470 11140 CCS LONGTIME +1 # THE REASONIBG BEHIND THIS PART IS
051166,000501: 01,3471 13510 TCF MUCHTIME # INVOLVED, TAKING INTO ACCOUNT THAT THE
051167,000502: # WORDS MAY NOT BE SIGNED CORRECTED (DP
051168,000503: # BASIC INSTRUCTIONS
051169,000504: # DO NOT SIGN CORRECT) AND THAT WE SUBTRAC
051170,000505: # TED BIT14 (1 OVER HALF THE POS. VALUE
051171,000506: # REPRESENTIBLE IN SINGLE WORD)
051172,000507: 01,3472 13473 NOOP # CAN:T GET HERE **********
051173,000508: 01,3473 13474 TCF +1
051174,000509: 01,3474 11137 CCS LONGTIME
051175,000510: 01,3475 13510 TCF MUCHTIME
051176,000511: 01,3476 00000 DPBIT14 OCT 00000
051177,000512: 01,3477 20000 OCT 20000
051178,000513:
051179,000514: # LONGCALL
051180,000515: 01,3500 35016 LASTTIME CA BIT14 # GET BACK THE CORRECT DELTA TFOR WAITLIST
051181,000516: 01,3501 27140 ADS LONGTIME +1
051182,000517: 01,3502 05261 TC WAITLIST
051183,000518: 01,3503 E3,1400 EBANK= LST1
051184,000519: 01,3503 03515 02063 2CADR GETCADR # THE ENTRY TO OUR LONGCADR
051185,000520:
051186,000521: 01,3505 33517 LONGRTRN CA TSKOVCDR # SET IT UP SO THAT ONLY THE FIRST EXIT IS
051187,000522: 01,3506 53435 DXCH LONGEXIT # TO THE CALLER OF LONGCALL
051188,000523: 01,3507 52006 DTCB # THE REST ARE TO TASKOVER
051189,000524:
051190,000525: 01,3510 35016 MUCHTIME CA BIT14 # WE HAVE OVER OUR ABOUT 1.25 MINUTES
051191,000526: 01,3511 05261 TC WAITLIST # SO SET UP FOR ANOTHER CYCLE THROUGH HERE
051192,000527: 01,3512 E3,1400 EBANK= LST1
051193,000528: 01,3512 03465 02063 2CADR LONGCYCL
051194,000529:
051195,000530: 01,3514 13505 TCF LONGRTRN # NOW EXIT PROPERLY
051196,000531:
051197,000532: # *** WAITLIST TASK GETCADR ***
051198,000533:
051199,000534: 01,3515 53134 GETCADR DXCH LONGCADR # GET THE LONGCALL THAT WE WISHED TO START
051200,000535: 01,3516 52006 DTCB # AND TRANSFER CONTROL TO IT
051201,000536:
051202,000537: 01,3517 05340 TSKOVCDR GENADR TASKOVER
051203,000538:
051204,000539:
End of include-file WAITLIST.agc. Parent file is MAIN.agc