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