Source Code
These source-code files are part of a reconstructed copy of Luminary 69/2,
the flown, final release of the Apollo 10 Lunar Module (LM) Apollo Guidance Computer (AGC) software.
The reconstruction is based on the source code of Luminary 69 — i.e., the initial, unflown version, "revision 0" — of which a contemporary listing was available. The code was then updated by incorporating the differences between Luminary 69 and Luminary 69/2, known from other contemporary documentation. The only such difference is the implementation in Luminary 69/2 of the "R-2 Lunar Potential Model", the source code for which was taken from program Luminary 99/1 (Apollo 11 LM), of which a contemporary listing was also available. Finally, the now-reconstructed Luminary 69/2 was then validated by assembling it to executable form and verifying that its memory banks had the correct checksums, known from still other contemporary documentation. Note that page numbers in the reconstructed code match those in the original Luminary 69 program listing, or in the ORBITAL INTEGRATION log section, in Luminary 99/1. Page numbers would certainly differ somewhat in a contemporary Luminary 69/2 listing. Moreover, annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change in Luminary 69/2 relative to Luminary 69. Here's a guide to the Apollo documentation referenced in those annotations:
|
047812,000002: ## Copyright: Public domain.
047813,000003: ## Filename: WAITLIST.agc
047814,000004: ## Purpose: A section of LUM69 revision 2.
047815,000005: ## It is part of the reconstructed source code for the flown
047816,000006: ## version of the flight software for the Lunar Module's (LM)
047817,000007: ## Apollo Guidance Computer (AGC) for Apollo 10. The code has
047818,000008: ## been recreated from a copy of Luminary revsion 069, using
047819,000009: ## changes present in Luminary 099 which were described in
047820,000010: ## Luminary memos 75 and 78. The code has been adapted such
047821,000011: ## that the resulting bugger words exactly match those specified
047822,000012: ## for LUM69 revision 2 in NASA drawing 2021152B, which gives
047823,000013: ## relatively high confidence that the reconstruction is correct.
047824,000014: ## Reference: pp. 1112-1127
047825,000015: ## Assembler: yaYUL
047826,000016: ## Contact: Ron Burkey <info@sandroid.org>.
047827,000017: ## Website: www.ibiblio.org/apollo/index.html
047828,000018: ## Mod history: 2019-07-27 MAS Created from Luminary 69.
047829,000019:
Page 1112 |
047831,000021: # PROGRAM DESCRIPTION DATE - 10 OCTOBER 1966
047832,000022: # MOD NO - 2 LOG SECTION - WAITLIST
047833,000023: # MOD BY - MILLER (DTMAX INCREASED TO 162.5 SEC) ASSEMBLY SUNBURST REV 5
047834,000024: # MOD 3 BY KERNAN (INHINT INSERTED AT WAITLIST) 2/28/68 SKIPPER REV 4
047835,000025: # MOD 4 BY KERNAN (TWIDDLE IN 54) 3/28/68 SKIPPER REV 13.
047836,000026:
047837,000027: # FUNCTIONAL DESCRIPTION -
047838,000028: # PART OF A SECTION OF PROGRAMS,- WAITLIST, TASKOVER, T3RUPT, USED TO CALL A PROGRAM, (CALLED A TASK),
047839,000029: # WHICH IS TO BEGIN IN C(A) CENTISECONDS. WAITLIST UPDATES TIME3, LST1 AND LST2. THE MEANING OF THESE LISTS
047840,000030: # FOLLOW.
047841,000031:
047842,000032: # C(TIME3) = 16384 -(T1-T) CENTISECONDS, (T=PRESENT TIME, T1-TIME FOR TASK1)
047843,000033:
047844,000034: # C(LST1) = -(T2-T1)+1
047845,000035: # C(LST1 +1) = -(T3-T2)+1
047846,000036: # C(LST1 +2) = -(T4-T3)+1
047847,000037: # .
047848,000038: # .
047849,000039: # C(LST1 +6) = -(T8-T7)+1
047850,000040: # C(LST1 +7) = -(T9-T8)+1
047851,000041:
047852,000042: # C(LST2) = 2CADR OF TASK1
047853,000043: # C(LST2 +2) = 2CADR OF TASK2
047854,000044: # .
047855,000045: # .
047856,000046: # C(LST2 +14)= 2CADR OF TASK8
047857,000047: # C(LST2 +16)= 2CADR OF TASK9
047858,000048:
047859,000049: # WARNINGS -
047860,000050: # --------
047861,000051: # 1) 1 <= C(A) <= 16250D (1 CENTISECOND TO 162.5 SEC)
047862,000052: # 2) 9 TASKS MAXIMUM
047863,000053: # 3) TASKS CALLED UNDER INTERRUPT INHIBITED
047864,000054: # 4) TASKS END BY TC TASKOVER
047865,000055:
047866,000056: # CALLING SEQUENCE -
047867,000057: # L-1 CA DELTAT (TIME IN CENTISECONDS TO TASK START)
047868,000058: # L TC WAITLIST
047869,000059: # L+1 2CADR DESIRED TASK
047870,000060: # L+2 (MINOR OF 2CADR)
047871,000061: # L+3 RELINT (RETURNS HERE)
047872,000062:
047873,000063: # TWIDDLE -
047874,000064: # -------
047875,000065: # TWIDDLE IS FOR USE WHEN THE TASK BEING SET UP IS IN THE SAME EBANK AND FBANK AS THE USER. IN
047876,000066: # SUCH CASES, IT IMPROVES UPON WAITLIST BY ELIMINATING THE NEED FOR THE BBCON HALF OF THE 2CADR,
Page 1113 |
047878,000068: # SAVING A WORD. TWIDDLE IS LIKE WAITLIST IN EVERY RESPECT EXCEPT CALLING SEQUENCE, TO WIT-
047879,000069: # L-1 CA DELTAT
047880,000070: # L TC TWIDDLE
047881,000071: # L+1 ADRES DESIRED TASK
047882,000072: # L+2 RELINT (RETURNS HERE)
047883,000073:
047884,000074: # NORMAL EXIT MODES -
047885,000075: # AT L+3 OF CALLING SEQUENCE
047886,000076:
047887,000077: # ALARM OR ABORT EXIT MODES -
047888,000078: # TC ABORT
047889,000079: # OCT 1203 (WAITLIST OVERFLOW - TOO MANY TASKS)
047890,000080:
047891,000081: # ERASABLE INITIALIZATION REQUIRED -
047892,000082: # ACCOMPLISHED BY FRESH START,--LST2, ..., LST2 +16 = ENDTASK
047893,000083: # LST1, ..., LST1 +7 = NEG1/2
047894,000084:
047895,000085: # OUTPUT --
047896,000086: # LST1 AND LST2 UPDATED WITH NEW TASK AND ASSOCIATED TIME.
047897,000087:
047898,000088: # DEBRIS -
047899,000089: # CENTRALS - A,Q,L
047900,000090: # OTHER - WAITEXIT, WAITADR, WAITTEMP, WAITBANK
047901,000091:
047902,000092: # DETAILED ANALYSIS OF TIMING -
047903,000093: # CONTROL WILL NOT BE RETURNED TO THE SPECIFIED ADDRESS (2CADR) IN EXACTLY DELTA T CENTISECONDS.
047904,000094: # THE APPROXIMATE TIME MAY BE CALCULATED AS FOLLOWS
047905,000095: # LET TO = THE TIME OF THE TC WAITLIST
047906,000096: # LET TS = TO +147U + COUNTER INCREMENTS (SET UP TIME)
047907,000097: # LET X = TS -(100TS)/100 (VARIANCE FROM COUNTERS)
047908,000098: # LET Y = LENGTH OF TIME OF INHIBIT INTERRUPT AFTER T3RUPT
047909,000099: # LET Z = LENGTH OF TIME TO PROCESS TASKS WHICH ARE DUE THIS T3RUPT BUT DISPATCHED EARLIER.
047910,000100: # (Z=0, USUALLY)
047911,000101: # LET DELTD = THE ACTUAL TIME TAKEN TO GIVE CONTROL TO 2CADR
047912,000102: # THEN DELTD = TS+DELTA T -X +Y +Z +1.05MS* +COUNTERS*
047913,000103: # *-THE TIME TAKEN BY WAITLIST ITSELF AND THE COUNTER TICKING DURING THIS WAITLIST TIME.
047914,000104: # IN SHORT, THE ACTUAL TIME TO RETURN CONTROL TO A 2CADR IS AUGMENTED BY THE TIME TO SET UP THE TASK:S
047915,000105: # INTERRUPT, ALL COUNTERS TICKING, THE T3RUPT PROCESSING TIME, THE WAITLIST PROCESSING TIME AND THE POSSIBILITY
047916,000106: # OF OTHER TASKS INHIBITING THE INTERRUPT.
047917,000107:
047918,000108: 5173 BLOCK 02
Page 1114 |
047920,000110: 5173 E3,1400 EBANK= LST1 # TASK LISTS IN SWITCHED E BANK.
047921,000111:
047922,000112: 5173 COUNT* $$/WAIT
047923,000113: 5173 00004 TWIDDLE INHINT
047924,000114: 5174 54001 TS L # SAVE DELAY TIME IN L
047925,000115: 5175 34733 CA POSMAX
047926,000116: 5176 26002 ADS Q # CREATING OVERFLOW AND Q-1 IN Q
047927,000117: 5177 30006 CA BBANK
047928,000118: 5200 00006 EXTEND
047929,000119: 5201 04007 ROR SUPERBNK
047930,000120: 5202 56001 XCH L
047931,000121:
047932,000122: 5203 00004 WAITLIST INHINT
047933,000123: 5204 56002 XCH Q # SAVE DELTA T IN Q AND RETURN IN
047934,000124: 5205 54061 TS WAITEXIT # WAITEXIT.
047935,000125: 5206 00006 EXTEND
047936,000126: 5207 50061 INDEX WAITEXIT # IF TWIDDLING, THE TS SKIPS TO HERE
047937,000127: 5210 30001 DCA 0 # PICK UP 2CADR OF TASK.
047938,000128: 5211 54063 -1 TS WAITADR # BBCON WILL REMAIN IN L
047939,000129: 5212 35220 DLY2 CAF WAITBB # ENTRY FROM FIXDELAY AND VARDELAY.
047940,000130: 5213 56006 XCH BBANK
047941,000131: 5214 13226 TCF WAIT2
047942,000132:
047943,000133: # RETURN TO CALLER AFTER TASK INSERTION:
047944,000134:
047945,000135: 5215 52062 LVWTLIST DXCH WAITEXIT
047946,000136: 5216 64752 AD TWO
047947,000137: 5217 52006 DTCB
047948,000138:
047949,000139: 5220 E3,1400 EBANK= LST1
047950,000140: 5220 02063 WAITBB BBCON WAIT2
047951,000141:
047952,000142: # RETURN TO CALLER +2 AFTER WAITING DT SPECIFIED AT CALLER +1.
047953,000143:
047954,000144: 5221 50002 FIXDELAY INDEX Q # BOTH ROUTINES MUST BE CALLED UNDER
047955,000145: 5222 30000 CAF 0 # WAITLIST CONTROL AND TERMINATE THE TASK
047956,000146: 5223 24002 INCR Q # IN WHICH THEY WERE CALLED.
047957,000147:
047958,000148: # RETURN TO CALLER +1 AFTER WAITING THE DT AS ARRIVING IN A.
047959,000149:
047960,000150: 5224 56002 VARDELAY XCH Q # DT TO Q. TASK ADRES TO WAITADR.
047961,000151: 5225 54063 TS WAITADR
047962,000152: 5226 30006 CA BBANK # BBANK IS SAVED DURING DELAY.
047963,000153: 5227 00006 EXTEND
047964,000154: 5230 04007 ROR SUPERBNK # ADD SBANK TO BBCON.
047965,000155: 5231 54001 TS L
047966,000156: 5232 35235 CAF DELAYEX
047967,000157: 5233 54061 TS WAITEXIT # GO TO TASKOVER AFTER TASK ENTRY.
047968,000158: 5234 15212 TCF DLY2
047969,000159:
Page 1115 |
047971,000161: 5235 15257 DELAYEX TCF TASKOVER -2 # RETURNS TO TASKOVER
047972,000162:
Page 1116 |
047974,000164: # ENDTASK MUST BE ENTERED IN FIXED-FIXED SO IT IS DISTINGUISHABLE BY ITS ADRES ALONE.
047975,000165:
047976,000166: 5236 E3,1400 EBANK= LST1
047977,000167: 5236 72537 73714 ENDTASK -2CADR SVCT3
047978,000168:
047979,000169: 5240 10076 SVCT3 CCS FLAGWRD2 # DRIFT FLAG
047980,000170: 5241 15261 TCF TASKOVER
047981,000171: 5242 15261 TCF TASKOVER
047982,000172: 5243 15244 TCF +1
047983,000173:
047984,000174: 5244 11304 CKIMUSE CCS IMUCADR # DON'T DO NBDONLY IF SOMEONE ELSE IS IN
047985,000175: 5245 15256 TCF SVCT3X # IMUSTALL.
047986,000176: 5246 15251 TCF +3
047987,000177: 5247 15256 TCF SVCT3X
047988,000178: 5250 15256 TCF SVCT3X
047989,000179:
047990,000180: 5251 37722 +3 CAF PRIO35 # COMPENSATE FOR NBD COEFFICIENTS ONLY.
047991,000181: 5252 05072 TC NOVAC # ENABLE EVERY 81.93 SECONDS
047992,000182: 5253 E3,1460 EBANK= NBDX
047993,000183: 5253 03555 14063 2CADR NBDONLY
047994,000184:
047995,000185: 5255 15261 TCF TASKOVER
047996,000186:
047997,000187: 5256 05221 SVCT3X TC FIXDELAY # DELAY MAX OF 2 TIMES FOR IMUZERO.
047998,000188: 5257 00764 DEC 500 B-14
047999,000189: 5260 05240 TC SVCT3 # CHECK DRIFT FLAG AGAIN.
048000,000190:
Page 1117 |
048002,000192: # BEGIN TASK INSERTION.
048003,000193:
048004,000194: 01,3226 BANK 01
048005,000195: 01,3226 COUNT* $$/WAIT
048006,000196: 01,3226 54062 WAIT2 TS WAITBANK # BBANK OF CALLING PROGRAM.
048007,000197: 01,3227 30002 CA Q
048008,000198: 01,3230 00006 EXTEND
048009,000199: 01,3231 63520 BZMF WAITPOOH
048010,000200:
048011,000201: 01,3232 40026 CS TIME3
048012,000202: 01,3233 64744 AD BIT8 # BIT 8 = OCT 200
048013,000203: 01,3234 10000 CCS A # TEST 200 - C(TIME3). IF POSITIVE,
048014,000204: # IT MEANS THAT TIME3 OVERFLOW HAS OCCURRED PRIOR TO CS TIME3 AND THAT
048015,000205: # C(TIME3) = T - T1, INSTEAD OF 1.0 - (T1 - T). THE FOLLOWING FOUR
048016,000206: # ORDERS SET C(A) = TD - T1 + 1 IN EITHER CASE.
048017,000207:
048018,000208: 01,3235 66106 AD OCT40001 # OVERFLOW HAS OCCURRED. SET C(A) =
048019,000209: 01,3236 40000 CS A # T - T1 + 1.0 - 201
048020,000210:
048021,000211: # NORMAL CASE (C(A) NNZ) YIELDS SAME C(A): -( -(1.0-(T1-T)) + 200) - 1
048022,000212:
048023,000213: 01,3237 63365 AD OCT40201
048024,000214: 01,3240 60002 AD Q # RESULT = TD - T1 + 1.
048025,000215:
048026,000216: 01,3241 10000 CCS A # TEST TD - T1 + 1
048027,000217:
048028,000218: 01,3242 61400 AD LST1 # IF TD - T1 POS, GO TO WTLST5 WITH
048029,000219: 01,3243 13305 TCF WTLST5 # C(A) = (TD - T1) + C(LST1) = TD-T2+1
048030,000220:
048031,000221: 01,3244 13245 NOOP
048032,000222: 01,3245 40002 CS Q
048033,000223:
048034,000224: # NOTE THAT THIS PROGRAM SECTION IS NEVER ENTERED WHEN T-T1 G/E -1,
048035,000225: # SINCE TD-T1+1 = (TD-T) + (T-T1+1), AND DELTA T = TD-T G/E +1. (G/E
048036,000226: # SYMBOL MEANS GREATER THAN OR EQUAL TO). THUS THERE NEED BE NO CON-
048037,000227: # CERN OVER A PREVIOUS OR IMMINENT OVERFLOW OF TIME3 HERE.
048038,000228:
048039,000229: 01,3246 64736 AD POS1/2 # WHEN TD IS NEXT, FORM QUANTITY
048040,000230: 01,3247 64736 AD POS1/2 # 1.0 - DELTA T = 1.0 - (TD - T)
048041,000231: 01,3250 56026 XCH TIME3
048042,000232: 01,3251 64735 AD NEGMAX
048043,000233: 01,3252 60002 AD Q # 1.0 - DELTAT T NOW COMPLETE.
048044,000234: 01,3253 00006 EXTEND # ZERO INDEX Q.
048045,000235: 01,3254 22007 QXCH 7 # (ZQ)
048046,000236:
Page 1118 |
048048,000238: 01,3255 57400 WTLST4 XCH LST1
048049,000239: 01,3256 57401 XCH LST1 +1
048050,000240: 01,3257 57402 XCH LST1 +2
048051,000241: 01,3260 57403 XCH LST1 +3
048052,000242: 01,3261 57404 XCH LST1 +4
048053,000243: 01,3262 57405 XCH LST1 +5
048054,000244: 01,3263 57406 XCH LST1 +6
048055,000245: 01,3264 57407 XCH LST1 +7
048056,000246:
048057,000247: 01,3265 30063 CA WAITADR # (MINOR PART OF TASK CADR HAS BEEN IN L.)
048058,000248: 01,3266 50002 INDEX Q
048059,000249: 01,3267 13270 TCF +1
048060,000250:
048061,000251: 01,3270 53411 DXCH LST2
048062,000252: 01,3271 53413 DXCH LST2 +2
048063,000253: 01,3272 53415 DXCH LST2 +4
048064,000254: 01,3273 53417 DXCH LST2 +6
048065,000255: 01,3274 53421 DXCH LST2 +8D
048066,000256: 01,3275 53423 DXCH LST2 +10D # AT END, CHECK THAT C(LST2 +10) IS STD
048067,000257: 01,3276 53425 DXCH LST2 +12D
048068,000258: 01,3277 53427 DXCH LST2 +14D
048069,000259: 01,3300 53431 DXCH LST2 +16D
048070,000260: 01,3301 65236 AD ENDTASK # END ITEM, AS CHECK FOR EXCEEDING
048071,000261: # THE LENGTH OF THE LIST.
048072,000262: 01,3302 00006 EXTEND # DUMMY TASK ADRES SHOULD BE IN FIXED-
048073,000263: 01,3303 15215 BZF LVWTLIST # FIXED SO ITS ADRES ALONE DISTINGUISHES
048074,000264: 01,3304 13360 TCF WTABORT # IT.
048075,000265:
Page 1119 |
048077,000267: 01,3305 10000 WTLST5 CCS A # TEST TD - T2 + 1
048078,000268: 01,3306 61401 AD LST1 +1
048079,000269: 01,3307 13313 TCF +4
048080,000270: 01,3310 64753 AD ONE
048081,000271: 01,3311 03371 TC WTLST2
048082,000272: 01,3312 00001 OCT 1
048083,000273:
048084,000274: 01,3313 10000 +4 CCS A # TEST TD - T3 + 1
048085,000275: 01,3314 61402 AD LST1 +2
048086,000276: 01,3315 13321 TCF +4
048087,000277: 01,3316 64753 AD ONE
048088,000278: 01,3317 03371 TC WTLST2
048089,000279: 01,3320 00002 OCT 2
048090,000280:
048091,000281: 01,3321 10000 +4 CCS A # TEST TD - T4 + 1
048092,000282: 01,3322 61403 AD LST1 +3
048093,000283: 01,3323 13327 TCF +4
048094,000284: 01,3324 64753 AD ONE
048095,000285: 01,3325 03371 TC WTLST2
048096,000286: 01,3326 00003 OCT 3
048097,000287:
048098,000288: 01,3327 10000 +4 CCS A # TEST TD - T5 + 1
048099,000289: 01,3330 61404 AD LST1 +4
048100,000290: 01,3331 13335 TCF +4
048101,000291: 01,3332 64753 AD ONE
048102,000292: 01,3333 03371 TC WTLST2
048103,000293: 01,3334 00004 OCT 4
048104,000294:
048105,000295: 01,3335 10000 +4 CCS A # TEST TD - T6 + 1
048106,000296: 01,3336 61405 AD LST1 +5
048107,000297: 01,3337 13343 TCF +4
048108,000298: 01,3340 64753 AD ONE
048109,000299: 01,3341 03371 TC WTLST2
048110,000300: 01,3342 00005 OCT 5
048111,000301:
048112,000302: 01,3343 10000 +4 CCS A # TEST TD - T7 + 1
048113,000303: 01,3344 61406 AD LST1 +6
048114,000304: 01,3345 13351 TCF +4
048115,000305: 01,3346 64753 AD ONE
048116,000306: 01,3347 03371 TC WTLST2
048117,000307: 01,3350 00006 OCT 6
048118,000308:
Page 1120 |
048120,000310: 01,3351 10000 +4 CCS A
048121,000311: 01,3352 61407 AD LST1 +7
048122,000312: 01,3353 13357 TCF +4
048123,000313: 01,3354 64753 AD ONE
048124,000314: 01,3355 03371 TC WTLST2
048125,000315: 01,3356 00007 OCT 7
048126,000316:
048127,000317: 01,3357 10000 +4 CCS A
048128,000318: 01,3360 03366 WTABORT TC FILLED
048129,000319: 01,3361 13362 NOOP # CAN'T GET HERE
048130,000320: 01,3362 64753 AD ONE
048131,000321: 01,3363 03371 TC WTLST2
048132,000322: 01,3364 00010 OCT 10
048133,000323:
048134,000324: 01,3365 40201 OCT40201 OCT 40201
048135,000325:
Page 1121 |
048137,000327: 01,3366 52062 FILLED DXCH WAITEXIT
048138,000328: 01,3367 05710 TC BAILOUT1 # NO ROOM IN THE INN
048139,000329: 01,3370 01203 OCT 01203
048140,000330:
Page 1122 |
048142,000332: # THE ENTRY TO WTLST2 JUST PRECEDING OCT N IS FOR T LE TD LE T -1.
048143,000333: # N N+1
048144,000334: # (LE MEANS LESS THAN OR EQUAL TO). AT ENTRY, C(A) = -(TD - T + 1)
048145,000335: # N+1
048146,000336: # THE LST1 ENTRY -(T -T +1) IS TO BE REPLACED BY -(TD - T + 1), AND
048147,000337: # N+1 N N
048148,000338: # THE ENTRY -(T - TD + 1) IS TO BE INSERTED IMMEDIATELY FOLLOWING.
048149,000339: # N+1
048150,000340:
048151,000341: 01,3371 54064 WTLST2 TS WAITTEMP # C(A) = -(TD - T + 1)
048152,000342: 01,3372 50002 INDEX Q
048153,000343: 01,3373 30000 CAF 0
048154,000344: 01,3374 54002 TS Q # INDEX VALUE INTO Q.
048155,000345:
048156,000346: 01,3375 34753 CAF ONE
048157,000347: 01,3376 60064 AD WAITTEMP
048158,000348: 01,3377 50002 INDEX Q # C(A) = -(TD - T ) + 1.
048159,000349: 01,3400 27377 ADS LST1 -1 # N
048160,000350:
048161,000351: 01,3401 40064 CS WAITTEMP
048162,000352: 01,3402 50002 INDEX Q
048163,000353: 01,3403 13255 TCF WTLST4
048164,000354:
048165,000355: # C(TIME3) = 1.0 - (T1 - T)
048166,000356:
048167,000357: # C(LST1 ) = - (T2 - T1) + 1
048168,000358: # C(LST1+1) = - (T3 - T2) + 1
048169,000359: # C(LST1+2) = - (T4 - T3) + 1
048170,000360: # C(LST1+3) = - (T5 - T4) + 1
048171,000361: # C(LST1+4) = - (T6 - T5) + 1
048172,000362:
048173,000363: # C(LST2 ) = 2CADR TASK1
048174,000364: # C(LST2+2 ) = 2CADR TASK2
048175,000365: # C(LST2+4 ) = 2CADR TASK3
048176,000366: # C(LST2+6 ) = 2CADR TASK4
048177,000367: # C(LST2+8 ) = 2CADR TASK5
048178,000368: # C(LST2+10) = 2CADR TASK6
048179,000369:
Page 1123 |
048181,000371: # ENTERS HERE ON T3 RUPT TO DISPATCH WAITLISTED TASK.
048182,000372:
048183,000373: 01,3404 00006 T3RUPT EXTEND
048184,000374: 01,3405 04007 ROR SUPERBNK # READ CURRENT SUPERBANK VALUE AND
048185,000375: 01,3406 54016 TS BANKRUPT # SAVE WITH E AND F BANK VALUES.
048186,000376: 01,3407 00006 EXTEND
048187,000377: 01,3410 22012 QXCH QRUPT
048188,000378:
048189,000379: 01,3411 34734 T3RUPT2 CAF NEG1/2 # DISPATCH WAITLIST TASK.
048190,000380: 01,3412 57407 XCH LST1 +7
048191,000381: 01,3413 57406 XCH LST1 +6
048192,000382: 01,3414 57405 XCH LST1 +5
048193,000383: 01,3415 57404 XCH LST1 +4 # 1. MOVE UP LST1 CONTENTS, ENTERING
048194,000384: 01,3416 57403 XCH LST1 +3 # A VALUE OF 1/2 +1 AT THE BOTTOM
048195,000385: 01,3417 57402 XCH LST1 +2 # FOR T6-T5, CORRESPONDING TO THE
048196,000386: 01,3420 57401 XCH LST1 +1 # INTERVAL 81.91 SEC FOR ENDTASK.
048197,000387: 01,3421 57400 XCH LST1
048198,000388: 01,3422 64733 AD POSMAX # 2. SET T3 = 1.0 - T2 - T USING LIST 1.
048199,000389: 01,3423 26026 ADS TIME3 # SO T3 WONT TICK DURING UPDATE.
048200,000390: 01,3424 54734 TS RUPTAGN
048201,000391: 01,3425 44755 CS ZERO
048202,000392: 01,3426 54734 TS RUPTAGN # SETS RUPTAGN TO +1 ON OVERFLOW.
048203,000393:
048204,000394: 01,3427 00006 EXTEND # DISPATCH TASK.
048205,000395: 01,3430 45237 DCS ENDTASK
048206,000396: 01,3431 53431 DXCH LST2 +16D
048207,000397: 01,3432 53427 DXCH LST2 +14D
048208,000398: 01,3433 53425 DXCH LST2 +12D
048209,000399: 01,3434 53423 DXCH LST2 +10D
048210,000400: 01,3435 53421 DXCH LST2 +8D
048211,000401: 01,3436 53417 DXCH LST2 +6
048212,000402: 01,3437 53415 DXCH LST2 +4
048213,000403: 01,3440 53413 DXCH LST2 +2
048214,000404: 01,3441 53411 DXCH LST2
048215,000405:
048216,000406: 01,3442 56001 XCH L
048217,000407: 01,3443 00006 EXTEND
048218,000408: 01,3444 01007 WRITE SUPERBNK # SET SUPERBANK FROM BBCON OF 2CADR
048219,000409: 01,3445 56001 XCH L # RESTORE TO L FOR DXCH Z.
048220,000410: 01,3446 52006 DTCB
048221,000411:
Page 1124 |
048223,000413: # RETURN, AFTER EXECUTION OF T3 OVERFLOW TASK:
048224,000414:
048225,000415: 5261 BLOCK 02
048226,000416: 5261 COUNT* $$/WAIT
048227,000417: 5261 10734 TASKOVER CCS RUPTAGN # IF +1 RETURN TO T3RUPT, IF -0 RESUME.
048228,000418: 5262 35220 CAF WAITBB
048229,000419: 5263 54006 TS BBANK
048230,000420: 5264 13411 TCF T3RUPT2 # DISPATCH NEXT TASK IF IT WAS DUE.
048231,000421:
048232,000422: 5265 30016 CA BANKRUPT
048233,000423: 5266 00006 EXTEND
048234,000424: 5267 01007 WRITE SUPERBNK # RESTORE SUPERBANK BEFORE RESUME IS DONE
048235,000425:
048236,000426: 5270 00006 RESUME EXTEND
048237,000427: 5271 22012 QXCH QRUPT
048238,000428: 5272 30016 NOQRSM CA BANKRUPT
048239,000429: 5273 56006 XCH BBANK
048240,000430: 5274 52011 NOQBRSM DXCH ARUPT
048241,000431: 5275 00003 RELINT
048242,000432: 5276 50017 RESUME
048243,000433:
Page 1125 |
048245,000435: # LONGCALL
048246,000436: # PROGRAM DESCRIPTION DATE - 17 MARCH 1967
048247,000437: # PROGRAM WRITTEN BY W.H.VANDEVER LOG SECTION WAITLIST
048248,000438: # MOD BY - R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 100
048249,000439:
048250,000440: # FUNCTIONAL DESCRIPTION -
048251,000441: # LONGCALL IS CALLED WITH THE DELTA TIME ARRIVING IN A,L SCALED AS TIME2,TIME1 WITH THE 2CADR OF THE TASK
048252,000442: # IMMEDIATELY FOLLOWING THE TC LONGCALL. FOR EXAMPLE, IT MIGHT BE DONE AS FOLLOWS WHERE TIMELOC IS THE NAME OF
048253,000443: # A DP REGISTER CONTAINING A DELTA TIME AND WHERE TASKTODO IS THE NAME OF THE LOCATION AT WHICH LONGCALL IS TO
048254,000444: # START
048255,000445: # CALLING SEQUENCE -
048256,000446: # EXTEND
048257,000447: # DCA TIMELOC
048258,000448: # TC LONGCALL
048259,000449: # 2CADR TASKTODO
048260,000450: # NORMAL EXIT MODE -
048261,000451: # 1). TC WAITLIST
048262,000452: # 2). DTCB (TO L+3 OF CALLING ROUTINE 1ST PASS THRU LONGCYCL)
048263,000453: # 3). DTCB (TO TASKOVER ON SUBSEQUENT PASSES THRU LONGCYCL)
048264,000454: # ALARM OR ABORT EXIT MODE -
048265,000455: # NONE
048266,000456: # OUTPUT -
048267,000457: # LONGTIME AND LONGTIME+1 = DELTA TIME
048268,000458: # LONGEXIT AND LONGEXIT+1 = RETURN 2CADR
048269,000459: # LONGCADR AND LONGCADR+1 = TASK 2CADR
048270,000460: # A = SINGLE PRECISION TIME FOR WAITLIST
048271,000461: # ERASABLE INITIALIZATION -
048272,000462: # A = MOST SIGNIFICANT PART OF DELTA TIME
048273,000463: # L = LEAST SIGNIFICANT PART OF DELTA TIME
048274,000464: # Q = ADDRESS OF 2CADR TASK VALUE
048275,000465: # DEBRIS -
048276,000466: # A,Q,L
048277,000467: # LONGCADR AND LONGCADR+1
048278,000468: # LONGEXIT AND LONGEXIT+1
048279,000469: # LONGTIME AND LONGTIME+1
048280,000470: # *** THE FOLLOWING IS TO BE IN FIXED-FIXED AND UNSWITCHED ERRASIBLE ***
048281,000471:
048282,000472: 5277 BLOCK 02
048283,000473: 5277 E3,1400 EBANK= LST1
048284,000474: 5277 53154 LONGCALL DXCH LONGTIME # OBTAIN THE DELTA TIME
048285,000475:
048286,000476: 5300 00006 EXTEND # OBTAIN THE 2CADR
Page 1126 |
048288,000478: 5301 50002 NDX Q
048289,000479: 5302 30001 DCA 0
048290,000480: 5303 53150 DXCH LONGCADR
048291,000481:
048292,000482: 5304 00006 EXTEND # NOW GO TO THE APPROPRIATE SWITCHED BANK
048293,000483: 5305 35310 DCA LGCL2CDR # FOR THE REST OF LONGCALL
048294,000484: 5306 52006 DTCB
048295,000485:
048296,000486: 5307 E3,1400 EBANK= LST1
048297,000487: 5307 03447 02063 LGCL2CDR 2CADR LNGCALL2
048298,000488:
048299,000489: # *** THE FOLLOWING MAY BE IN A SWITCHED BANK, INCLUDING ITS ERASABLE ***
048300,000490:
048301,000491: 01,3447 BANK 01
048302,000492: 01,3447 COUNT* $$/WAIT
048303,000493: 01,3447 23435 LNGCALL2 LXCH LONGEXIT +1 # SAVE THE CORRECT BB FOR RETURN
048304,000494: 01,3450 34752 CA TWO # OBTAIN THE RETURN ADDRESS
048305,000495: 01,3451 26002 ADS Q
048306,000496: 01,3452 55434 TS LONGEXIT
048307,000497:
048308,000498: 01,3453 31153 CA LONGTIME # CHECK FOR LEGITIMATE DELTA-TIME
048309,000499: 01,3454 10000 CCS A
048310,000500: 01,3455 13463 TCF LONGCYCL # HI-ORDER OK --> ALL IS OK.
048311,000501: 01,3456 13460 TCF +2 # HI-ORDER ZERO --> CHECK LO-ORDER.
048312,000502: 01,3457 13516 TCF LONGPOOH # HI-ORDER NEG. --> NEG. DT
048313,000503: 01,3460 31154 +2 CA LONGTIME +1 # CHECK LO-ORDER FOR ZERO OR NEGATIVE.
048314,000504: 01,3461 00006 EXTEND
048315,000505: 01,3462 63516 BZMF LONGPOOH # BAD DELTA-TIME. ABORT
048316,000506:
048317,000507: # *** WAITLIST TASK LONGCYCL ***
048318,000508:
048319,000509: 01,3463 00006 LONGCYCL EXTEND # CAN WE SUCCESFULLY TAKE ABOUT 1.25
048320,000510: 01,3464 43475 DCS DPBIT14 # MINUTES OFF OF LONGTIME
048321,000511: 01,3465 21154 DAS LONGTIME
048322,000512:
048323,000513: 01,3466 11154 CCS LONGTIME +1 # THE REASONIBG BEHIND THIS PART IS
048324,000514: 01,3467 13506 TCF MUCHTIME # INVOLVED, TAKING INTO ACCOUNT THAT THE
048325,000515: # WORDS MAY NOT BE SIGNED CORRECTED (DP
048326,000516: # BASIC INSTRUCTIONS
048327,000517: # DO NOT SIGN CORRECT) AND THAT WE SUBTRAC
048328,000518: # TED BIT14 (1 OVER HALF THE POS. VALUE
048329,000519: # REPRESENTIBLE IN SINGLE WORD)
048330,000520: 01,3470 13471 NOOP # CAN:T GET HERE **********
048331,000521: 01,3471 13472 TCF +1
048332,000522: 01,3472 11153 CCS LONGTIME
048333,000523: 01,3473 13506 TCF MUCHTIME
048334,000524: 01,3474 00000 DPBIT14 OCT 00000
048335,000525: 01,3475 20000 OCT 20000
048336,000526:
048337,000527: # LONGCALL
Page 1127 |
048339,000529: 01,3476 34736 LASTTIME CA BIT14 # GET BACK THE CORRECT DELTA TFOR WAITLIST
048340,000530: 01,3477 27154 ADS LONGTIME +1
048341,000531: 01,3500 05203 TC WAITLIST
048342,000532: 01,3501 E3,1400 EBANK= LST1
048343,000533: 01,3501 03513 02063 2CADR GETCADR # THE ENTRY TO OUR LONGCADR
048344,000534:
048345,000535: 01,3503 33515 LONGRTRN CA TSKOVCDR # SET IT UP SO THAT ONLY THE FIRST EXIT IS
048346,000536: 01,3504 53435 DXCH LONGEXIT # TO THE CALLER OF LONGCALL
048347,000537: 01,3505 52006 DTCB # THE REST ARE TO TASKOVER
048348,000538:
048349,000539: 01,3506 34736 MUCHTIME CA BIT14 # WE HAVE OVER OUR ABOUT 1.25 MINUTES
048350,000540: 01,3507 05203 TC WAITLIST # SO SET UP FOR ANOTHER CYCLE THROUGH HERE
048351,000541: 01,3510 E3,1400 EBANK= LST1
048352,000542: 01,3510 03463 02063 2CADR LONGCYCL
048353,000543:
048354,000544: 01,3512 13503 TCF LONGRTRN # NOW EXIT PROPERLY
048355,000545:
048356,000546: # *** WAITLIST TASK GETCADR ***
048357,000547:
048358,000548: 01,3513 53150 GETCADR DXCH LONGCADR # GET THE LONGCALL THAT WE WISHED TO START
048359,000549: 01,3514 52006 DTCB # AND TRANSFER CONTROL TO IT
048360,000550:
048361,000551: 01,3515 05261 TSKOVCDR GENADR TASKOVER
048362,000552: 01,3516 53435 LONGPOOH DXCH LONGEXIT
048363,000553: 01,3517 13521 TCF +2
048364,000554: 01,3520 52062 WAITPOOH DXCH WAITEXIT
048365,000555: 01,3521 05720 +2 TC POODOO1
048366,000556: 01,3522 01204 OCT 01204
048367,000557:
End of include-file WAITLIST.agc. Parent file is MAIN.agc