Source Code
![]() |
This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure! |
046864,000002: ## Copyright: Public domain. 046865,000003: ## Filename: WAITLIST.agc 046866,000004: ## Purpose: Part of the source code for Luminary 1A build 099. 046867,000005: ## It is part of the source code for the Lunar Module's (LM) 046868,000006: ## Apollo Guidance Computer (AGC), for Apollo 11. 046869,000007: ## Assembler: yaYUL 046870,000008: ## Contact: Ron Burkey <info@sandroid.org>. 046871,000009: ## Website: www.ibiblio.org/apollo. 046872,000010: ## Pages: 1117-1132 046873,000011: ## Mod history: 2009-05-25 RSB Adapted from the corresponding 046874,000012: ## Luminary131 file, using page 046875,000013: ## images from Luminary 1A. 046876,000014: ## 2011-01-06 JL Fixed pseudo-label indentation. 046877,000015: ## 2011-05-07 JL Removed workarounds. 046878,000016: ## 2016-12-17 RSB Proofed text comments with octopus/ProoferComments 046879,000017: ## and corrected the errors found. 046880,000018: ## 2017-01-28 RSB WTIH -> WITH. 046881,000019: ## 2017-02-09 RSB Comment-text fixes identified in proofing Artemis 72. 046882,000020: ## 2017-02-27 RSB Corrected WAITP00H and LONGP00H to similar POOH names. 046883,000021: ## 2017-03-03 RSB Snapshot of Luminary 99 Rev 1. 046884,000022: ## 2017-03-14 RSB Comment-text fixes noted in proofing Luminary 116. 046885,000023: ## 2017-03-16 RSB Comment-text fixes identified in 5-way 046886,000024: ## side-by-side diff of Luminary 69/99/116/131/210. 046887,000025:
![]() |
Page 1117 |
046889,000027: # PROGRAM DESCRIPTION DATE - 10 OCTOBER 1966 046890,000028: # MOD NO - 2 LOG SECTION - WAITLIST 046891,000029: # MOD BY - MILLER (DTMAX INCREASED TO 162.5 SEC) ASSEMBLY SUNBURST REV 5 046892,000030: # MOD 3 BY KERNAN (INHINT INSERTED AT WAITLIST) 2/28/68 SKIPPER REV 4 046893,000031: # MOD 4 BY KERNAN (TWIDDLE IN 54) 3/28/68 SKIPPER REV 13. 046894,000032: 046895,000033: # FUNCTIONAL DESCRIPTION - 046896,000034: # PART OF A SECTION OF PROGRAMS,- WAITLIST, TASKOVER, T3RUPT, USED TO CALL A PROGRAM, (CALLED A TASK), 046897,000035: # WHICH IS TO BEGIN IN C(A) CENTISECONDS. WAITLIST UPDATES TIME3, LST1 AND LST2. THE MEANING OF THESE LISTS 046898,000036: # FOLLOW. 046899,000037: 046900,000038: # C(TIME3) = 16384 -(T1-T) CENTISECONDS, (T=PRESENT TIME, T1-TIME FOR TASK1) 046901,000039: 046902,000040: # C(LST1) = -(T2-T1)+1 046903,000041: # C(LST1 +1) = -(T3-T2)+1 046904,000042: # C(LST1 +2) = -(T4-T3)+1 046905,000043: # . 046906,000044: # . 046907,000045: # C(LST1 +6) = -(T8-T7)+1 046908,000046: # C(LST1 +7) = -(T9-T8)+1 046909,000047: 046910,000048: # C(LST2) = 2CADR OF TASK1 046911,000049: # C(LST2 +2) = 2CADR OF TASK2 046912,000050: # . 046913,000051: # . 046914,000052: # C(LST2 +14) = 2CADR OF TASK8 046915,000053: # C(LST2 +16) = 2CADR OF TASK9 046916,000054: 046917,000055: # WARNINGS - 046918,000056: # -------- 046919,000057: # 1) 1 <= C(A) <= 16250D (1 CENTISECOND TO 162.5 SEC) 046920,000058: # 2) 9 TASKS MAXIMUM 046921,000059: # 3) TASKS CALLED UNDER INTERRUPT INHIBITED 046922,000060: # 4) TASKS END BY TC TASKOVER 046923,000061: 046924,000062: # CALLING SEQUENCE - 046925,000063: # L-1 CA DELTAT (TIME IN CENTISECONDS TO TASK START) 046926,000064: # L TC WAITLIST 046927,000065: # L+1 2CADR DESIRED TASK 046928,000066: # L+2 (MINOR OF 2CADR) 046929,000067: # L+3 RELINT (RETURNS HERE) 046930,000068: 046931,000069: # TWIDDLE - 046932,000070: # ------- 046933,000071: # TWIDDLE IS FOR USE WHEN THE TASK BEING SET UP IS IN THE SAME EBANK AND FBANK AS THE USER. IN 046934,000072: # SUCH CASES, IT IMPROVES UPON WAITLIST BY ELIMINATING THE NEED FOR THE BBCON HALF OF THE 2CADR,
![]() |
Page 1118 |
046936,000074: # SAVING A WORD. TWIDDLE IS LIKE WAITLIST IN EVERY RESPECT EXCEPT CALLING SEQUENCE, TO WIT- 046937,000075: # L-1 CA DELTAT 046938,000076: # L TC TWIDDLE 046939,000077: # L+1 ADRES DESIRED TASK 046940,000078: # L+2 RELINT (RETURNS HERE) 046941,000079: 046942,000080: # NORMAL EXIT MODES - 046943,000081: # AT L+3 OF CALLING SEQUENCE 046944,000082: 046945,000083: # ALARM OR ABORT EXIT MODES - 046946,000084: # TC ABORT 046947,000085: # OCT 1203 (WAITLIST OVERFLOW - TOO MANY TASKS) 046948,000086: 046949,000087: # ERASABLE INITIALIZATION REQUIRED - 046950,000088: # ACCOMPLISHED BY FRESH START,-- LST2, ..., LST2 +16 = ENDTASK 046951,000089: # LST1, ..., LST1 +7 = NEG1/2 046952,000090: 046953,000091: # OUTPUT -- 046954,000092: # LST1 AND LST2 UPDATED WITH NEW TASK AND ASSOCIATED TIME. 046955,000093: 046956,000094: # DEBRIS - 046957,000095: # CENTRALS - A,Q,L 046958,000096: # OTHER - WAITEXIT, WAITADR, WAITTEMP, WAITBANK 046959,000097: 046960,000098: # DETAILED ANALYSIS OF TIMING - 046961,000099: # CONTROL WILL NOT BE RETURNED TO THE SPECIFIED ADDRESS (2CADR) IN EXACTLY DELTA T CENTISECONDS. 046962,000100: # THE APPROXIMATE TIME MAY BE CALCULATED AS FOLLOWS 046963,000101: # LET TO = THE TIME OF THE TC WAITLIST 046964,000102: # LET TS = TO +147U + COUNTER INCREMENTS (SET UP TIME) 046965,000103: # LET X = TS -(100TS)/100 (VARIANCE FROM COUNTERS) 046966,000104: # LET Y = LENGTH OF TIME OF INHIBIT INTERRUPT AFTER T3RUPT 046967,000105: # LET Z = LENGTH OF TIME TO PROCESS TASKS WHICH ARE DUE THIS T3RUPT BUT DISPATCHED EARLIER. 046968,000106: # (Z=0, USUALLY) 046969,000107: # LET DELTD = THE ACTUAL TIME TAKEN TO GIVE CONTROL TO 2CADR 046970,000108: # THEN DELTD = TS+DELTA T -X +Y +Z +1.05MS* +COUNTERS* 046971,000109: # *-THE TIME TAKEN BY WAITLIST ITSELF AND THE COUNTER TICKING DURING THIS WAITLIST TIME. 046972,000110: # IN SHORT, THE ACTUAL TIME TO RETURN CONTROL TO A 2CADR IS AUGMENTED BY THE TIME TO SET UP THE TASK:S 046973,000111: # INTERRUPT, ALL COUNTERS TICKING, THE T3RUPT PROCESSING TIME, THE WAITLIST PROCESSING TIME AND THE POSSIBILITY 046974,000112: # OF OTHER TASKS INHIBITING THE INTERRUPT. 046975,000113: 046976,000114: 5173 BLOCK 02
![]() |
Page 1119 |
046978,000116: 5173 E3,1400 EBANK= LST1 # TASK LISTS IN SWITCHED E BANK. 046979,000117: 046980,000118: 5173 COUNT* $$/WAIT 046981,000119: 5173 00004 TWIDDLE INHINT 046982,000120: 5174 54001 TS L # SAVE DELAY TIME IN L 046983,000121: 5175 34733 CA POSMAX 046984,000122: 5176 26002 ADS Q # CREATING OVERFLOW AND Q-1 IN Q 046985,000123: 5177 30006 CA BBANK 046986,000124: 5200 00006 EXTEND 046987,000125: 5201 04007 ROR SUPERBNK 046988,000126: 5202 56001 XCH L 046989,000127: 046990,000128: 5203 00004 WAITLIST INHINT 046991,000129: 5204 56002 XCH Q # SAVE DELTA T IN Q AND RETURN IN 046992,000130: 5205 54061 TS WAITEXIT # WAITEXIT. 046993,000131: 5206 00006 EXTEND 046994,000132: 5207 50061 INDEX WAITEXIT # IF TWIDDLING, THE TS SKIPS TO HERE 046995,000133: 5210 30001 DCA 0 # PICK UP 2CADR OF TASK. 046996,000134: 5211 54063 -1 TS WAITADR # BBCON WILL REMAIN IN L 046997,000135: 5212 35220 DLY2 CAF WAITBB # ENTRY FROM FIXDELAY AND VARDELAY. 046998,000136: 5213 56006 XCH BBANK 046999,000137: 5214 13231 TCF WAIT2 047000,000138: 047001,000139: # RETURN TO CALLER AFTER TASK INSERTION: 047002,000140: 047003,000141: 5215 52062 LVWTLIST DXCH WAITEXIT 047004,000142: 5216 64752 AD TWO 047005,000143: 5217 52006 DTCB 047006,000144: 047007,000145: 5220 E3,1400 EBANK= LST1 047008,000146: 5220 02063 WAITBB BBCON WAIT2 047009,000147: 047010,000148: # RETURN TO CALLER +2 AFTER WAITING DT SPECIFIED AT CALLER +1. 047011,000149: 047012,000150: 5221 50002 FIXDELAY INDEX Q # BOTH ROUTINES MUST BE CALLED UNDER 047013,000151: 5222 30000 CAF 0 # WAITLIST CONTROL AND TERMINATE THE TASK 047014,000152: 5223 24002 INCR Q # IN WHICH THEY WERE CALLED. 047015,000153: 047016,000154: # RETURN TO CALLER +1 AFTER WAITING THE DT AS ARRIVING IN A. 047017,000155: 047018,000156: 5224 56002 VARDELAY XCH Q # DT TO Q. TASK ADRES TO WAITADR. 047019,000157: 5225 54063 TS WAITADR 047020,000158: 5226 30006 CA BBANK # BBANK IS SAVED DURING DELAY. 047021,000159: 5227 00006 EXTEND 047022,000160: 5230 04007 ROR SUPERBNK # ADD SBANK TO BBCON. 047023,000161: 5231 54001 TS L 047024,000162: 5232 35235 CAF DELAYEX 047025,000163: 5233 54061 TS WAITEXIT # GO TO TASKOVER AFTER TASK ENTRY. 047026,000164: 5234 15212 TCF DLY2 047027,000165:
![]() |
Page 1120 |
047029,000167: 5235 15257 DELAYEX TCF TASKOVER -2 # RETURNS TO TASKOVER 047030,000168:
![]() |
Page 1121 |
047032,000170: # ENDTASK MUST BE ENTERED IN FIXED-FIXED SO IT IS DISTINGUISHABLE BY ITS ADRES ALONE. 047033,000171: 047034,000172: 5236 E3,1400 EBANK= LST1 047035,000173: 5236 72537 73714 ENDTASK -2CADR SVCT3 047036,000174: 047037,000175: 5240 10076 SVCT3 CCS FLAGWRD2 # DRIFT FLAG 047038,000176: 5241 15261 TCF TASKOVER 047039,000177: 5242 15261 TCF TASKOVER 047040,000178: 5243 15244 TCF +1 047041,000179: 047042,000180: 5244 11304 CKIMUSE CCS IMUCADR # DON'T DO NBDONLY IF SOMEONE ELSE IS IN 047043,000181: 5245 15256 TCF SVCT3X # IMUSTALL. 047044,000182: 5246 15251 TCF +3 047045,000183: 5247 15256 TCF SVCT3X 047046,000184: 5250 15256 TCF SVCT3X 047047,000185: 047048,000186: 5251 37723 +3 CAF PRIO35 # COMPENSATE FOR NBD COEFFICIENTS ONLY. 047049,000187: 5252 05072 TC NOVAC # ENABLE EVERY 81.93 SECONDS 047050,000188: 5253 E3,1460 EBANK= NBDX 047051,000189: 5253 03555 14063 2CADR NBDONLY 047052,000190: 047053,000191: 5255 15261 TCF TASKOVER 047054,000192: 047055,000193: 5256 05221 SVCT3X TC FIXDELAY # DELAY MAX OF 2 TIMES FOR IMUZERO. 047056,000194: 5257 00764 DEC 500 B-14 047057,000195: 5260 05240 TC SVCT3 # CHECK DRIFT FLAG AGAIN. 047058,000196:
![]() |
Page 1122 |
047060,000198: # BEGIN TASK INSERTION. 047061,000199: 047062,000200: 01,3231 BANK 01 047063,000201: 01,3231 COUNT* $$/WAIT 047064,000202: 01,3231 54062 WAIT2 TS WAITBANK # BBANK OF CALLING PROGRAM. 047065,000203: 01,3232 30002 CA Q 047066,000204: 01,3233 00006 EXTEND 047067,000205: 01,3234 63523 BZMF WAITPOOH 047068,000206: 047069,000207: 01,3235 40026 CS TIME3 047070,000208: 01,3236 64744 AD BIT8 # BIT 8 = OCT 200 047071,000209: 01,3237 10000 CCS A # TEST 200 - C(TIME3). IF POSITIVE, 047072,000210: # IT MEANS THAT TIME3 OVERFLOW HAS OCCURRED PRIOR TO CS TIME3 AND THAT 047073,000211: # C(TIME3) = T - T1, INSTEAD OF 1.0 - (T1 - T). THE FOLLOWING FOUR 047074,000212: # ORDERS SET C(A) = TD - T1 + 1 IN EITHER CASE. 047075,000213: 047076,000214: 01,3240 66107 AD OCT40001 # OVERFLOW HAS OCCURRED. SET C(A) = 047077,000215: 01,3241 40000 CS A # T - T1 + 1.0 - 201 047078,000216: 047079,000217: # NORMAL CASE (C(A) NNZ) YIELDS SAME C(A): -( -(1.0-(T1-T)) + 200) - 1 047080,000218: 047081,000219: 01,3242 63370 AD OCT40201 047082,000220: 01,3243 60002 AD Q # RESULT = TD - T1 + 1. 047083,000221: 047084,000222: 01,3244 10000 CCS A # TEST TD - T1 + 1 047085,000223: 047086,000224: 01,3245 61400 AD LST1 # IF TD - T1 POS, GO TO WTLST5 WITH 047087,000225: 01,3246 13310 TCF WTLST5 # C(A) = (TD - T1) + C(LST1) = TD-T2+1 047088,000226: 047089,000227: 01,3247 13250 NOOP 047090,000228: 01,3250 40002 CS Q 047091,000229: 047092,000230: # NOTE THAT THIS PROGRAM SECTION IS NEVER ENTERED WHEN T-T1 G/E -1, 047093,000231: # SINCE TD-T1+1 = (TD-T) + (T-T1+1), AND DELTA T = TD-T G/E +1. (G/E 047094,000232: # SYMBOL MEANS GREATER THAN OR EQUAL TO). THUS THERE NEED BE NO CON- 047095,000233: # CERN OVER A PREVIOUS OR IMMINENT OVERFLOW OF TIME3 HERE. 047096,000234: 047097,000235: 01,3251 64736 AD POS1/2 # WHEN TD IS NEXT, FORM QUANTITY 047098,000236: 01,3252 64736 AD POS1/2 # 1.0 - DELTA T = 1.0 - (TD - T) 047099,000237: 01,3253 56026 XCH TIME3 047100,000238: 01,3254 64735 AD NEGMAX 047101,000239: 01,3255 60002 AD Q # 1.0 - DELTAT T NOW COMPLETE. 047102,000240: 01,3256 00006 EXTEND # ZERO INDEX Q. 047103,000241: 01,3257 22007 QXCH 7 # (ZQ) 047104,000242:
![]() |
Page 1123 |
047106,000244: 01,3260 57400 WTLST4 XCH LST1 047107,000245: 01,3261 57401 XCH LST1 +1 047108,000246: 01,3262 57402 XCH LST1 +2 047109,000247: 01,3263 57403 XCH LST1 +3 047110,000248: 01,3264 57404 XCH LST1 +4 047111,000249: 01,3265 57405 XCH LST1 +5 047112,000250: 01,3266 57406 XCH LST1 +6 047113,000251: 01,3267 57407 XCH LST1 +7 047114,000252: 047115,000253: 01,3270 30063 CA WAITADR # (MINOR PART OF TASK CADR HAS BEEN IN L.) 047116,000254: 01,3271 50002 INDEX Q 047117,000255: 01,3272 13273 TCF +1 047118,000256: 047119,000257: 01,3273 53411 DXCH LST2 047120,000258: 01,3274 53413 DXCH LST2 +2 047121,000259: 01,3275 53415 DXCH LST2 +4 047122,000260: 01,3276 53417 DXCH LST2 +6 047123,000261: 01,3277 53421 DXCH LST2 +8D 047124,000262: 01,3300 53423 DXCH LST2 +10D # AT END, CHECK THAT C(LST2 +10) IS STD 047125,000263: 01,3301 53425 DXCH LST2 +12D 047126,000264: 01,3302 53427 DXCH LST2 +14D 047127,000265: 01,3303 53431 DXCH LST2 +16D 047128,000266: 01,3304 65236 AD ENDTASK # END ITEM, AS CHECK FOR EXCEEDING 047129,000267: # THE LENGTH OF THE LIST. 047130,000268: 01,3305 00006 EXTEND # DUMMY TASK ADRES SHOULD BE IN FIXED- 047131,000269: 01,3306 15215 BZF LVWTLIST # FIXED SO ITS ADRES ALONE DISTINGUISHES 047132,000270: 01,3307 13363 TCF WTABORT # IT. 047133,000271:
![]() |
Page 1124 |
047135,000273: 01,3310 10000 WTLST5 CCS A # TEST TD - T2 + 1 047136,000274: 01,3311 61401 AD LST1 +1 047137,000275: 01,3312 13316 TCF +4 047138,000276: 01,3313 64753 AD ONE 047139,000277: 01,3314 03374 TC WTLST2 047140,000278: 01,3315 00001 OCT 1 047141,000279: 047142,000280: 01,3316 10000 +4 CCS A # TEST TD - T3 + 1 047143,000281: 01,3317 61402 AD LST1 +2 047144,000282: 01,3320 13324 TCF +4 047145,000283: 01,3321 64753 AD ONE 047146,000284: 01,3322 03374 TC WTLST2 047147,000285: 01,3323 00002 OCT 2 047148,000286: 047149,000287: 01,3324 10000 +4 CCS A # TEST TD - T4 + 1 047150,000288: 01,3325 61403 AD LST1 +3 047151,000289: 01,3326 13332 TCF +4 047152,000290: 01,3327 64753 AD ONE 047153,000291: 01,3330 03374 TC WTLST2 047154,000292: 01,3331 00003 OCT 3 047155,000293: 047156,000294: 01,3332 10000 +4 CCS A # TEST TD - T5 + 1 047157,000295: 01,3333 61404 AD LST1 +4 047158,000296: 01,3334 13340 TCF +4 047159,000297: 01,3335 64753 AD ONE 047160,000298: 01,3336 03374 TC WTLST2 047161,000299: 01,3337 00004 OCT 4 047162,000300: 047163,000301: 01,3340 10000 +4 CCS A # TEST TD - T6 + 1 047164,000302: 01,3341 61405 AD LST1 +5 047165,000303: 01,3342 13346 TCF +4 047166,000304: 01,3343 64753 AD ONE 047167,000305: 01,3344 03374 TC WTLST2 047168,000306: 01,3345 00005 OCT 5 047169,000307: 047170,000308: 01,3346 10000 +4 CCS A # TEST TD - T7 + 1 047171,000309: 01,3347 61406 AD LST1 +6 047172,000310: 01,3350 13354 TCF +4 047173,000311: 01,3351 64753 AD ONE 047174,000312: 01,3352 03374 TC WTLST2 047175,000313: 01,3353 00006 OCT 6 047176,000314:
![]() |
Page 1125 |
047178,000316: 01,3354 10000 +4 CCS A 047179,000317: 01,3355 61407 AD LST1 +7 047180,000318: 01,3356 13362 TCF +4 047181,000319: 01,3357 64753 AD ONE 047182,000320: 01,3360 03374 TC WTLST2 047183,000321: 01,3361 00007 OCT 7 047184,000322: 047185,000323: 01,3362 10000 +4 CCS A 047186,000324: 01,3363 03371 WTABORT TC FILLED 047187,000325: 01,3364 13365 NOOP # CAN'T GET HERE 047188,000326: 01,3365 64753 AD ONE 047189,000327: 01,3366 03374 TC WTLST2 047190,000328: 01,3367 00010 OCT 10 047191,000329: 047192,000330: 01,3370 40201 OCT40201 OCT 40201 047193,000331:
![]() |
Page 1126 |
047195,000333: 01,3371 52062 FILLED DXCH WAITEXIT 047196,000334: 01,3372 05716 TC BAILOUT1 # NO ROOM IN THE INN 047197,000335: 01,3373 01203 OCT 01203 047198,000336:
![]() |
Page 1127 |
047200,000338: # THE ENTRY TO WTLST2 JUST PRECEDING OCT N IS FOR T LE TD LE T -1. 047201,000339: # N N+1 047202,000340: # (LE MEANS LESS THAN OR EQUAL TO). AT ENTRY, C(A) = -(TD - T + 1) 047203,000341: # N+1 047204,000342: # THE LST1 ENTRY -(T -T +1) IS TO BE REPLACED BY -(TD - T + 1), AND 047205,000343: # N+1 N N 047206,000344: # THE ENTRY -(T - TD + 1) IS TO BE INSERTED IMMEDIATELY FOLLOWING. 047207,000345: # N+1 047208,000346: 047209,000347: 01,3374 54064 WTLST2 TS WAITTEMP # C(A) = -(TD - T + 1) 047210,000348: 01,3375 50002 INDEX Q 047211,000349: 01,3376 30000 CAF 0 047212,000350: 01,3377 54002 TS Q # INDEX VALUE INTO Q. 047213,000351: 047214,000352: 01,3400 34753 CAF ONE 047215,000353: 01,3401 60064 AD WAITTEMP 047216,000354: 01,3402 50002 INDEX Q # C(A) = -(TD - T ) + 1. 047217,000355: 01,3403 27377 ADS LST1 -1 # N 047218,000356: 047219,000357: 01,3404 40064 CS WAITTEMP 047220,000358: 01,3405 50002 INDEX Q 047221,000359: 01,3406 13260 TCF WTLST4 047222,000360: 047223,000361: # C(TIME3) = 1.0 - (T1 - T) 047224,000362: 047225,000363: # C(LST1) = - (T2 - T1) + 1 047226,000364: # C(LST1+1) = - (T3 - T2) + 1 047227,000365: # C(LST1+2) = - (T4 - T3) + 1 047228,000366: # C(LST1+3) = - (T5 - T4) + 1 047229,000367: # C(LST1+4) = - (T6 - T5) + 1 047230,000368: 047231,000369: # C(LST2) = 2CADR TASK1 047232,000370: # C(LST2+2) = 2CADR TASK2 047233,000371: # C(LST2+4) = 2CADR TASK3 047234,000372: # C(LST2+6) = 2CADR TASK4 047235,000373: # C(LST2+8) = 2CADR TASK5 047236,000374: # C(LST2+10) = 2CADR TASK6 047237,000375:
![]() |
Page 1128 |
047239,000377: # ENTERS HERE ON T3 RUPT TO DISPATCH WAITLISTED TASK. 047240,000378: 047241,000379: 01,3407 00006 T3RUPT EXTEND 047242,000380: 01,3410 04007 ROR SUPERBNK # READ CURRENT SUPERBANK VALUE AND 047243,000381: 01,3411 54016 TS BANKRUPT # SAVE WITH E AND F BANK VALUES. 047244,000382: 01,3412 00006 EXTEND 047245,000383: 01,3413 22012 QXCH QRUPT 047246,000384: 047247,000385: 01,3414 34734 T3RUPT2 CAF NEG1/2 # DISPATCH WAITLIST TASK. 047248,000386: 01,3415 57407 XCH LST1 +7 047249,000387: 01,3416 57406 XCH LST1 +6 047250,000388: 01,3417 57405 XCH LST1 +5 047251,000389: 01,3420 57404 XCH LST1 +4 # 1. MOVE UP LST1 CONTENTS, ENTERING 047252,000390: 01,3421 57403 XCH LST1 +3 # A VALUE OF 1/2 +1 AT THE BOTTOM 047253,000391: 01,3422 57402 XCH LST1 +2 # FOR T6-T5, CORRESPONDING TO THE 047254,000392: 01,3423 57401 XCH LST1 +1 # INTERVAL 81.91 SEC FOR ENDTASK. 047255,000393: 01,3424 57400 XCH LST1 047256,000394: 01,3425 64733 AD POSMAX # 2. SET T3 = 1.0 - T2 - T USING LIST 1. 047257,000395: 01,3426 26026 ADS TIME3 # SO T3 WONT TICK DURING UPDATE. 047258,000396: 01,3427 54734 TS RUPTAGN 047259,000397: 01,3430 44755 CS ZERO 047260,000398: 01,3431 54734 TS RUPTAGN # SETS RUPTAGN TO +1 ON OVERFLOW. 047261,000399: 047262,000400: 01,3432 00006 EXTEND # DISPATCH TASK. 047263,000401: 01,3433 45237 DCS ENDTASK 047264,000402: 01,3434 53431 DXCH LST2 +16D 047265,000403: 01,3435 53427 DXCH LST2 +14D 047266,000404: 01,3436 53425 DXCH LST2 +12D 047267,000405: 01,3437 53423 DXCH LST2 +10D 047268,000406: 01,3440 53421 DXCH LST2 +8D 047269,000407: 01,3441 53417 DXCH LST2 +6 047270,000408: 01,3442 53415 DXCH LST2 +4 047271,000409: 01,3443 53413 DXCH LST2 +2 047272,000410: 01,3444 53411 DXCH LST2 047273,000411: 047274,000412: 01,3445 56001 XCH L 047275,000413: 01,3446 00006 EXTEND 047276,000414: 01,3447 01007 WRITE SUPERBNK # SET SUPERBANK FROM BBCON OF 2CADR 047277,000415: 01,3450 56001 XCH L # RESTORE TO L FOR DXCH Z. 047278,000416: 01,3451 52006 DTCB 047279,000417:
![]() |
Page 1129 |
047281,000419: # RETURN, AFTER EXECUTION OF T3 OVERFLOW TASK: 047282,000420: 047283,000421: 5261 BLOCK 02 047284,000422: 5261 COUNT* $$/WAIT 047285,000423: 5261 10734 TASKOVER CCS RUPTAGN # IF +1 RETURN TO T3RUPT, IF -0 RESUME. 047286,000424: 5262 35220 CAF WAITBB 047287,000425: 5263 54006 TS BBANK 047288,000426: 5264 13414 TCF T3RUPT2 # DISPATCH NEXT TASK IF IT WAS DUE. 047289,000427: 047290,000428: 5265 30016 CA BANKRUPT 047291,000429: 5266 00006 EXTEND 047292,000430: 5267 01007 WRITE SUPERBNK # RESTORE SUPERBANK BEFORE RESUME IS DONE 047293,000431: 047294,000432: 5270 00006 RESUME EXTEND 047295,000433: 5271 22012 QXCH QRUPT 047296,000434: 5272 30016 NOQRSM CA BANKRUPT 047297,000435: 5273 56006 XCH BBANK 047298,000436: 5274 52011 NOQBRSM DXCH ARUPT 047299,000437: 5275 00003 RELINT 047300,000438: 5276 50017 RESUME 047301,000439:
![]() |
Page 1130 |
047303,000441: # LONGCALL 047304,000442: # PROGRAM DESCRIPTION DATE - 17 MARCH 1967 047305,000443: # PROGRAM WRITTEN BY W.H.VANDEVER LOG SECTION WAITLIST 047306,000444: # MOD BY - R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 100 047307,000445: 047308,000446: # FUNCTIONAL DESCRIPTION - 047309,000447: # LONGCALL IS CALLED WITH THE DELTA TIME ARRIVING IN A,L SCALED AS TIME2,TIME1 WITH THE 2CADR OF THE TASK 047310,000448: # IMMEDIATELY FOLLOWING THE TC LONGCALL. FOR EXAMPLE, IT MIGHT BE DONE AS FOLLOWS WHERE TIMELOC IS THE NAME OF 047311,000449: # A DP REGISTER CONTAINING A DELTA TIME AND WHERE TASKTODO IS THE NAME OF THE LOCATION AT WHICH LONGCALL IS TO 047312,000450: # START 047313,000451: # CALLING SEQUENCE - 047314,000452: # EXTEND 047315,000453: # DCA TIMELOC 047316,000454: # TC LONGCALL 047317,000455: # 2CADR TASKTODO 047318,000456: # NORMAL EXIT MODE - 047319,000457: # 1). TC WAITLIST 047320,000458: # 2). DTCB (TO L+3 OF CALLING ROUTINE 1ST PASS THRU LONGCYCL) 047321,000459: # 3). DTCB (TO TASKOVER ON SUBSEQUENT PASSES THRU LONGCYCL) 047322,000460: # ALARM OR ABORT EXIT MODE - 047323,000461: # NONE 047324,000462: # OUTPUT - 047325,000463: # LONGTIME AND LONGTIME+1 = DELTA TIME 047326,000464: # LONGEXIT AND LONGEXIT+1 = RETURN 2CADR 047327,000465: # LONGCADR AND LONGCADR+1 = TASK 2CADR 047328,000466: # A = SINGLE PRECISION TIME FOR WAITLIST 047329,000467: # ERASABLE INITIALIZATION - 047330,000468: # A = MOST SIGNIFICANT PART OF DELTA TIME 047331,000469: # L = LEAST SIGNIFICANT PART OF DELTA TIME 047332,000470: # Q = ADDRESS OF 2CADR TASK VALUE 047333,000471: # DEBRIS - 047334,000472: # A,Q,L 047335,000473: # LONGCADR AND LONGCADR+1 047336,000474: # LONGEXIT AND LONGEXIT+1 047337,000475: # LONGTIME AND LONGTIME+1 047338,000476: # *** THE FOLLOWING IS TO BE IN FIXED-FIXED AND UNSWITCHED ERRASIBLE *** 047339,000477: 047340,000478: 5277 BLOCK 02 047341,000479: 5277 E3,1400 EBANK= LST1 047342,000480: 5277 53154 LONGCALL DXCH LONGTIME # OBTAIN THE DELTA TIME 047343,000481: 047344,000482: 5300 00006 EXTEND # OBTAIN THE 2CADR
![]() |
Page 1131 |
047346,000484: 5301 50002 NDX Q 047347,000485: 5302 30001 DCA 0 047348,000486: 5303 53150 DXCH LONGCADR 047349,000487: 047350,000488: 5304 00006 EXTEND # NOW GO TO THE APPROPRIATE SWITCHED BANK 047351,000489: 5305 35310 DCA LGCL2CDR # FOR THE REST OF LONGCALL 047352,000490: 5306 52006 DTCB 047353,000491: 047354,000492: 5307 E3,1400 EBANK= LST1 047355,000493: 5307 03452 02063 LGCL2CDR 2CADR LNGCALL2 047356,000494: 047357,000495: # *** THE FOLLOWING MAY BE IN A SWITCHED BANK, INCLUDING ITS ERASABLE *** 047358,000496: 047359,000497: 01,3452 BANK 01 047360,000498: 01,3452 COUNT* $$/WAIT 047361,000499: 01,3452 23435 LNGCALL2 LXCH LONGEXIT +1 # SAVE THE CORRECT BB FOR RETURN 047362,000500: 01,3453 34752 CA TWO # OBTAIN THE RETURN ADDRESS 047363,000501: 01,3454 26002 ADS Q 047364,000502: 01,3455 55434 TS LONGEXIT 047365,000503: 047366,000504: 01,3456 31153 CA LONGTIME # CHECK FOR LEGITIMATE DELTA-TIME 047367,000505: 01,3457 10000 CCS A 047368,000506: 01,3460 13466 TCF LONGCYCL # HI-ORDER OK --> ALL IS OK. 047369,000507: 01,3461 13463 TCF +2 # HI-ORDER ZERO --> CHECK LO-ORDER. 047370,000508: 01,3462 13521 TCF LONGPOOH # HI-ORDER NEG. --> NEG. DT 047371,000509: 01,3463 31154 +2 CA LONGTIME +1 # CHECK LO-ORDER FOR ZERO OR NEGATIVE. 047372,000510: 01,3464 00006 EXTEND 047373,000511: 01,3465 63521 BZMF LONGPOOH # BAD DELTA-TIME. ABORT 047374,000512: 047375,000513: # *** WAITLIST TASK LONGCYCL *** 047376,000514: 047377,000515: 01,3466 00006 LONGCYCL EXTEND # CAN WE SUCCESFULLY TAKE ABOUT 1.25 047378,000516: 01,3467 43500 DCS DPBIT14 # MINUTES OFF OF LONGTIME 047379,000517: 01,3470 21154 DAS LONGTIME 047380,000518: 047381,000519: 01,3471 11154 CCS LONGTIME +1 # THE REASONIBG BEHIND THIS PART IS 047382,000520: 01,3472 13511 TCF MUCHTIME # INVOLVED, TAKING INTO ACCOUNT THAT THE 047383,000521: # WORDS MAY NOT BE SIGNED CORRECTED (DP 047384,000522: # BASIC INSTRUCTIONS 047385,000523: # DO NOT SIGN CORRECT) AND THAT WE SUBTRAC 047386,000524: # TED BIT14 (1 OVER HALF THE POS. VALUE 047387,000525: # REPRESENTIBLE IN SINGLE WORD) 047388,000526: 01,3473 13474 NOOP # CAN:T GET HERE ********** 047389,000527: 01,3474 13475 TCF +1 047390,000528: 01,3475 11153 CCS LONGTIME 047391,000529: 01,3476 13511 TCF MUCHTIME 047392,000530: 01,3477 00000 DPBIT14 OCT 00000 047393,000531: 01,3500 20000 OCT 20000 047394,000532: 047395,000533: # LONGCALL
![]() |
Page 1132 |
047397,000535: 01,3501 34736 LASTTIME CA BIT14 # GET BACK THE CORRECT DELTA T FOR WAITLIST 047398,000536: 01,3502 27154 ADS LONGTIME +1 047399,000537: 01,3503 05203 TC WAITLIST 047400,000538: 01,3504 E3,1400 EBANK= LST1 047401,000539: 01,3504 03516 02063 2CADR GETCADR # THE ENTRY TO OUR LONGCADR 047402,000540: 047403,000541: 01,3506 33520 LONGRTRN CA TSKOVCDR # SET IT UP SO THAT ONLY THE FIRST EXIT IS 047404,000542: 01,3507 53435 DXCH LONGEXIT # TO THE CALLER OF LONGCALL 047405,000543: 01,3510 52006 DTCB # THE REST ARE TO TASKOVER 047406,000544: 047407,000545: 01,3511 34736 MUCHTIME CA BIT14 # WE HAVE OVER OUR ABOUT 1.25 MINUTES 047408,000546: 01,3512 05203 TC WAITLIST # SO SET UP FOR ANOTHER CYCLE THROUGH HERE 047409,000547: 01,3513 E3,1400 EBANK= LST1 047410,000548: 01,3513 03466 02063 2CADR LONGCYCL 047411,000549: 047412,000550: 01,3515 13506 TCF LONGRTRN # NOW EXIT PROPERLY 047413,000551: 047414,000552: # *** WAITLIST TASK GETCADR *** 047415,000553: 047416,000554: 01,3516 53150 GETCADR DXCH LONGCADR # GET THE LONGCALL THAT WE WISHED TO START 047417,000555: 01,3517 52006 DTCB # AND TRANSFER CONTROL TO IT 047418,000556: 047419,000557: 01,3520 05261 TSKOVCDR GENADR TASKOVER 047420,000558: 01,3521 53435 LONGPOOH DXCH LONGEXIT 047421,000559: 01,3522 13524 TCF +2 047422,000560: 01,3523 52062 WAITPOOH DXCH WAITEXIT 047423,000561: 01,3524 05726 +2 TC POODOO1 047424,000562: 01,3525 01204 OCT 01204 047425,000563: End of include-file WAITLIST.agc. Parent file is MAIN.agc