Source Code
These source-code files are part of a reconstructed copy of Comanche 67, the
Apollo Guidance Computer (AGC) Command Module (CM) software for Apollo 12.
They have been adapted from sources files for Comanche 55, and updated via disassembly of binary dumps of original core rope memory modules, part numbers 2003972-1081, 2003972-1091, 2003972-1111, 2003972-1121, 2003972-1131, and 2003972-1141. Since only binary dumps (rather than listings) of Comanche 67 are available as source material, all comments and labels are approximate. They have been taken from other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing. |
050196,000002: ## Copyright: Public domain.
050197,000003: ## Filename: EXECUTIVE.agc
050198,000004: ## Purpose: A section of Comanche revision 067.
050199,000005: ## It is part of the reconstructed source code for the flight
050200,000006: ## software for the Command Module's (CM) Apollo Guidance Computer
050201,000007: ## (AGC) for Apollo 12. No original listings of this program are
050202,000008: ## available; instead, this file was created via dissassembly of
050203,000009: ## dumps of Comanche 067 core rope modules and comparison with
050204,000010: ## other AGC programs.
050205,000011: ## Assembler: yaYUL
050206,000012: ## Contact: Ron Burkey <info@sandroid.org>.
050207,000013: ## Website: www.ibiblio.org/apollo/index.html
050208,000014: ## Mod history: 2023-08-16 MAS Created from Comanche 055.
050209,000015: ## 2024-05-13 MAS Updated for Comanche 067.
050210,000016:
050211,000017: 5150 BLOCK 02
050212,000018:
050213,000019: # TO ENTER A JOB REQUEST REQUIRING NO VAC AREA:
050214,000020:
050215,000021: 5150 COUNT 02/EXEC
050216,000022:
050217,000023: 5150 00004 NOVAC INHINT
050218,000024: 5151 65242 AD FAKEPRET # LOC(MPAC +6) - LOC(QPRET)
050219,000025: 5152 54063 TS NEWPRIO # PRIORITY OF NEW JOB + NOVAC C(FIXLOC)
050220,000026:
050221,000027: 5153 00006 EXTEND
050222,000028: 5154 50002 INDEX Q # Q WILL BE UNDISTURBED THROUGHOUT.
050223,000029: 5155 30001 DCA 0 # 2CADR OF JOB ENTERED.
050224,000030: 5156 52066 DXCH NEWLOC
050225,000031: 5157 35241 CAF EXECBANK
050226,000032: 5160 56004 XCH FBANK
050227,000033: 5161 54061 TS EXECTEM1
050228,000034: 5162 12650 TCF NOVAC2 # ENTER EXECUTIVE BANK.
050229,000035:
050230,000036: # TO ENTER A JOB REQUEST REQUIRING A VAC AREA - E.G., ALL (PARTIALLY) INTERPRETIVE JOBS.
050231,000037:
050232,000038: 5163 00004 FINDVAC INHINT
050233,000039: 5164 54063 TS NEWPRIO
050234,000040: 5165 00006 EXTEND
050235,000041: 5166 50002 INDEX Q
050236,000042: 5167 30001 DCA 0
050237,000043: 5170 52066 SPVACIN DXCH NEWLOC
050238,000044: 5171 35241 CAF EXECBANK
050239,000045: 5172 56004 XCH FBANK
050240,000046: 5173 12626 TCF FINDVAC2 # OFF TO EXECUTIVE SWITCHED-BANK.
050241,000047:
050242,000048: # TO ENTER A FINDVAC WITH THE PRIORITY IN NEWPRIO TO THE 2CADR ARRIVING IN A AND L:
050243,000049: # USERS OF SPVAC MUST INHINT BEFORE STORING IN NEWPRIO.
050244,000050:
050245,000051: 5174 56002 SPVAC XCH Q
050246,000052: 5175 67715 AD NEG2
050247,000053: 5176 56002 XCH Q
050248,000054: 5177 15170 TCF SPVACIN
050249,000055:
050250,000056: # TO SUSPEND A BASIC JOB SO A HIGHER PRIORITY JOB MAY BE SERVICED:
050251,000057:
050252,000058: 5200 22002 CHANG1 LXCH Q
050253,000059: 5201 35241 CAF EXECBANK
050254,000060: 5202 56006 XCH BBANK
050255,000061: 5203 12727 TCF CHANJOB
050256,000062:
050257,000063: # TO SUSPEND AN INTERPRETIVE JOB:
050258,000064:
050259,000065: 5204 40164 CHANG2 CS LOC # NEGATIVE LOC SHOWS JOB = INTERPRETIVE.
050260,000066: # ITRACE (4) REFERS TO "CHANG2".
050261,000067: 5205 54001 TS L
050262,000068: 5206 35241 +2 CAF EXECBANK
050263,000069: 5207 54006 TS BBANK
050264,000070: 5210 12726 TCF CHANJOB -1
050265,000071:
050266,000072: # TO VOLUNTARILY SUSPEND A JOB UNTIL THE COMPLETION OF SOME ANTICIPATED EVENT (I/O EVENT ETC.):
050267,000073:
050268,000074: 5211 54164 JOBSLEEP TS LOC
050269,000075: 5212 35241 CAF EXECBANK
050270,000076: 5213 54004 TS FBANK
050271,000077: 5214 13017 TCF JOBSLP1
050272,000078:
050273,000079: # TO AWAKEN A JOB PUT TO SLEEP IN THE ABOVE FASHION:
050274,000080:
050275,000081: 5215 00004 JOBWAKE INHINT
050276,000082: 5216 54065 TS NEWLOC
050277,000083: 5217 45032 CS TWO # EXIT IS VIA FINDVAC/NOVAC PROCEDURES.
050278,000084: 5220 26002 ADS Q
050279,000085: 5221 35241 CAF EXECBANK
050280,000086: 5222 56004 XCH FBANK
050281,000087: 5223 13044 TCF JOBWAKE2
050282,000088:
050283,000089: # TO CHANGE THE PRIORITY OF A JOB CURRENTLY UNDER EXECUTION:
050284,000090:
050285,000091: 5224 00004 PRIOCHNG INHINT # NEW PRIORITY ARRIVES IN A. RETURNS TO
050286,000092: 5225 54063 TS NEWPRIO # CALLER AS SOON AS NEW JOB PRIORITY IS
050287,000093: 5226 35241 CAF EXECBANK # HIGHEST. PREPARE FOR POSSIBLE BASIC-
050288,000094: 5227 56006 XCH BBANK # STYLE CHANGE-JOB.
050289,000095: 5230 54165 TS BANKSET
050290,000096: 5231 30002 CA Q
050291,000097: 5232 13113 TCF PRIOCH2
050292,000098:
050293,000099: # TO REMOVE A JOB FROM EXECUTIVE CONSIDERATIONS:
050294,000100:
050295,000101: 5233 35241 ENDOFJOB CAF EXECBANK
050296,000102: 5234 54004 TS FBANK
050297,000103: 5235 13124 TCF ENDJOB1
050298,000104:
050299,000105: 5236 30061 ENDFIND CA EXECTEM1 # RETURN TO CALLER AFTER JOB ENTRY
050300,000106: 5237 54004 TS FBANK # COMPLETE.
050301,000107: 5240 16710 TCF Q+2
050302,000108: 5241 02626 EXECBANK CADR FINDVAC2
050303,000109:
050304,000110: 5242 00110 FAKEPRET ADRES MPAC -36D # LOC(MPAC +6) - LOC(QPRET)
050305,000111:
050306,000112: # LOCATE AN AVAILABLE VAC AREA.
050307,000113:
050308,000114: 01,2626 BANK 01
050309,000115: 01,2626 COUNT 01/EXEC
050310,000116:
050311,000117: 01,2626 54061 FINDVAC2 TS EXECTEM1 # (SAVE CALLER'S BANK FIRST.)
050312,000118: 01,2627 10400 CCS VAC1USE
050313,000119: 01,2630 12643 TCF VACFOUND
050314,000120: 01,2631 10454 CCS VAC2USE
050315,000121: 01,2632 12643 TCF VACFOUND
050316,000122: 01,2633 10530 CCS VAC3USE
050317,000123: 01,2634 12643 TCF VACFOUND
050318,000124: 01,2635 10604 CCS VAC4USE
050319,000125: 01,2636 12643 TCF VACFOUND
050320,000126: 01,2637 10660 CCS VAC5USE
050321,000127: 01,2640 12643 TCF VACFOUND
050322,000128: 01,2641 07755 TC BAILOUT
050323,000129: 01,2642 31201 OCT 31201 # NO VAC AREAS
050324,000130:
050325,000131: 01,2643 65032 VACFOUND AD TWO # RESERVE THIS VAC AREA BY STORING A ZERO
050326,000132: 01,2644 22007 ZL # IN ITS VAC USE REGISTER AND STORE THE
050327,000133: 01,2645 50000 INDEX A # ADDRESS OF THE FIRST WORD OF IT IN THE
050328,000134: 01,2646 21777 LXCH 0 -1 # LOW NINE BITS OF THE PRIORITY WORD.
050329,000135: 01,2647 26063 ADS NEWPRIO
050330,000136:
050331,000137: 01,2650 35035 NOVAC2 CAF ZERO # NOVAC ENTERS HERE. FIND A CORE SET.
050332,000138: 01,2651 54064 TS LOCCTR
050333,000139: 01,2652 32657 CAF NO.CORES # SEVEN SETS OF ELEVEN REGISTERS EACH.
050334,000140: 01,2653 54062 NOVAC3 TS EXECTEM2
050335,000141: 01,2654 50064 INDEX LOCCTR
050336,000142: 01,2655 10167 CCS PRIORITY # EACH PRIORITY REGISTER CONTAINS -0 IF
050337,000143: 01,2656 12717 TCF NEXTCORE # THE CORRESPONDING CORE SET IS AVAILABLE.
050338,000144: 01,2657 00006 NO.CORES DEC 6 B-14
050339,000145: 01,2660 12717 TCF NEXTCORE # AN ACTIVE JOB HAS A POSITIVE PRIORITY
050340,000146: # BUT A DORMANT JOB'S PRIORITY IS NEGATIVE
050341,000147:
050342,000148: 01,2661 30063 CORFOUND CA NEWPRIO # SET THE PRIORITY OF THIS JOB IN THE CORE
050343,000149: 01,2662 50064 INDEX LOCCTR # SET'S PRIORITY REGISTER AND SET THE
050344,000150: 01,2663 54167 TS PRIORITY # JOB'S PUSH-DOWN POINTER AT THE BEGINNING
050345,000151: 01,2664 75062 MASK LOW9 # OF THE WORK AREA AND OVERFLOW INDICATOR
050346,000152: 01,2665 50064 INDEX LOCCTR
050347,000153: 01,2666 54166 TS PUSHLOC # OFF TO PREPARE FOR INTERPRETIVE PROGRAMS
050348,000154:
050349,000155: 01,2667 10064 CCS LOCCTR # IF CORE SET ZERO IS BEING LOADED, SET UP
050350,000156: 01,2670 12704 TCF SETLOC # OVFIND AND FIXLOC IMMEDIATELY.
050351,000157: 01,2671 54121 TS OVFIND
050352,000158: 01,2672 30166 CA PUSHLOC
050353,000159: 01,2673 54120 TS FIXLOC
050354,000160:
050355,000161: 01,2674 10067 SPECTEST CCS NEWJOB # SEE IF ANY ACTIVE JOBS WAITING (RARE).
050356,000162: 01,2675 12704 TCF SETLOC # MUST BE AWAKENED BUT UNCHANGED JOB.
050357,000163: 01,2676 05753 TC CCSHOLE
050358,000164: 01,2677 05753 TC CCSHOLE
050359,000165: 01,2700 54067 TS NEWJOB # +0 SHOWS ACTIVE JOB ALREADY SET.
050360,000166: 01,2701 52066 DXCH NEWLOC
050361,000167: 01,2702 52165 DXCH LOC
050362,000168: 01,2703 15236 TCF ENDFIND
050363,000169:
050364,000170: 01,2704 52066 SETLOC DXCH NEWLOC # SET UP THE LOCATION REGISTERS FOR THIS
050365,000171: 01,2705 50064 INDEX LOCCTR
050366,000172: 01,2706 52165 DXCH LOC
050367,000173: 01,2707 50067 INDEX NEWJOB # THIS INDEX INSTRUCTION INSURES THAT THE
050368,000174: 01,2710 40167 CS PRIORITY # HIGHEST ACTIVE PRIORITY WILL BE COMPARED
050369,000175: 01,2711 60063 AD NEWPRIO # WITH THE NEW PRIORITY TO SEE IF NEWJOB
050370,000176: 01,2712 00006 EXTEND # SHOULD BE SET TO SIGNAL A SWITCH.
050371,000177: 01,2713 65236 BZMF ENDFIND
050372,000178: 01,2714 30064 CA LOCCTR # LOCCTR IS LEFT SET AT THIS CORE SET IF
050373,000179: 01,2715 54067 TS NEWJOB # THE CALLER WANTS TO LOAD ANY MPAC
050374,000180: 01,2716 15236 TCF ENDFIND # REGISTERS, ETC.
050375,000181:
050376,000182: 01,2717 33054 NEXTCORE CAF COREINC
050377,000183: 01,2720 26064 ADS LOCCTR
050378,000184: 01,2721 10062 CCS EXECTEM2
050379,000185: 01,2722 12653 TCF NOVAC3
050380,000186: 01,2723 07755 TC BAILOUT # NO CORE SETS.
050381,000187: 01,2724 31202 OCT 31202
050382,000188: # THE FOLLOWING ROUTINE SWAPS CORE SET 0 WITH THAT WHOSE RELATIVE ADDRESS IS IN NEWJOB.
050383,000189:
050384,000190: 01,2725 22164 -2 LXCH LOC
050385,000191: 01,2726 30165 -1 CAE BANKSET # BANKSET, NOT BBANK, HAS RIGHT CONTENTS.
050386,000192: 01,2727 00004 CHANJOB INHINT
050387,000193: 01,2730 00006 EXTEND
050388,000194: 01,2731 04007 ROR SUPERBNK # PICK UP CURRENT SBANK FOR BBCON
050389,000195: 01,2732 56001 XCH L # LOC IN A AND BBCON IN L.
050390,000196: 01,2733 50067 +4 INDEX NEWJOB # SWAP LOC AND BANKSET.
050391,000197: 01,2734 52165 DXCH LOC
050392,000198: 01,2735 52165 DXCH LOC
050393,000199:
050394,000200: 01,2736 30165 CAE BANKSET
050395,000201: 01,2737 00006 EXTEND
050396,000202: 01,2740 01007 WRITE SUPERBNK # SET SBANK FOR NEW JOB.
050397,000203: 01,2741 52155 DXCH MPAC # SWAP MULTI-PURPOSE ACCUMULATOR AREAS.
050398,000204: 01,2742 50067 INDEX NEWJOB
050399,000205: 01,2743 52155 DXCH MPAC
050400,000206: 01,2744 52155 DXCH MPAC
050401,000207: 01,2745 52157 DXCH MPAC +2
050402,000208: 01,2746 50067 INDEX NEWJOB
050403,000209: 01,2747 52157 DXCH MPAC +2
050404,000210: 01,2750 52157 DXCH MPAC +2
050405,000211: 01,2751 52161 DXCH MPAC +4
050406,000212: 01,2752 50067 INDEX NEWJOB
050407,000213: 01,2753 52161 DXCH MPAC +4
050408,000214: 01,2754 52161 DXCH MPAC +4
050409,000215: 01,2755 52163 DXCH MPAC +6
050410,000216: 01,2756 50067 INDEX NEWJOB
050411,000217: 01,2757 52163 DXCH MPAC +6
050412,000218: 01,2760 52163 DXCH MPAC +6
050413,000219:
050414,000220: 01,2761 35035 CAF ZERO
050415,000221: 01,2762 56121 XCH OVFIND # MAKE PUSHLOC NEGATIVE IF OVFIND NZ.
050416,000222: 01,2763 00006 EXTEND
050417,000223: 01,2764 12767 BZF +3
050418,000224: 01,2765 40166 CS PUSHLOC
050419,000225: 01,2766 54166 TS PUSHLOC
050420,000226:
050421,000227: 01,2767 52167 DXCH PUSHLOC
050422,000228: 01,2770 50067 INDEX NEWJOB
050423,000229: 01,2771 52167 DXCH PUSHLOC
050424,000230: 01,2772 52167 DXCH PUSHLOC # SWAPS PUSHLOC AND PRIORITY.
050425,000231: 01,2773 35062 CAF LOW9 # SET FIXLOC TO BASE OF VAC AREA.
050426,000232: 01,2774 70167 MASK PRIORITY
050427,000233: 01,2775 54120 TS FIXLOC
050428,000234:
050429,000235: 01,2776 10166 CCS PUSHLOC # SET OVERFLOW INDICATOR ACCORDING TO
050430,000236: 01,2777 35035 CAF ZERO
050431,000237: 01,3000 13005 TCF ENDPRCHG -1
050432,000238:
050433,000239: 01,3001 40166 CS PUSHLOC
050434,000240: 01,3002 54166 TS PUSHLOC
050435,000241: 01,3003 35033 CAF ONE
050436,000242: 01,3004 56121 XCH OVFIND
050437,000243: 01,3005 54067 TS NEWJOB
050438,000244:
050439,000245: 01,3006 00003 ENDPRCHG RELINT
050440,000246: 01,3007 52165 DXCH LOC # BASIC JOBS HAVE POSITIVE ADDRESSES, SO
050441,000247: 01,3010 00006 EXTEND # DISPATCH WITH A DTCB.
050442,000248: 01,3011 63013 BZMF +2 # IF INTERPRETIVE, SET UP EBANK, ETC.
050443,000249: 01,3012 52006 DTCB
050444,000250: 01,3013 40000 COM # EPILOGUE TO JOB CHANGE FOR INTERPRETIVE
050445,000251: 01,3014 65033 AD ONE
050446,000252: 01,3015 54164 TS LOC # RESUME.
050447,000253: 01,3016 16017 TCF INTRSM
050448,000254:
050449,000255: # COMPLETE JOBSLEEP PREPARATIONS.
050450,000256:
050451,000257: 01,3017 00004 JOBSLP1 INHINT
050452,000258: 01,3020 40167 CS PRIORITY # NNZ PRIORITY SHOWS JOB ASLEEP.
050453,000259: 01,3021 54167 TS PRIORITY
050454,000260: 01,3022 36043 CAF LOW7
050455,000261: 01,3023 70006 MASK BBANK
050456,000262: 01,3024 00006 EXTEND
050457,000263: 01,3025 04007 ROR SUPERBNK # SAVE OLD SUPERBANK VALUE.
050458,000264: 01,3026 54165 TS BANKSET
050459,000265: 01,3027 45035 CS ZERO
050460,000266: 01,3030 54131 JOBSLP2 TS BUF +1 # HOLDS - HIGHEST PRIORITY.
050461,000267: 01,3031 13141 TCF EJSCAN # SCAN FOR HIGHEST PRIORITY ALA ENDOFJOB.
050462,000268:
050463,000269: 01,3032 00004 NUCHANG2 INHINT # QUICK... DONT LET NEWJOB CHANGE TO +0.
050464,000270: 01,3033 10067 CCS NEWJOB
050465,000271: 01,3034 13037 TCF +3 # NEWJOB STILL PNZ
050466,000272: 01,3035 00003 RELINT # NEW JOB HAS CHANGED TO +0. WAKE UP JOB
050467,000273: 01,3036 13233 TCF ADVAN +2 # VIA NUDIRECT. (VERY RARE CASE.)
050468,000274:
050469,000275: 01,3037 35032 CAF TWO
050470,000276: 01,3040 00006 EXTEND
050471,000277: 01,3041 05011 WOR DSALMOUT # TURN ON ACTIVITY LIGHT
050472,000278: 01,3042 52165 DXCH LOC # AND SAVE ADDRESS INFO FOR BENEFIT OF
050473,000279: 01,3043 12733 TCF CHANJOB +4 # POSSIBLE SLEEPING JOB.
050474,000280:
050475,000281: # TO WAKE UP A JOB, EACH CORE SET IS FOUND TO LOCATE ALL JOBS WHICH ARE ASLEEP. IF THE FCADR IN THE
050476,000282: # LOC REGISTER OF ANY SUCH JOB MATCHES THAT SUPPLIED BY THE CALLER, THAT JOB IS AWAKENED. IF NO JOB IS FOUND,
050477,000283: # LOCCTR IS SET TO -1 AND NO FURTHER ACTION TAKES PLACE.
050478,000284:
050479,000285: 01,3044 54061 JOBWAKE2 TS EXECTEM1
050480,000286: 01,3045 35035 CAF ZERO # BEGIN CORE SET SCAN.
050481,000287: 01,3046 54064 TS LOCCTR
050482,000288: 01,3047 32657 CAF NO.CORES
050483,000289: 01,3050 54062 JOBWAKE4 TS EXECTEM2
050484,000290: 01,3051 50064 INDEX LOCCTR
050485,000291: 01,3052 10167 CCS PRIORITY
050486,000292: 01,3053 13056 TCF JOBWAKE3 # ACTIVE JOB - CHECK NEXT CORE SET.
050487,000293: 01,3054 00014 COREINC DEC 12 B-14 # 12 REGISTERS PER CORE SET.
050488,000294: 01,3055 13065 TCF WAKETEST # SLEEPING JOB - SEE IF CADR MATCHES.
050489,000295:
050490,000296: 01,3056 33054 JOBWAKE3 CAF COREINC
050491,000297: 01,3057 26064 ADS LOCCTR
050492,000298: 01,3060 10062 CCS EXECTEM2
050493,000299: 01,3061 13050 TCF JOBWAKE4
050494,000300: 01,3062 45033 CS ONE # EXIT IF SLEEPING JOB NOT FOUND.
050495,000301: 01,3063 54064 TS LOCCTR
050496,000302: 01,3064 15236 TCF ENDFIND
050497,000303:
050498,000304: 01,3065 40065 WAKETEST CS NEWLOC
050499,000305: 01,3066 50064 INDEX LOCCTR
050500,000306: 01,3067 60164 AD LOC
050501,000307: 01,3070 00006 EXTEND
050502,000308: 01,3071 13073 BZF +2 # IF MATCH.
050503,000309: 01,3072 13056 TCF JOBWAKE3 # EXAMINE NEXT CORE SET IF NO MATCH.
050504,000310:
050505,000311: 01,3073 50064 INDEX LOCCTR # RE-COMPLEMENT PRIORITY TO SHOW JOB AWAKE
050506,000312: 01,3074 40167 CS PRIORITY
050507,000313: 01,3075 54063 TS NEWPRIO
050508,000314: 01,3076 50064 INDEX LOCCTR
050509,000315: 01,3077 54167 TS PRIORITY
050510,000316:
050511,000317: 01,3100 44364 CS FBANKMSK # MAKE UP THE 2CADR OF THE WAKE ADDRESS
050512,000318: 01,3101 70065 MASK NEWLOC # USING THE CADR IN NEWLOC AND THE EBANK
050513,000319: 01,3102 65021 AD 2K # HALF OF BBANK SAVED IN BANKSET.
050514,000320: 01,3103 56065 XCH NEWLOC
050515,000321: 01,3104 74364 MASK FBANKMSK
050516,000322: 01,3105 50064 INDEX LOCCTR
050517,000323: 01,3106 60165 AD BANKSET
050518,000324: 01,3107 54066 TS NEWLOC +1
050519,000325:
050520,000326: 01,3110 10064 CCS LOCCTR # SPECIAL TREATMENT IF THIS JOB WAS
050521,000327: 01,3111 12704 TCF SETLOC # ALREADY IN THE RUN (0) POSITION.
050522,000328: 01,3112 12674 TCF SPECTEST
050523,000329:
050524,000330: # PRIORITY CHANGE. CHANGE THE CONTENTS OF PRIORITY AND SCAN FOR THE JOB OF HIGHEST PRIORITY.
050525,000331:
050526,000332: 01,3113 54164 PRIOCH2 TS LOC
050527,000333: 01,3114 35035 CAF ZERO # SET FLAG TO TELL ENDJOB SCANNER IF THIS
050528,000334: 01,3115 54130 TS BUF # JOB IS STILL HIGHEST PRIORITY.
050529,000335: 01,3116 35062 CAF LOW9
050530,000336: 01,3117 70167 MASK PRIORITY
050531,000337: 01,3120 60063 AD NEWPRIO
050532,000338: 01,3121 54167 TS PRIORITY
050533,000339: 01,3122 40000 COM
050534,000340: 01,3123 13030 TCF JOBSLP2 # AND TO EJSCAN.
050535,000341:
050536,000342: # RELEASE THIS CORE SET AND VAC AREA AND SCAN FOR THE JOB OF HIGHEST ACTIVE PRIORITY.
050537,000343:
050538,000344: 01,3124 00004 ENDJOB1 INHINT
050539,000345: 01,3125 45035 CS ZERO
050540,000346: 01,3126 54131 TS BUF +1
050541,000347: 01,3127 56167 XCH PRIORITY
050542,000348: 01,3130 75062 MASK LOW9
050543,000349: 01,3131 54001 TS L
050544,000350:
050545,000351: 01,3132 45242 CS FAKEPRET
050546,000352: 01,3133 60001 AD L
050547,000353:
050548,000354: 01,3134 00006 EXTEND
050549,000355: 01,3135 63141 BZMF EJSCAN # NOVAC ENDOFJOB
050550,000356:
050551,000357: 01,3136 10001 CCS L
050552,000358: 01,3137 50000 INDEX A
050553,000359: 01,3140 54000 TS 0
050554,000360:
050555,000361: 01,3141 10203 EJSCAN CCS PRIORITY +12D
050556,000362: 01,3142 03206 TC EJ1
050557,000363: 01,3143 05753 TC CCSHOLE
050558,000364: 01,3144 13145 TCF +1
050559,000365:
050560,000366: 01,3145 10217 CCS PRIORITY +24D # EXAMINE EACH PRIORITY REGISTER TO FIND
050561,000367: 01,3146 03206 TC EJ1 # THE JOB OF HIGHEST ACTIVE PRIORITY.
050562,000368: 01,3147 05753 TC CCSHOLE
050563,000369: 01,3150 13151 TCF +1
050564,000370:
050565,000371: 01,3151 10233 CCS PRIORITY +36D
050566,000372: 01,3152 03206 TC EJ1
050567,000373: 01,3153 67610 -CCSPR -CCS PRIORITY
050568,000374: 01,3154 13155 TCF +1
050569,000375:
050570,000376: 01,3155 10247 CCS PRIORITY +48D
050571,000377: 01,3156 03206 TC EJ1
050572,000378: 01,3157 05753 TC CCSHOLE
050573,000379: 01,3160 13161 TCF +1
050574,000380:
050575,000381: 01,3161 10263 CCS PRIORITY +60D
050576,000382: 01,3162 03206 TC EJ1
050577,000383: 01,3163 05753 TC CCSHOLE
050578,000384: 01,3164 13165 TCF +1
050579,000385:
050580,000386: 01,3165 10277 CCS PRIORITY +72D
050581,000387: 01,3166 03206 TC EJ1
050582,000388: 01,3167 05753 TC CCSHOLE
050583,000389: 01,3170 13171 TCF +1
050584,000390:
050585,000391: # EVALUATE THE RESULTS OF THE SCAN.
050586,000392:
050587,000393: 01,3171 10131 CCS BUF +1 # SEE IF THERE ARE ANY ACTIVE JOBS WAITING
050588,000394: 01,3172 05753 TC CCSHOLE
050589,000395: 01,3173 05753 TC CCSHOLE
050590,000396:
050591,000397: 01,3174 13176 TCF +2
050592,000398: 01,3175 13223 TCF DUMMYJOB
050593,000399: 01,3176 10130 CCS BUF # BUF IS ZERO IF THIS IS A PRIOCHNG AND
050594,000400: 01,3177 13201 TCF +2 # CHANGED PRIORITY IS STILL HIGHEST.
050595,000401: 01,3200 13005 TCF ENDPRCHG -1
050596,000402:
050597,000403: 01,3201 50000 INDEX A # OTHERWISE, SET NEWJOB TO THE RELATIVE
050598,000404: 01,3202 27777 CAF 0 -1 # ADDRESS OF THE NEW JOB'S CORE SET.
050599,000405: 01,3203 63153 AD -CCSPR
050600,000406: 01,3204 54067 TS NEWJOB
050601,000407: 01,3205 12725 TCF CHANJOB -2
050602,000408:
050603,000409: 01,3206 54132 EJ1 TS BUF +2
050604,000410: 01,3207 60131 AD BUF +1 # - OLD HIGH PRIORITY.
050605,000411: 01,3210 10000 CCS A
050606,000412: 01,3211 40132 CS BUF +2
050607,000413: 01,3212 13216 TCF EJ2 # NEW HIGH PRIORITY.
050608,000414: 01,3213 13214 NOOP
050609,000415: 01,3214 50002 INDEX Q
050610,000416: 01,3215 00002 TC 2 # PROCEED WITH SEARCH.
050611,000417:
050612,000418: 01,3216 54131 EJ2 TS BUF +1
050613,000419: 01,3217 00006 EXTEND
050614,000420: 01,3220 22130 QXCH BUF # FOR LOCATING CCS PRIORITY + X INSTR.
050615,000421: 01,3221 50130 INDEX BUF
050616,000422: 01,3222 00002 TC 2
050617,000423:
050618,000424: # IDLING AND COMPUTER ACTIVITY (GREEN) LIGHT MAINTENANCE. THE IDLING ROUTINE IS NOT A JOB IN ITSELF,
050619,000425: # BUT RATHER A SUBROUTINE OF THE EXECUTIVE.
050620,000426:
050621,000427: 01,3223 1361 EBANK= SELFRET # SELF-CHECK STORAGE IN EBANK.
050622,000428:
050623,000429: 01,3223 45035 DUMMYJOB CS ZERO # SET NEWJOB TO -0 FOR IDLING.
050624,000430: 01,3224 54067 TS NEWJOB
050625,000431: 01,3225 00003 RELINT
050626,000432: 01,3226 45032 CS TWO # TURN OFF THE ACTIVITY LIGHT.
050627,000433: 01,3227 00006 EXTEND
050628,000434: 01,3230 03011 WAND DSALMOUT
050629,000435: 01,3231 10067 ADVAN CCS NEWJOB # IS A NEWJOB ACTIVE?
050630,000436: 01,3232 13032 TCF NUCHANG2 # YES... ONE REQUIRING A CHANGE JOB.
050631,000437: 01,3233 35032 CAF TWO # NEW JOB ALREADY IN POSITION FOR
050632,000438: 01,3234 13242 TCF NUDIRECT # EXECUTION.
050633,000439:
050634,000440: 01,3235 31361 CA SELFRET
050635,000441: 01,3236 54001 TS L # PUT RETURN ADDRESS IN L.
050636,000442: 01,3237 33241 CAF SELFBANK
050637,000443: 01,3240 15244 TCF SUPDXCHZ +1 # AND DISPATCH JOB.
050638,000444:
050639,000445: 01,3241 1361 EBANK= SELFRET
050640,000446: 01,3241 66102 SELFBANK BBCON SELFCHK
050641,000447:
050642,000448: 01,3242 00006 NUDIRECT EXTEND # TURN THE GREEN LIGHT BACK ON.
050643,000449: 01,3243 05011 WOR DSALMOUT
050644,000450: 01,3244 52165 DXCH LOC # JOBS STARTED IN THIS FASHION MUST BE
050645,000451: 01,3245 15243 TCF SUPDXCHZ
050646,000452:
050647,000453: 5243 BLOCK 2 # IN FIXED-FIXED SO OTHERS MAY USE.
050648,000454:
050649,000455: 5243 COUNT 02/EXEC
050650,000456:
050651,000457: # SUPDXCHZ - ROUTINE TO TRANSFER TO SUPERBANK.
050652,000458: # CALLING SEQUENCE
050653,000459: # TCF SUPDXCHZ WITH 2CADR OF DESIRED LOCATION IN A + L.
050654,000460:
050655,000461: 5243 56001 SUPDXCHZ XCH L # BASIC.
050656,000462: 5244 00006 +1 EXTEND
050657,000463: 5245 01007 WRITE SUPERBNK
050658,000464: 5246 54006 TS BBANK
050659,000465: 5247 00001 TC L
050660,000466:
050661,000467: 5250 77677 NEG100 OCT 77677
050662,000468:
050663,000469:
050664,000470:
End of include-file EXECUTIVE.agc. Parent file is MAIN.agc