Source Code
These source-code files are part of a reconstructed copy of Luminary 96, the
original release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. 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 96 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. |
046230,000002: ## Copyright: Public domain.
046231,000003: ## Filename: EXECUTIVE.agc
046232,000004: ## Purpose: A section of Luminary revision 96.
046233,000005: ## It is part of the reconstructed source code for the
046234,000006: ## original release of the flight software for the Lunar
046235,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
046236,000008: ## The code has been recreated from a previously reconstructed
046237,000009: ## copy of Luminary 97 by undoing changes described in anomaly
046238,000010: ## report LNY-59. The code has been adapted such that the
046239,000011: ## resulting bugger words exactly match those specified for
046240,000012: ## Luminary 96 in NASA drawing 2021152D, which gives relatively
046241,000013: ## high confidence that the reconstruction is correct.
046242,000014: ## Reference: pp. 1103-1116
046243,000015: ## Assembler: yaYUL
046244,000016: ## Contact: Ron Burkey <info@sandroid.org>.
046245,000017: ## Website: www.ibiblio.org/apollo/index.html
046246,000018: ## Mod history: 2019-08-04 MAS Created from Luminary 97.
046247,000019:
Page 1103 |
046249,000021: 5072 BLOCK 02
046250,000022:
046251,000023: # TO ENTER A JOB REQUEST REQUIRING NO VAC AREA:
046252,000024:
046253,000025: 5072 COUNT* $$/EXEC
046254,000026: 5072 00004 NOVAC INHINT
046255,000027: 5073 65164 AD FAKEPRET # LOC(MPAC +6) - LOC(QPRET)
046256,000028: 5074 54063 TS NEWPRIO # PRIORITY OF NEW JOB + NOVAC C(FIXLOC)
046257,000029:
046258,000030: 5075 00006 EXTEND
046259,000031: 5076 50002 INDEX Q # Q WILL BE UNDISTURBED THROUGHOUT.
046260,000032: 5077 30001 DCA 0 # 2CADR OF JOB ENTERED.
046261,000033: 5100 52066 DXCH NEWLOC
046262,000034: 5101 35163 CAF EXECBANK
046263,000035: 5102 56004 XCH FBANK
046264,000036: 5103 54061 TS EXECTEM1
046265,000037: 5104 12625 TCF NOVAC2 # ENTER EXECUTIVE BANK.
046266,000038:
046267,000039: # TO ENTER A JOB REQUEST REQUIRING A VAC AREA - E.G., ALL (PARTIALLY) INTERPRETIVE JOBS.
046268,000040:
046269,000041: 5105 00004 FINDVAC INHINT
046270,000042: 5106 54063 TS NEWPRIO
046271,000043: 5107 00006 EXTEND
046272,000044: 5110 50002 INDEX Q
046273,000045: 5111 30001 DCA 0
046274,000046: 5112 52066 SPVACIN DXCH NEWLOC
046275,000047: 5113 35163 CAF EXECBANK
046276,000048: 5114 56004 XCH FBANK
046277,000049: 5115 12601 TCF FINDVAC2 # OFF TO EXECUTIVE SWITCHED-BANK.
046278,000050:
046279,000051: # TO ENTER A FINDVAC WITH THE PRIORITY IN NEWPRIO TO THE 2CADR ARRIVING IN A AND L:
046280,000052: # USERS OF SPVAC MUST INHINT BEFORE STORING IN NEWPRIO.
046281,000053:
046282,000054: 5116 56002 SPVAC XCH Q
046283,000055: 5117 67746 AD NEG2
046284,000056: 5120 56002 XCH Q
046285,000057: 5121 15112 TCF SPVACIN
046286,000058:
046287,000059: # TO SUSPEND A BASIC JOB SO A HIGHER PRIORITY JOB MAY BE SERVICED:
046288,000060:
046289,000061: 5122 22002 CHANG1 LXCH Q
046290,000062: 5123 35163 CAF EXECBANK
046291,000063: 5124 56006 XCH BBANK
046292,000064: 5125 12706 TCF CHANJOB
046293,000065:
046294,000066: # TO SUSPEND AN INTERPRETIVE JOB:
046295,000067:
046296,000068: 5126 40164 CHANG2 CS LOC # NEGATIVE LOC SHOWS JOB = INTERPRETIVE.
046297,000069: # ITRACE (4) REFERS TO "CHANG2".
046298,000070: 5127 54001 TS L
Page 1104 |
046300,000072: 5130 35163 +2 CAF EXECBANK
046301,000073: 5131 54006 TS BBANK
046302,000074: 5132 12705 TCF CHANJOB -1
046303,000075:
Page 1105 |
046305,000077: # TO VOLUNTARILY SUSPEND A JOB UNTIL THE COMPLETION OF SOME ANTICIPATED EVENT (I/O EVENT ETC.):
046306,000078:
046307,000079: 5133 54164 JOBSLEEP TS LOC
046308,000080: 5134 35163 CAF EXECBANK
046309,000081: 5135 54004 TS FBANK
046310,000082: 5136 12776 TCF JOBSLP1
046311,000083:
046312,000084: # TO AWAKEN A JOB PUT TO SLEEP IN THE ABOVE FASHION:
046313,000085:
046314,000086: 5137 00004 JOBWAKE INHINT
046315,000087: 5140 54065 TS NEWLOC
046316,000088: 5141 44752 CS TWO # EXIT IS VIA FINDVAC/NOVAC PROCEDURES.
046317,000089: 5142 26002 ADS Q
046318,000090: 5143 35163 CAF EXECBANK
046319,000091: 5144 56004 XCH FBANK
046320,000092: 5145 13023 TCF JOBWAKE2
046321,000093:
046322,000094: # TO CHANGE THE PRIORITY OF A JOB CURRENTLY UNDER EXECUTION:
046323,000095:
046324,000096: 5146 00004 PRIOCHNG INHINT # NEW PRIORITY ARRIVES IN A. RETURNS TO
046325,000097: 5147 54063 TS NEWPRIO # CALLER AS SOON AS NEW JOB PRIORITY IS
046326,000098: 5150 35163 CAF EXECBANK # HIGHEST. PREPARE FOR POSSIBLE BASIC-
046327,000099: 5151 56006 XCH BBANK # STYLE CHANGE-JOB.
046328,000100: 5152 54165 TS BANKSET
046329,000101: 5153 30002 CA Q
046330,000102: 5154 13072 TCF PRIOCH2
046331,000103:
046332,000104: # TO REMOVE A JOB FROM EXECUTIVE CONSIDERATIONS:
046333,000105:
046334,000106: 5155 35163 ENDOFJOB CAF EXECBANK
046335,000107: 5156 54004 TS FBANK
046336,000108: 5157 13103 TCF ENDJOB1
046337,000109:
046338,000110: 5160 30061 ENDFIND CA EXECTEM1 # RETURN TO CALLER AFTER JOB ENTRY
046339,000111: 5161 54004 TS FBANK # COMPLETE.
046340,000112: 5162 16741 TCF Q+2
046341,000113: 5163 02601 EXECBANK CADR FINDVAC2
046342,000114:
046343,000115: 5164 00110 FAKEPRET ADRES MPAC -36D # LOC(MPAC +6) - LOC(QPRET)
046344,000116:
Page 1106 |
046346,000118: # LOCATE AN AVAILABLE VAC AREA.
046347,000119:
046348,000120: 01,2601 BANK 01
046349,000121: 01,2601 COUNT* $$/EXEC
046350,000122: 01,2601 54061 FINDVAC2 TS EXECTEM1 # (SAVE CALLER'S BANK FIRST.)
046351,000123: 01,2602 10400 CCS VAC1USE
046352,000124: 01,2603 12620 TCF VACFOUND
046353,000125: 01,2604 10454 CCS VAC2USE
046354,000126: 01,2605 12620 TCF VACFOUND
046355,000127: 01,2606 10530 CCS VAC3USE
046356,000128: 01,2607 12620 TCF VACFOUND
046357,000129: 01,2610 10604 CCS VAC4USE
046358,000130: 01,2611 12620 TCF VACFOUND
046359,000131: 01,2612 10660 CCS VAC5USE
046360,000132: 01,2613 12620 TCF VACFOUND
046361,000133: 01,2614 22061 LXCH EXECTEM1
046362,000134: 01,2615 30002 CA Q
046363,000135: 01,2616 05716 TC BAILOUT1
046364,000136: 01,2617 01201 OCT 1201 # NO VAC AREAS.
046365,000137:
046366,000138: 01,2620 64752 VACFOUND AD TWO # RESERVE THIS VAC AREA BY STORING A ZERO
046367,000139: 01,2621 22007 ZL # IN ITS VAC USE REGISTER AND STORE THE
046368,000140: 01,2622 50000 INDEX A # ADDRESS OF THE FIRST WORD OF IT IN THE
046369,000141: 01,2623 21777 LXCH 0 -1 # LOW NINE BITS OF THE PRIORITY WORD.
046370,000142: 01,2624 26063 ADS NEWPRIO
046371,000143:
046372,000144: 01,2625 34755 NOVAC2 CAF ZERO # NOVAC ENTERS HERE. FIND A CORE SET.
046373,000145: 01,2626 54064 TS LOCCTR
046374,000146: 01,2627 32634 CAF NO.CORES # SEVEN SETS OF ELEVEN REGISTERS EACH.
046375,000147: 01,2630 54062 NOVAC3 TS EXECTEM2
046376,000148: 01,2631 50064 INDEX LOCCTR
046377,000149: 01,2632 10167 CCS PRIORITY # EACH PRIORITY REGISTER CONTAINS -0 IF
046378,000150: 01,2633 12674 TCF NEXTCORE # THE CORRESPONDING CORE SET IS AVAILABLE.
046379,000151: 01,2634 00007 NO.CORES DEC 7 B-14
046380,000152: 01,2635 12674 TCF NEXTCORE # AN ACTIVE JOB HAS A POSITIVE PRIORITY
046381,000153: # BUT A DORMANT JOB'S PRIORITY IS NEGATIVE
046382,000154:
Page 1107 |
046384,000156: 01,2636 30063 CORFOUND CA NEWPRIO # SET THE PRIORITY OF THIS JOB IN THE CORE
046385,000157: 01,2637 50064 INDEX LOCCTR # SET'S PRIORITY REGISTER AND SET THE
046386,000158: 01,2640 54167 TS PRIORITY # JOB'S PUSH-DOWN POINTER AT THE BEGINNING
046387,000159: 01,2641 75004 MASK LOW9 # OF THE WORK AREA AND OVERFLOW INDICATOR
046388,000160: 01,2642 50064 INDEX LOCCTR
046389,000161: 01,2643 54166 TS PUSHLOC # OFF TO PREPARE FOR INTERPRETIVE PROGRAMS
046390,000162:
046391,000163: 01,2644 10064 CCS LOCCTR # IF CORE SET ZERO IS BEING LOADED, SET UP
046392,000164: 01,2645 12661 TCF SETLOC # OVFIND AND FIXLOC IMMEDIATELY.
046393,000165: 01,2646 54121 TS OVFIND
046394,000166: 01,2647 30166 CA PUSHLOC
046395,000167: 01,2650 54120 TS FIXLOC
046396,000168:
046397,000169: 01,2651 10067 SPECTEST CCS NEWJOB # SEE IF ANY ACTIVE JOBS WAITING (RARE).
046398,000170: 01,2652 12661 TCF SETLOC # MUST BE AWAKENED BUT UNCHANGED JOB.
046399,000171: 01,2653 05705 TC CCSHOLE
046400,000172: 01,2654 05705 TC CCSHOLE
046401,000173: 01,2655 54067 TS NEWJOB # +0 SHOWS ACTIVE JOB ALREADY SET.
046402,000174: 01,2656 52066 DXCH NEWLOC
046403,000175: 01,2657 52165 DXCH LOC
046404,000176: 01,2660 15160 TCF ENDFIND
046405,000177:
046406,000178: 01,2661 52066 SETLOC DXCH NEWLOC # SET UP THE LOCATION REGISTERS FOR THIS
046407,000179: 01,2662 50064 INDEX LOCCTR
046408,000180: 01,2663 52165 DXCH LOC
046409,000181: 01,2664 50067 INDEX NEWJOB # THIS INDEX INSTRUCTION INSURES THAT THE
046410,000182: 01,2665 40167 CS PRIORITY # HIGHEST ACTIVE PRIORITY WILL BE COMPARED
046411,000183: 01,2666 60063 AD NEWPRIO # WITH THE NEW PRIORITY TO SEE IF NEWJOB
046412,000184: 01,2667 00006 EXTEND # SHOULD BE SET TO SIGNAL A SWITCH.
046413,000185: 01,2670 65160 BZMF ENDFIND
046414,000186: 01,2671 30064 CA LOCCTR # LOCCTR IS LEFT SET AT THIS CORE SET IF
046415,000187: 01,2672 54067 TS NEWJOB # THE CALLER WANTS TO LOAD ANY MPAC
046416,000188: 01,2673 15160 TCF ENDFIND # REGISTERS, ETC.
046417,000189:
046418,000190: 01,2674 33033 NEXTCORE CAF COREINC
046419,000191: 01,2675 26064 ADS LOCCTR
046420,000192: 01,2676 10062 CCS EXECTEM2
046421,000193: 01,2677 12630 TCF NOVAC3
046422,000194: 01,2700 22061 LXCH EXECTEM1
046423,000195: 01,2701 30002 CA Q
046424,000196: 01,2702 05716 TC BAILOUT1 # NO CORE SETS AVAILABLE.
046425,000197: 01,2703 01202 OCT 1202
Page 1108 |
046427,000199: # THE FOLLOWING ROUTINE SWAPS CORE SET 0 WITH THAT WHOSE RELATIVE ADDRESS IS IN NEWJOB.
046428,000200:
046429,000201: 01,2704 22164 -2 LXCH LOC
046430,000202: 01,2705 30165 -1 CAE BANKSET # BANKSET, NOT BBANK, HAS RIGHT CONTENTS.
046431,000203: 01,2706 00004 CHANJOB INHINT
046432,000204: 01,2707 00006 EXTEND
046433,000205: 01,2710 04007 ROR SUPERBNK # PICK UP CURRENT SBANK FOR BBCON
046434,000206: 01,2711 56001 XCH L # LOC IN A AND BBCON IN L.
046435,000207: 01,2712 50067 +4 INDEX NEWJOB # SWAP LOC AND BANKSET.
046436,000208: 01,2713 52165 DXCH LOC
046437,000209: 01,2714 52165 DXCH LOC
046438,000210:
046439,000211: 01,2715 30165 CAE BANKSET
046440,000212: 01,2716 00006 EXTEND
046441,000213: 01,2717 01007 WRITE SUPERBNK # SET SBANK FOR NEW JOB.
046442,000214: 01,2720 52155 DXCH MPAC # SWAP MULTI-PURPOSE ACCUMULATOR AREAS.
046443,000215: 01,2721 50067 INDEX NEWJOB
046444,000216: 01,2722 52155 DXCH MPAC
046445,000217: 01,2723 52155 DXCH MPAC
046446,000218: 01,2724 52157 DXCH MPAC +2
046447,000219: 01,2725 50067 INDEX NEWJOB
046448,000220: 01,2726 52157 DXCH MPAC +2
046449,000221: 01,2727 52157 DXCH MPAC +2
046450,000222: 01,2730 52161 DXCH MPAC +4
046451,000223: 01,2731 50067 INDEX NEWJOB
046452,000224: 01,2732 52161 DXCH MPAC +4
046453,000225: 01,2733 52161 DXCH MPAC +4
046454,000226: 01,2734 52163 DXCH MPAC +6
046455,000227: 01,2735 50067 INDEX NEWJOB
046456,000228: 01,2736 52163 DXCH MPAC +6
046457,000229: 01,2737 52163 DXCH MPAC +6
046458,000230:
046459,000231: 01,2740 34755 CAF ZERO
046460,000232: 01,2741 56121 XCH OVFIND # MAKE PUSHLOC NEGATIVE IF OVFIND NZ.
046461,000233: 01,2742 00006 EXTEND
046462,000234: 01,2743 12746 BZF +3
046463,000235: 01,2744 40166 CS PUSHLOC
046464,000236: 01,2745 54166 TS PUSHLOC
046465,000237:
046466,000238: 01,2746 52167 DXCH PUSHLOC
046467,000239: 01,2747 50067 INDEX NEWJOB
046468,000240: 01,2750 52167 DXCH PUSHLOC
046469,000241: 01,2751 52167 DXCH PUSHLOC # SWAPS PUSHLOC AND PRIORITY.
046470,000242: 01,2752 35004 CAF LOW9 # SET FIXLOC TO BASE OF VAC AREA.
046471,000243: 01,2753 70167 MASK PRIORITY
046472,000244: 01,2754 54120 TS FIXLOC
046473,000245:
046474,000246: 01,2755 10166 CCS PUSHLOC # SET OVERFLOW INDICATOR ACCORDING TO
046475,000247: 01,2756 34755 CAF ZERO
046476,000248: 01,2757 12764 TCF ENDPRCHG -1
046477,000249:
Page 1109 |
046479,000251: 01,2760 40166 CS PUSHLOC
046480,000252: 01,2761 54166 TS PUSHLOC
046481,000253: 01,2762 34753 CAF ONE
046482,000254: 01,2763 56121 XCH OVFIND
046483,000255: 01,2764 54067 TS NEWJOB
046484,000256:
046485,000257: 01,2765 00003 ENDPRCHG RELINT
046486,000258: 01,2766 52165 DXCH LOC # BASIC JOBS HAVE POSITIVE ADDRESSES, SO
046487,000259: 01,2767 00006 EXTEND # DISPATCH WITH A DTCB.
046488,000260: 01,2770 62772 BZMF +2 # IF INTERPRETIVE, SET UP EBANK, ETC.
046489,000261: 01,2771 52006 DTCB
Page 1110 |
046491,000263: 01,2772 40000 COM # EPILOGUE TO JOB CHANGE FOR INTERPRETIVE
046492,000264: 01,2773 64753 AD ONE
046493,000265: 01,2774 54164 TS LOC # RESUME.
046494,000266: 01,2775 16050 TCF INTRSM
046495,000267:
046496,000268: # COMPLETE JOBSLEEP PREPARATIONS.
046497,000269:
046498,000270: 01,2776 00004 JOBSLP1 INHINT
046499,000271: 01,2777 40167 CS PRIORITY # NNZ PRIORITY SHOWS JOB ASLEEP.
046500,000272: 01,3000 54167 TS PRIORITY
046501,000273: 01,3001 36074 CAF LOW7
046502,000274: 01,3002 70006 MASK BBANK
046503,000275: 01,3003 00006 EXTEND
046504,000276: 01,3004 04007 ROR SUPERBNK # SAVE OLD SUPERBANK VALUE.
046505,000277: 01,3005 54165 TS BANKSET
046506,000278: 01,3006 44755 CS ZERO
046507,000279: 01,3007 54131 JOBSLP2 TS BUF +1 # HOLDS - HIGHEST PRIORITY.
046508,000280: 01,3010 13120 TCF EJSCAN # SCAN FOR HIGHEST PRIORITY ALA ENDOFJOB.
046509,000281:
046510,000282: 01,3011 00004 NUCHANG2 INHINT # QUICK... DONT LET NEWJOB CHANGE TO +0.
046511,000283: 01,3012 10067 CCS NEWJOB
046512,000284: 01,3013 13016 TCF +3 # NEWJOB STILL PNZ
046513,000285: 01,3014 00003 RELINT # NEW JOB HAS CHANGED TO +0. WAKE UP JOB
046514,000286: 01,3015 13216 TCF ADVAN +2 # VIA NUDIRECT. (VERY RARE CASE.)
046515,000287:
046516,000288: 01,3016 34752 CAF TWO
046517,000289: 01,3017 00006 EXTEND
046518,000290: 01,3020 05011 WOR DSALMOUT # TURN ON ACTIVITY LIGHT
046519,000291: 01,3021 52165 DXCH LOC # AND SAVE ADDRESS INFO FOR BENEFIT OF
046520,000292: 01,3022 12712 TCF CHANJOB +4 # POSSIBLE SLEEPING JOB.
046521,000293:
Page 1111 |
046523,000295: # TO WAKE UP A JOB, EACH CORE SET IS FOUND TO LOCATE ALL JOBS WHICH ARE ASLEEP. IF THE FCADR IN THE
046524,000296: # LOC REGISTER OF ANY SUCH JOB MATCHES THAT SUPPLIED BY THE CALLER, THAT JOB IS AWAKENED. IF NO JOB IS FOUND,
046525,000297: # LOCCTR IS SET TO -1 AND NO FURTHER ACTION TAKES PLACE.
046526,000298:
046527,000299: 01,3023 54061 JOBWAKE2 TS EXECTEM1
046528,000300: 01,3024 34755 CAF ZERO # BEGIN CORE SET SCAN.
046529,000301: 01,3025 54064 TS LOCCTR
046530,000302: 01,3026 32634 CAF NO.CORES
046531,000303: 01,3027 54062 JOBWAKE4 TS EXECTEM2
046532,000304: 01,3030 50064 INDEX LOCCTR
046533,000305: 01,3031 10167 CCS PRIORITY
046534,000306: 01,3032 13035 TCF JOBWAKE3 # ACTIVE JOB - CHECK NEXT CORE SET.
046535,000307: 01,3033 00014 COREINC DEC 12 B-14 # 12 REGISTERS PER CORE SET.
046536,000308: 01,3034 13044 TCF WAKETEST # SLEEPING JOB - SEE IF CADR MATCHES.
046537,000309:
046538,000310: 01,3035 33033 JOBWAKE3 CAF COREINC
046539,000311: 01,3036 26064 ADS LOCCTR
046540,000312: 01,3037 10062 CCS EXECTEM2
046541,000313: 01,3040 13027 TCF JOBWAKE4
046542,000314: 01,3041 44753 CS ONE # EXIT IF SLEEPING JOB NOT FOUND.
046543,000315: 01,3042 54064 TS LOCCTR
046544,000316: 01,3043 15160 TCF ENDFIND
046545,000317:
046546,000318: 01,3044 40065 WAKETEST CS NEWLOC
046547,000319: 01,3045 50064 INDEX LOCCTR
046548,000320: 01,3046 60164 AD LOC
046549,000321: 01,3047 00006 EXTEND
046550,000322: 01,3050 13052 BZF +2 # IF MATCH.
046551,000323: 01,3051 13035 TCF JOBWAKE3 # EXAMINE NEXT CORE SET IF NO MATCH.
046552,000324:
046553,000325: 01,3052 50064 INDEX LOCCTR # RE-COMPLEMENT PRIORITY TO SHOW JOB AWAKE
046554,000326: 01,3053 40167 CS PRIORITY
046555,000327: 01,3054 54063 TS NEWPRIO
046556,000328: 01,3055 50064 INDEX LOCCTR
046557,000329: 01,3056 54167 TS PRIORITY
046558,000330:
046559,000331: 01,3057 44350 CS FBANKMSK # MAKE UP THE 2CADR OF THE WAKE ADDRESS
046560,000332: 01,3060 70065 MASK NEWLOC # USING THE CADR IN NEWLOC AND THE EBANK
046561,000333: 01,3061 64741 AD 2K # HALF OF BBANK SAVED IN BANKSET.
046562,000334: 01,3062 56065 XCH NEWLOC
046563,000335: 01,3063 74350 MASK FBANKMSK
046564,000336: 01,3064 50064 INDEX LOCCTR
046565,000337: 01,3065 60165 AD BANKSET
046566,000338: 01,3066 54066 TS NEWLOC +1
046567,000339:
046568,000340: 01,3067 10064 CCS LOCCTR # SPECIAL TREATMENT IF THIS JOB WAS
046569,000341: 01,3070 12661 TCF SETLOC # ALREADY IN THE RUN (0) POSITION.
046570,000342: 01,3071 12651 TCF SPECTEST
046571,000343:
Page 1112 |
046573,000345: # PRIORITY CHANGE. CHANGE THE CONTENTS OF PRIORITY AND SCAN FOR THE JOB OF HIGHEST PRIORITY.
046574,000346:
046575,000347: 01,3072 54164 PRIOCH2 TS LOC
046576,000348: 01,3073 34755 CAF ZERO # SET FLAG TO TELL ENDJOB SCANNER IF THIS
046577,000349: 01,3074 54130 TS BUF # JOB IS STILL HIGHEST PRIORITY.
046578,000350: 01,3075 35004 CAF LOW9
046579,000351: 01,3076 70167 MASK PRIORITY
046580,000352: 01,3077 60063 AD NEWPRIO
046581,000353: 01,3100 54167 TS PRIORITY
046582,000354: 01,3101 40000 COM
046583,000355: 01,3102 13007 TCF JOBSLP2 # AND TO EJSCAN.
046584,000356:
Page 1113 |
046586,000358: # RELEASE THIS CORE SET AND VAC AREA AND SCAN FOR THE JOB OF HIGHEST ACTIVE PRIORITY.
046587,000359:
046588,000360: 01,3103 00004 ENDJOB1 INHINT
046589,000361: 01,3104 44755 CS ZERO
046590,000362: 01,3105 54131 TS BUF +1
046591,000363: 01,3106 56167 XCH PRIORITY
046592,000364: 01,3107 75004 MASK LOW9
046593,000365: 01,3110 54001 TS L
046594,000366:
046595,000367: 01,3111 45164 CS FAKEPRET
046596,000368: 01,3112 60001 AD L
046597,000369:
046598,000370: 01,3113 00006 EXTEND
046599,000371: 01,3114 63120 BZMF EJSCAN # NOVAC ENDOFJOB
046600,000372:
046601,000373: 01,3115 10001 CCS L
046602,000374: 01,3116 50000 INDEX A
046603,000375: 01,3117 54000 TS 0
046604,000376:
046605,000377: 01,3120 10203 EJSCAN CCS PRIORITY +12D
046606,000378: 01,3121 03171 TC EJ1
046607,000379: 01,3122 05705 TC CCSHOLE
046608,000380: 01,3123 13124 TCF +1
046609,000381:
046610,000382: 01,3124 10217 CCS PRIORITY +24D # EXAMINE EACH PRIORITY REGISTER TO FIND
046611,000383: 01,3125 03171 TC EJ1 # THE JOB OF HIGHEST ACTIVE PRIORITY.
046612,000384: 01,3126 05705 TC CCSHOLE
046613,000385: 01,3127 13130 TCF +1
046614,000386:
046615,000387: 01,3130 10233 CCS PRIORITY +36D
046616,000388: 01,3131 03171 TC EJ1
046617,000389: 01,3132 67610 -CCSPR -CCS PRIORITY
046618,000390: 01,3133 13134 TCF +1
046619,000391:
046620,000392: 01,3134 10247 CCS PRIORITY +48D
046621,000393: 01,3135 03171 TC EJ1
046622,000394: 01,3136 05705 TC CCSHOLE
046623,000395: 01,3137 13140 TCF +1
046624,000396:
046625,000397: 01,3140 10263 CCS PRIORITY +60D
046626,000398: 01,3141 03171 TC EJ1
046627,000399: 01,3142 05705 TC CCSHOLE
046628,000400: 01,3143 13144 TCF +1
046629,000401:
046630,000402: 01,3144 10277 CCS PRIORITY +72D
046631,000403: 01,3145 03171 TC EJ1
046632,000404: 01,3146 05705 TC CCSHOLE
046633,000405: 01,3147 13150 TCF +1
046634,000406:
046635,000407: 01,3150 10313 CCS PRIORITY +84D
Page 1114 |
046637,000409: 01,3151 03171 TC EJ1
046638,000410: 01,3152 05705 TC CCSHOLE
046639,000411: 01,3153 13154 TCF +1
046640,000412:
Page 1115 |
046642,000414: # EVALUATE THE RESULTS OF THE SCAN.
046643,000415:
046644,000416: 01,3154 10131 CCS BUF +1 # SEE IF THERE ARE ANY ACTIVE JOBS WAITING
046645,000417: 01,3155 05705 TC CCSHOLE
046646,000418: 01,3156 05705 TC CCSHOLE
046647,000419:
046648,000420: 01,3157 13161 TCF +2
046649,000421: 01,3160 13206 TCF DUMMYJOB
046650,000422: 01,3161 10130 CCS BUF # BUF IS ZERO IF THIS IS A PRIOCHNG AND
046651,000423: 01,3162 13164 TCF +2 # CHANGED PRIORITY IS STILL HIGHEST.
046652,000424: 01,3163 12764 TCF ENDPRCHG -1
046653,000425:
046654,000426: 01,3164 50000 INDEX A # OTHERWISE, SET NEWJOB TO THE RELATIVE
046655,000427: 01,3165 27777 CAF 0 -1 # ADDRESS OF THE NEW JOB'S CORE SET.
046656,000428: 01,3166 63132 AD -CCSPR
046657,000429: 01,3167 54067 TS NEWJOB
046658,000430: 01,3170 12704 TCF CHANJOB -2
046659,000431:
046660,000432: 01,3171 54132 EJ1 TS BUF +2
046661,000433: 01,3172 60131 AD BUF +1 # - OLD HIGH PRIORITY.
046662,000434: 01,3173 10000 CCS A
046663,000435: 01,3174 40132 CS BUF +2
046664,000436: 01,3175 13201 TCF EJ2 # NEW HIGH PRIORITY.
046665,000437: 01,3176 13177 NOOP
046666,000438: 01,3177 50002 INDEX Q
046667,000439: 01,3200 00002 TC 2 # PROCEED WITH SEARCH.
046668,000440:
046669,000441: 01,3201 54131 EJ2 TS BUF +1
046670,000442: 01,3202 00006 EXTEND
046671,000443: 01,3203 22130 QXCH BUF # FOR LOCATING CCS PRIORITY + X INSTR.
046672,000444: 01,3204 50130 INDEX BUF
046673,000445: 01,3205 00002 TC 2
046674,000446:
Page 1116 |
046676,000448: # IDLING AND COMPUTER ACTIVITY (GREEN) LIGHT MAINTENANCE. THE IDLING ROUTINE IS NOT A JOB IN ITSELF,
046677,000449: # BUT RATHER A SUBROUTINE OF THE EXECUTIVE.
046678,000450:
046679,000451: 01,3206 1361 EBANK= SELFRET # SELF-CHECK STORAGE IN EBANK.
046680,000452:
046681,000453: 01,3206 44755 DUMMYJOB CS ZERO # SET NEWJOB TO -0 FOR IDLING.
046682,000454: 01,3207 54067 TS NEWJOB
046683,000455: 01,3210 00003 RELINT
046684,000456: 01,3211 44752 CS TWO # TURN OFF THE ACTIVITY LIGHT.
046685,000457: 01,3212 00006 EXTEND
046686,000458: 01,3213 03011 WAND DSALMOUT
046687,000459: 01,3214 10067 ADVAN CCS NEWJOB # IS A NEWJOB ACTIVE?
046688,000460: 01,3215 13011 TCF NUCHANG2 # YES... ONE REQUIRING A CHANGE JOB.
046689,000461: 01,3216 34752 CAF TWO # NEW JOB ALREADY IN POSITION FOR
046690,000462: 01,3217 13225 TCF NUDIRECT # EXECUTION.
046691,000463:
046692,000464: 01,3220 31361 CA SELFRET
046693,000465: 01,3221 54001 TS L # PUT RETURN ADDRESS IN L.
046694,000466: 01,3222 33224 CAF SELFBANK
046695,000467: 01,3223 15166 TCF SUPDXCHZ +1 # AND DISPATCH JOB.
046696,000468:
046697,000469: 01,3224 1361 EBANK= SELFRET
046698,000470: 01,3224 66102 SELFBANK BBCON SELFCHK
046699,000471:
046700,000472: 01,3225 00006 NUDIRECT EXTEND # TURN THE GREEN LIGHT BACK ON.
046701,000473: 01,3226 05011 WOR DSALMOUT
046702,000474: 01,3227 52165 DXCH LOC # JOBS STARTED IN THIS FASHION MUST BE
046703,000475: 01,3230 15165 TCF SUPDXCHZ
046704,000476:
046705,000477: 5165 BLOCK 2 # IN FIXED-FIXED SO OTHERS MAY USE.
046706,000478:
046707,000479: 5165 COUNT* $$/EXEC
046708,000480:
046709,000481: # SUPDXCHZ - ROUTINE TO TRANSFER TO SUPERBANK.
046710,000482: # CALLING SEQUENCE
046711,000483: # TCF SUPDXCHZ WITH 2CADR OF DESIRED LOCATION IN A + L.
046712,000484:
046713,000485: 5165 56001 SUPDXCHZ XCH L # BASIC.
046714,000486: 5166 00006 +1 EXTEND
046715,000487: 5167 01007 WRITE SUPERBNK
046716,000488: 5170 54006 TS BBANK
046717,000489: 5171 00001 TC L
046718,000490:
046719,000491: 5172 77677 NEG100 OCT 77677
046720,000492:
End of include-file EXECUTIVE.agc. Parent file is MAIN.agc