Source Code
These source-code files were derived from scans of the
Colossus 237 (Apollo 8 Command Module) program listing from the private collection of original
AGC developer Fred Martin. Scanning was by Ron Burkey. Pre-existing Colossus 249
(Apollo 9 CM) source files were used as a template, and changes between Colossus 249
and Colossus 237 were manually transcribed by a team of volunteers. Note
that the page images
presented online are of reduced quality, and that additional images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 237 OF AGC PROGRAM COLOSSUS BY NASA 2021111-031 1:17 AUG. 24, 1968Note that the date is the date of the printout, not the date of the program revision. |
009381,000002: ## Copyright: Public domain.
009382,000003: ## Filename: SXTMARK.agc
009383,000004: ## Purpose: Part of the source code for Colossus build 237.
009384,000005: ## This is for the Command Module's (CM) Apollo Guidance
009385,000006: ## Computer (AGC), for Apollo 8.
009386,000007: ## Assembler: yaYUL
009387,000008: ## Contact: Jim Lawton <jim DOT lawton AT gmail DOT com>
009388,000009: ## Website: www.ibiblio.org/apollo/index.html
009389,000010: ## Page Scans: www.ibiblio.org/apollo/ScansForConversion/Colossus237/
009390,000011: ## Mod history: 2011-01-13 JL Adapted from corresponding Colossus 249 file.
009391,000012: ## 2016-12-30 RSB Proofed comment text using octopus/ProoferComments,
009392,000013: ## and corrected errors found.
009393,000014:
Page 215 |
009395,000016:
009396,000017: # PROGRAM NAME - SXTMARK DATE- 5 APRIL 1967
009397,000018: # PROGRAM MODIFIED BY 258/278 PROGRAMMERS LOG SECTION SXTMARK
009398,000019: # MOD BY- R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 116
009399,000020: #
009400,000021: # FUNCTIONAL DESCRIPTION-
009401,000022: # SXTMARK IS CALLED FROM INTERNAL ROUTINES WHICH MAY REQUIRE STAR OR LANDMARK MARKINGS BY THE ASTRONAUT. IF
009402,000023: # THE MARK SYSTEM IS NOT IN USE, SXTMARK RESERVES A VAC AREA FOR MARKING AND REQUESTS EXECUTIONOF THE MKVB51
009403,000024: # ROUTINE VIA THE EXECUTIVE JOB PRIORITY LIST. R21 USES THIS ROUTINE TO DETERMINE IF THE MARK SYSTEM CAN BE
009404,000025: # USED. IF YES, SXTMARK RETURNS TO R21 TO PERFORM ITS OWN MARK REQUESTS VIA THE V51 FLASH.
009405,000026:
009406,000027: # CALLING SEQUENCE-
009407,000028:
009408,000029: # CAF (NO. MARK REQUESTS IN BITS 1-3 OF A)
009409,000030: # TC BANKCALL
009410,000031: # CADR SXTMARK
009411,000032:
009412,000033: # NORMAL EXIT MODE-
009413,000034: # SWRETURN
009414,000035:
009415,000036: # ALARM OR ABORT EXIT MODE-
009416,000037: # ABORT
009417,000038:
009418,000039: # OUTPUT-
009419,000040: # 1) MARKSTAT CONTAINS MARK VALUE (BITS 14-12) AND VAC AREA ADDRESS
009420,000041: # 2) QPRET = VAC AREA POINTER VALUE
009421,000042: # 3) 1ST WORD OF RESERVED VAC AREA SET TO +0
009422,000043: # 4) PRIO32 PLACED IN A REGISTER
009423,000044:
009424,000045: # ERASABLE INITIALIZATION-
009425,000046: # 1) BITS 1-3 OF A = NO. MARKS REQUESTED
009426,000047: # 2) BITS 2,3 OF EXTVBACT =0
009427,000048: # 3) A VAC AREA MUST BE AVAILABLE (WORD 1 = ADDRESS OF VAC AREA)
009428,000049:
009429,000050: # DEBRIS-
009430,000051: # A,Q,L,RUPTREG1,MARKSTAT,QPRET,BIT2 OF EXTVBACT
009431,000052:
009432,000053: 13,2036 BANK 13
009433,000054: 07,2000 SETLOC SXTMARKE
009434,000055: 07,2000 BANK
009435,000056:
009436,000057: 07,2002 E7,1725 EBANK= MRKBUF1
009437,000058: 07,2002 COUNT 07/SXTMK
009438,000059:
009439,000060: 07,2002 00004 SXTMARK INHINT
009440,000061: 07,2003 54070 TS RUPTREG1 # NUMBER OF MARKS WANTED
009441,000062:
009442,000063: 07,2004 36211 CAF SIX # BIT2 = MARKING SYSTEM IN USE
009443,000064: 07,2005 71044 MASK EXTVBACT # BIT3 = EXTENDED VERB IN PROGRESS
009444,000065: 07,2006 10000 CCS A
009445,000066: 07,2007 02013 TC MKABORT # SET THEREFORE ABORT
Page 216 |
009447,000068: 07,2010 34711 CAF BIT2 # NOT SET
009448,000069: 07,2011 27044 ADS EXTVBACT # SET IT, RESET IN ENDMARK
009449,000070: 07,2012 02015 TC MARKOK # YES, FIND VAC AREA
009450,000071:
009451,000072: 07,2013 05604 MKABORT TC BAILOUT
009452,000073: 07,2014 01211 OCT 01211
009453,000074: 07,2015 10400 MARKOK CCS VAC1USE # FIND VAC AREA
009454,000075: 07,2016 02031 TC MKVACFND
009455,000076: 07,2017 10454 CCS VAC2USE
009456,000077: 07,2020 02031 TC MKVACFND
009457,000078: 07,2021 10530 CCS VAC3USE
009458,000079: 07,2022 02031 TC MKVACFND
009459,000080: 07,2023 10604 CCS VAC4USE
009460,000081: 07,2024 02031 TC MKVACFND
009461,000082: 07,2025 10660 CCS VAC5USE
009462,000083: 07,2026 02031 TC MKVACFND
009463,000084: 07,2027 05604 TC BAILOUT
009464,000085: 07,2030 01207 OCT 01207
009465,000086:
009466,000087: 07,2031 64711 MKVACFND AD TWO # ADDRESS OF VAC AREA
009467,000088: 07,2032 55330 TS MARKSTAT
009468,000089: 07,2033 50000 INDEX A
009469,000090: 07,2034 54052 TS QPRET # STORE NEXT AVAILABLE MARK SLOT
009470,000091:
009471,000092: 07,2035 34714 CAF ZERO # SHOW VAC AREA OCCUPIED
009472,000093: 07,2036 51330 INDEX MARKSTAT
009473,000094: 07,2037 53777 TS 0 -1
009474,000095:
009475,000096: 07,2040 05253 TC CHECKMM # BACKUP MARK ROUTINE USES SXTMARK
009476,000097: 07,2041 00065 MM 53 B-14
009477,000098: 07,2042 12044 TCF +2
009478,000099: 07,2043 14570 TCF SWRETURN
009479,000100: 07,2044 05253 TC CHECKMM
009480,000101: 07,2045 00066 MM 54 B-14
009481,000102: 07,2046 12050 TCF +2
009482,000103: 07,2047 14570 TCF SWRETURN
009483,000104: 07,2050 34677 CAF BIT12 # DESIRED NUMBER OF MARKS IN 12-14
009484,000105: 07,2051 00006 EXTEND
009485,000106: 07,2052 70070 MP RUPTREG1
009486,000107: 07,2053 56001 XCH L
009487,000108: 07,2054 27330 ADS MARKSTAT
009488,000109:
009489,000110: 07,2055 37667 CAF PRIO32 # ENTER MARK JOB
009490,000111: 07,2056 05027 TC NOVAC
009491,000112: 07,2057 1330 EBANK= MARKSTAT
009492,000113: 07,2057 02346 16062 2CADR MKVB51
009493,000114:
009494,000115: 07,2061 00003 RELINT
009495,000116: 07,2062 14570 TCF SWRETURN # SAME AS MODEEXIT
009496,000117:
Page 217 |
009498,000119:
009499,000120: # PROGRAM NAME - MKRELEAS DATE- 5 APRIL 1967
009500,000121: # PROGRAM MODIFIED BY 258/278 PROGRAMMERS LOG SECTION SXTMARK
009501,000122: # MOD BY- R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 116
009502,000123:
009503,000124: # FUNCTIONAL DESCRIPTION-
009504,000125: # MKRELEAS IS EXECUTED BY INTERNAL ROUTINES TO RELEASE THE MARK SYSTEM TO MAKE IT AVAILABLE TO OTHER INTERNAL
009505,000126: # SYSTEM ROUTINES. IT ALSO CLEARS THE COARSE OPTICS FLAG BIT AND DISABLES THE OPTICS ERROR COUNTER.
009506,000127:
009507,000128: # CALLING SEQUENCE-
009508,000129:
009509,000130: # TC BANKCALL
009510,000131: # CADR MKRELEAS
009511,000132:
009512,000133: # NORMAL EXIT MODE-
009513,000134: # SWRETURN
009514,000135:
009515,000136: # ALARM OR ABORT EXIT MODE- NONE
009516,000137:
009517,000138: # OUTPUT-
009518,000139: # 1) BIT9 OPTMODES SET TO 0
009519,000140: # 2) OPTIND SET TO -1
009520,000141: # 3) 1ST WORD OF VAC AREA SET TO VAC ADDRESS TO SIGNIFY AVAILABILITY.
009521,000142: # 4) MARKSTAT CLEARED
009522,000143: # 5) BIT2 CHANNEL 12 SET TO 0
009523,000144:
009524,000145: # ERASABLE INITIALIZATION- NONE
009525,000146:
009526,000147: # DEBRIS-
009527,000148: # A,MARKSTAT,BIT9 OPTMODES,OPTIND,BIT2 CHANNEL 12
009528,000149:
009529,000150: 07,2063 34714 MKRELEAS CAF ZERO # SHOW MARK SYSTEM NOW AVAILABLE
009530,000151: 07,2064 57330 XCH MARKSTAT
009531,000152: 07,2065 10000 CCS A
009532,000153: 07,2066 50000 INDEX A
009533,000154: 07,2067 54000 TS 0
009534,000155: 07,2070 00004 MKRLEES INHINT
009535,000156: 07,2071 44702 CS BIT9 # COARSE OPTICS RETURN FLAG.
009536,000157: 07,2072 71331 MASK OPTMODES
009537,000158: 07,2073 55331 TS OPTMODES
009538,000159:
009539,000160: 07,2074 37716 CA NEGONE
009540,000161: 07,2075 55303 TS OPTIND # KILL COARS OPTICS
009541,000162:
009542,000163: 07,2076 44711 CS BIT2 # DISABLE OPTICS ERROR COUNTER
009543,000164: 07,2077 00006 EXTEND
009544,000165: 07,2100 03012 WAND CHAN12
009545,000166:
009546,000167: 07,2101 00003 RELINT
009547,000168: 07,2102 04570 TC SWRETURN
009548,000169:
Page 218 |
009550,000171:
009551,000172: # PROGRAM NAME - MARKRUPT DATE- 5 APRIL 1967
009552,000173: # PROGRAM MODIFIED BY 258/278 PROGRAMMERS LOG SECTION SXTMARK
009553,000174: # MOD BY- R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 116
009554,000175:
009555,000176: # FUNCTIONAL DESCRIPTION-
009556,000177: # MARKRUPT STORES CDUS,OPTICS AND TIME AND TRANSFERS CONTROL TO THE MARKIT,MARK REJECT OR KEYCOM ROUTINES IF
009557,000178: # BITS IN CHANNEL 16 ARE SET AS REQUIRED.
009558,000179:
009559,000180: # CALLING SEQUENCE-
009560,000181: # ROUTINE ENTERED VIA KEYRUPT2 WHEN MARK,MARK REJECT OR DSKY KEYS DEPRESSED BY THE OPERATOR.
009561,000182:
009562,000183: # NORMAL EXIT MODE-
009563,000184: # MARKIT, MKREJECT OR POSTJUMP ROUTINES (MARK, MARK REJECT OR DSKY CODE)
009564,000185:
009565,000186: # ALARM OR ABORT EXIT MODE-
009566,000187: # ALARM AND RESUME
009567,000188:
009568,000189: # OUTPUT-
009569,000190: # RUPTSTOR+5 = CDUT, RUPTSTOR+3 = CDUS, RUPTSTOR+2 = CDUY,
009570,000191: # RUPTREG3 = CDUZ, RUPTSTOR+6 = CDUX, RUPTSTOR+1 AND SAMPTIME+1 =TIME1,
009571,000192: # RUPTSTOR AND SAMPTIME = TIME2
009572,000193:
009573,000194: # ERASABLE INITIALIZATION-
009574,000195: # CDUT,CDUS,CDUY,CDUZ,CDUX,TIME2,TIME1,CHANNEL 16 BITS 6,7 OR 1-5
009575,000196:
009576,000197: # DEBRIS-
009577,000198: # A,QRUPT,RUPTREG3,SAMPTIME,SAMPTIME+1,RUPTSTOR TO RUPTSTOR+6 EXCEPT RUPTSTOR+4 (LOCATION 67)
009578,000199:
009579,000200: 07,2103 54016 MARKRUPT TS BANKRUPT # STORE CDUS AND OPTICS NOW
009580,000201: 07,2104 30035 CA CDUT
009581,000202: 07,2105 54362 TS MKCDUT
009582,000203: 07,2106 30036 CA CDUS
009583,000204: 07,2107 54360 TS MKCDUS
009584,000205: 07,2110 30033 CA CDUY
009585,000206: 07,2111 54357 TS MKCDUY
009586,000207: 07,2112 30034 CA CDUZ
009587,000208: 07,2113 54361 TS MKCDUZ
009588,000209: 07,2114 30032 CA CDUX
009589,000210: 07,2115 54363 TS MKCDUX
009590,000211: 07,2116 00006 EXTEND
009591,000212: 07,2117 30025 DCA TIME2 # GET TIME
009592,000213: 07,2120 52356 DXCH MKT2T1
009593,000214: 07,2121 00006 EXTEND
009594,000215: 07,2122 30356 DCA MKT2T1
009595,000216: 07,2123 52014 DXCH SAMPTIME # RUPT TIME FOR NOUN 65.
009596,000217:
009597,000218: 07,2124 56002 XCH Q
009598,000219: 07,2125 54012 TS QRUPT
009599,000220:
009600,000221: 07,2126 34705 CAF BIT6 # SEE IF MARK OR MKREJECT
Page 219 |
009602,000223: 07,2127 00006 EXTEND
009603,000224: 07,2130 02016 RAND NAVKEYIN
009604,000225: 07,2131 10000 CCS A
009605,000226: 07,2132 02427 TC MARKIT # ITS A MARK
009606,000227:
009607,000228: 07,2133 34704 CAF BIT7 # NOT A MARK, SEE IF MKREJECT
009608,000229: 07,2134 00006 EXTEND
009609,000230: 07,2135 02016 RAND NAVKEYIN
009610,000231: 07,2136 10000 CCS A
009611,000232: 07,2137 02300 TC MKREJECT # ITS A MARK REJECT
009612,000233:
009613,000234: 07,2140 34362 KEYCALL CAF OCT37 # NOT MARK OR MKREJECT, SEE IF KEYCODE
009614,000235: 07,2141 00006 EXTEND
009615,000236: 07,2142 02016 RAND NAVKEYIN
009616,000237: 07,2143 00006 EXTEND
009617,000238: 07,2144 12147 BZF +3 # IF NO INBITS
009618,000239: 07,2145 04574 TC POSTJUMP
009619,000240: 07,2146 17622 CADR KEYCOM # IT,S A KEY CODE, NOT A MARK.
009620,000241:
009621,000242: 07,2147 05537 +3 TC ALARM # ALARM IF NO INBITS
009622,000243: 07,2150 00113 OCT 113
009623,000244: 07,2151 05222 TC RESUME
009624,000245:
Page 220 |
009626,000247:
009627,000248: # PROGRAM NAME - MARKCONT DATE- 19 SEPT 1967
009628,000249:
009629,000250: # PROGRAM MODIFIED BY 258/278 PROGRAMMERS LOG SECTION SXTMARK
009630,000251: # MOD BY- R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 116
009631,000252:
009632,000253: # FUNCTIONAL DESCRIPTION-
009633,000254: # MARKCONT IS USED TO PERFORM A SPECIAL MARK FUNCTION FOR R21, TO EXECUTE A SPECIAL DISPLAY OF OPTICS AND TIME OR
009634,000255: # TO PERFORM A MARK OF A STAR OR LAND SIGHTING BASED UPON FLASHING V-N.
009635,000256:
009636,000257: # CALLING SEQUENCE-
009637,000258: # FROM MARKDIF
009638,000259:
009639,000260: # NORMAL EXIT MODE-
009640,000261: # TASKOVER
009641,000262:
009642,000263: # ALARM OR ABORT EXIT MODE-
009643,000264: # ALARM AND TASKOVER
009644,000265:
009645,000266: # OUTPUT-
009646,000267: # 1) FOR R21-
009647,000268: # EBANK=EBANK7
009648,000269: # MRKBUF1 TO MRKBUF1+6 = TIME2,TIME1,CDUY,OPTICX,CDUZ,OPTICSY,CDUX OF CURRENT R21 MARK FUNCTION.
009649,000270: # MRKBUF2 TO MRKBUF2+6 CONTAINS PREVIOUS R21 MARK VALUES.
009650,000271: # 2) FOR SPECIAL DISPLAY JOB-
009651,000272: # RUPTREG1 AND MRKBUF1 = CDUS,RUPTREG2 AND MRKBUF1 +1 = CDUT.
009652,000273: # RUPTREG3 AND MRKBUF1 +2 = TIME2,RUPTREG4 AND MRKBUF1 +3 = TIME1
009653,000274: # 3) FOR NORMAL MARKING-
009654,000275: # DECREMENT BITS14-12 OF MARKSTAT BY 1,
009655,000276: # BIT10 MARKSTAT SET TO 1,INCREMENT QPRET BY 7,
009656,000277: # STORE TIME2,TIME1,CDUY,CDUS,CDUZ,CDUT AND CDUX IN VAC+1 TO VAC+7
009657,000278:
009658,000279: # ERASABLE INITIALIZATION-
009659,000280: # 1) FOR R21-
009660,000281: # BIT14 OF STATE+2 =1, MRKBUF1 TO MRKBUF1+6, ITEMP1, RUPTREG3,
009661,000282: # RUPTSTOR TO RUPTSTOR+6 EXCEPT RUPTSTOR+4
009662,000283: # 2) FOR SPECIAL DISPLAY JOB-
009663,000284: # BIT14 OF STATE+2 =0,MARKSTAT =+0,RUPTREG1,RUPTREG2,RUPTREG3
009664,000285: # RUPTREG4,RUPTSTOR,RUPTSTOR+1,RUPTSTOR+3,RUPTSTOR+5,
009665,000286: # BIT12 OF STATE+5 (V59 FLAG),MRKBUF1 THRU MRKBUF1+3
009666,000287: # 3) FOR NORMAL MARKING-
009667,000288: # BIT14 OF STATE+2 =0, MARKSTAT =VAC ADDRESS,A REG,ITEMP1,RUPTREG3,
009668,000289: # RUPTSTOR TO RUPTSTOR+6 EXCEPT RUPTSTOR+4
009669,000290:
009670,000291: # DEBRIS-
009671,000292: # 1) FOR R21-
009672,000293: # A,ITEMP1,MRKBUF1,MRKBUF2
009673,000294: # 2) FOR SPECIAL DISPLAY JOB-
009674,000295: # A,RUPTREG1,RUPTREG2,RUPTREG3,RUPTREG4,MPAC TO MPAC+3
009675,000296: # 3) FOR NORMAL MARKING-
009676,000297: # A,MARKSTAT,ITEMP1,QPRET,VAC+1 TO VAC+7 OF VAC AREA IN USE
009677,000298:
Page 221 |
009679,000300:
009680,000301: 07,2152 34675 MARKCONT CAF BIT14
009681,000302: 07,2153 70076 MASK STATE +2 # R21 MARK (SPECIAL MARKING FOR R21)
009682,000303: 07,2154 00006 EXTEND
009683,000304: 07,2155 12167 BZF MARKET # NOT SET THEREFORE REGULAR MARKING
009684,000305: 07,2156 36211 MARKIT1 CAF SIX # SPECIAL FOR R21
009685,000306: 07,2157 05475 TC GENTRAN # TRANSFER MRKBUF1 TO MRKBUF2
009686,000307: 07,2160 01725 ADRES MRKBUF1
009687,000308: 07,2161 01734 ADRES MRKBUF2
009688,000309:
009689,000310: 07,2162 36211 CAF SIX # TRANSFER CURRENT MARK DATA TO MARKBUF1
009690,000311: 07,2163 05475 TC GENTRAN
009691,000312: 07,2164 00355 ADRES MKT2T1
009692,000313: 07,2165 01725 ADRES MRKBUF1
009693,000314:
009694,000315: 07,2166 15213 TCF TASKOVER
009695,000316:
009696,000317: 07,2167 11330 MARKET CCS MARKSTAT # SEE IF MARKS CALLED FOR
009697,000318: 07,2170 02224 TC MARK2 # COLLECT MARKS
009698,000319:
009699,000320: 07,2171 36211 CAF SIX
009700,000321: 07,2172 05475 TC GENTRAN # TRANSFER MARK DATA TO MARKDOWN
009701,000322: 07,2173 00355 ADRES MKT2T1
009702,000323: 07,2174 01674 ADRES MARKDOWN
009703,000324:
009704,000325: 07,2175 36211 CAF SIX
009705,000326: 07,2176 05475 TC GENTRAN # TRANSFER MARK DATA TO MRKBUF1 FOR
009706,000327: 07,2177 00355 ADRES MKT2T1 # SPECIAL DISPLAY OF SHAFT AND TRUNION
009707,000328: 07,2200 01725 ADRES MRKBUF1 # IF V59 ACTING
009708,000329:
009709,000330: 07,2201 34711 CAF TWO # IS MARKING SYSTEM IN USE (BIT2)
009710,000331: 07,2202 71044 MASK EXTVBACT
009711,000332: 07,2203 00006 EXTEND
009712,000333: 07,2204 12216 BZF MARKET3 # MARKING NOT CALLED FOR
009713,000334: 07,2205 34677 CAF BIT12
009714,000335: 07,2206 70101 MASK STATE +5 # V59FLAG
009715,000336: 07,2207 00006 EXTEND
009716,000337: 07,2210 12216 BZF MARKET3 # IF V59FLAG NOT SET-MARK UNCALLED FOR
009717,000338: 07,2211 34754 CAF PRIO5 # CALIBRATION MARK (SET) FOR P23
009718,000339: 07,2212 05027 TC NOVAC # SPECIAL DISPLAY JOB
009719,000340: 07,2213 E7,1725 EBANK= MRKBUF1
009720,000341: 07,2213 02405 76067 2CADR MARKDISP
009721,000342:
009722,000343: 07,2215 15213 TCF TASKOVER
009723,000344: 07,2216 05537 MARKET3 TC ALARM
009724,000345: 07,2217 00122 OCT 122 # MARKING NOT CALLED FOR
009725,000346: 07,2220 15213 TCF TASKOVER
009726,000347: 07,2221 05537 114ALM TC ALARM # MARK NOT WANTED
009727,000348: 07,2222 00114 OCT 114
009728,000349: 07,2223 15213 TCF TASKOVER
009729,000350:
Page 222 |
009731,000352: # STORE MARK DATA IN MKVAC AND INCREMENT POINTER
009732,000353:
009733,000354: 07,2224 67711 MARK2 AD 74K # SEE IF MARKS WANTED-REDUCE MARKS WANTED
009734,000355: 07,2225 00006 EXTEND
009735,000356: 07,2226 62221 BZMF 114ALM # MARK NOT WANTED-ALARM
009736,000357: 07,2227 55330 TS MARKSTAT
009737,000358: 07,2230 40000 COM
009738,000359: 07,2231 74701 MASK BIT10 # SET BIT10 TO ENABLE REJECT
009739,000360: 07,2232 27330 ADS MARKSTAT
009740,000361:
009741,000362: 07,2233 74741 MASK LOW9
009742,000363: 07,2234 54061 TS ITEMP1
009743,000364: 07,2235 50000 INDEX A
009744,000365: 07,2236 56052 XCH QPRET # PICK UP MARK SLOT-POINTER
009745,000366: 07,2237 54062 TS ITEMP2 # SAVE CURRENT POINTER
009746,000367: 07,2240 64716 AD SEVEN # INCREMENT POINTER
009747,000368: 07,2241 50061 INDEX ITEMP1
009748,000369: 07,2242 54052 TS QPRET # STORE ADVANCED POINTER
009749,000370:
009750,000371: 07,2243 00006 VACSTOR EXTEND
009751,000372: 07,2244 30356 DCA MKT2T1
009752,000373: 07,2245 50062 INDEX ITEMP2
009753,000374: 07,2246 52001 DXCH 0
009754,000375: 07,2247 30357 CA MKCDUY
009755,000376: 07,2250 50062 INDEX ITEMP2
009756,000377: 07,2251 54002 TS 2
009757,000378: 07,2252 30360 CA MKCDUS
009758,000379: 07,2253 50062 INDEX ITEMP2
009759,000380: 07,2254 54003 TS 3
009760,000381: 07,2255 30361 CA MKCDUZ
009761,000382: 07,2256 50062 INDEX ITEMP2
009762,000383: 07,2257 54004 TS 4
009763,000384: 07,2260 30362 CA MKCDUT
009764,000385: 07,2261 50062 INDEX ITEMP2
009765,000386: 07,2262 54005 TS 5
009766,000387: 07,2263 30363 CA MKCDUX
009767,000388: 07,2264 50062 INDEX ITEMP2
009768,000389: 07,2265 54006 TS 6
009769,000390:
009770,000391: 07,2266 37671 CAF PRIO34 # IF ALL MARKS MADE FLASH VB50
009771,000392: 07,2267 71330 MASK MARKSTAT
009772,000393: 07,2270 00006 EXTEND
009773,000394: 07,2271 12273 BZF +2
009774,000395: 07,2272 15213 TCF TASKOVER
009775,000396: 07,2273 37667 CAF PRIO32
009776,000397: 07,2274 05027 TC NOVAC
009777,000398: 07,2275 1330 EBANK= MARKSTAT
009778,000399: 07,2275 02421 16062 2CADR MKVB50
009779,000400: 07,2277 15213 TCF TASKOVER
009780,000401:
Page 223 |
009782,000403:
009783,000404: # PROGRAM NAME - MKREJECT DATE- 5 APRIL 1967
009784,000405: # PROGRAM MODIFIED BY 258/278 PROGRAMMERS LOG SECTION SXTMARK
009785,000406: # MOD BY- R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 116
009786,000407:
009787,000408: # FUNCTIONAL DESCRIPTION-
009788,000409: # ROUTINE ALLOWS OPERATOR TO REJECT MARK MADE PRIOR TO ACCEPTANCE AND ALLOWS A NEW MARK TO BE MADE BY ASTRONAUT
009789,000410:
009790,000411: # CALLING SEQUENCE-
009791,000412: # FROM MARKRUPT IF BIT7 OF CHANNEL 16 IS 1.
009792,000413:
009793,000414: # NORMAL EXIT MODE-
009794,000415: # RESUME
009795,000416:
009796,000417: # ALARM OR ABORT EXIT MODE-
009797,000418: # ALARM AND RESUME
009798,000419:
009799,000420: # OUTPUT-
009800,000421: # 1) FOR R21-
009801,000422: # MRKBUF1 SET TO -1
009802,000423: # 2) FOR NORMAL MARKING-
009803,000424: # BIT10 MARKSTAT =0,INCREMENT NO. MARKS BY 1,DECREMENT QPRET BY 7
009804,000425:
009805,000426: # ERASABLE INITIALIZATION-
009806,000427: # 1) FOR R21-
009807,000428: # BIT14 OF STATE+2 SET TO 1
009808,000429: # 2) FOR NORMAL MARKING-
009809,000430: # BIT14 OF STATE+2 SET TO 0,MARKSTAT,QPRET
009810,000431:
009811,000432: # DEBRIS-
009812,000433: # 1) FOR R21-
009813,000434: # A,MARKSTAT,EBANK
009814,000435: # 2) FOR NORMAL MARKING-
009815,000436: # A,MARKSTAT,ITEMP1,QPRET
009816,000437:
009817,000438: 07,2300 34675 MKREJECT CAF BIT14
009818,000439: 07,2301 70076 MASK STATE +2 # R21 MARK (SPECIAL MARKING FOR R21)
009819,000440: 07,2302 00006 EXTEND
009820,000441: 07,2303 12307 BZF MRKREJCT # NOT SET THEREFORE REGULAR REJECT
009821,000442: 07,2304 37716 CA NEGONE # -1 (FOR R22)
009822,000443: 07,2305 55725 TS MRKBUF1 # -0 IN TIME IS FLAG TO R22 SIGNIFYING A
009823,000444: 07,2306 05222 TC RESUME # REJECTED MARK
009824,000445: 07,2307 11330 MRKREJCT CCS MARKSTAT # SEE IF MARKS BEING ACCEPTED
009825,000446: 07,2310 02314 TC REJECT2
009826,000447: 07,2311 05537 TC ALARM # MARKS NOT BEING ACCEPTED
009827,000448: 07,2312 00112 OCT 112
009828,000449: 07,2313 05222 TC RESUME
009829,000450:
009830,000451: 07,2314 44701 REJECT2 CS BIT10 # SEE IF MARK HAD BEEN MADE SINCE LAST
009831,000452: 07,2315 71330 MASK MARKSTAT # REJECT, AND SET BIT10 TO ZERO TO
009832,000453: 07,2316 57330 XCH MARKSTAT # SHOW MARK REJECT
Page 224 |
009834,000455: 07,2317 74701 MASK BIT10
009835,000456: 07,2320 10000 CCS A
009836,000457: 07,2321 02325 TC REJECT3
009837,000458:
009838,000459: 07,2322 05537 TC ALARM # DONT ACCEPT TWO REJECTS TOGETHER
009839,000460: 07,2323 00110 OCT 110
009840,000461: 07,2324 05222 TC RESUME
009841,000462:
009842,000463: 07,2325 34741 REJECT3 CAF LOW9 # DECREMENT POINTER TO REJECT MARK
009843,000464: 07,2326 71330 MASK MARKSTAT
009844,000465: 07,2327 54061 TS ITEMP1
009845,000466: 07,2330 44716 CS SEVEN
009846,000467: 07,2331 50061 INDEX ITEMP1
009847,000468: 07,2332 26052 ADS QPRET # NEW POINTER
009848,000469:
009849,000470: 07,2333 34677 CAF BIT12 # INCREMENT MARKS WANTED AND IF FIELD
009850,000471: 07,2334 61330 AD MARKSTAT # IS NOW NON-ZERO, CHANGE TO VB51 TO
009851,000472: 07,2335 57330 XCH MARKSTAT # INDICATE MORE MARKS WANTED
009852,000473: 07,2336 77671 MASK PRIO34 # INDICATE MORE MARKS WANTED
009853,000474: 07,2337 10000 CCS A
009854,000475: 07,2340 05222 TC RESUME
009855,000476: 07,2341 37667 CAF PRIO32
009856,000477: 07,2342 05027 TC NOVAC
009857,000478: 07,2343 1330 EBANK= MARKSTAT
009858,000479: 07,2343 02346 16062 2CADR MKVB51
009859,000480: 07,2345 05222 TC RESUME
009860,000481:
Page 225 |
009862,000483:
009863,000484: # PROGRAM DESCRIPTION MKVB51 AND MKVB50
009864,000485:
009865,000486: # AUTHOR-BARNERT DATE-2-15-67 MOD-0
009866,000487: # PURPOSE FLASH V51N70,V51N43, OR V51 TO REQUEST MARKING,
009867,000488: # AND V50N25 R1=16 TO REQUEST TERMINATE MARKING
009868,000489:
009869,000490: # CALLING SEQUENCE AS JOB WITHIN SXTMARK
009870,000491:
009871,000492: # EXIT TO ENDMARK UPON RECEIPT OF V33, V34 CAUSES GOTOPOOH, ENTER
009872,000493: # RECYCLES THE DISPLAY
009873,000494:
009874,000495: # NOTE- SXTMARK AUTOMATICALLY CHANGES FROM CALLING MKVB51 TO MKVB50 WHEN
009875,000496: # SUFFICIENT MARKS HAVE BEEN MADE, AND THE REVERSE WHEN A MARK
009876,000497: # REJECT REDUCES THE NUMBER MADE BELOW THAT REQUIRED
009877,000498:
009878,000499: # SUBROUTINES CALLED- BANKCALL, GOMARK2,GOODEND,ENDMARK,WAITLIST
009879,000500:
009880,000501: # ALARM OR ABORT MODES - NONE
009881,000502:
009882,000503: # ERASABLE USED-VERBREG,MARKSTAT,QPRET,DSPTEM1
009883,000504:
009884,000505: # OUTPUT MARKSTAT=VAC ADDRESS
009885,000506:
009886,000507: # QPRET= NO. MARKS
009887,000508: 07,2346 04555 MKVB51 TC BANKCALL # CLEAR DISPLAY FOR MARK VERB
009888,000509: 07,2347 20464 CADR KLEENEX
009889,000510: 07,2350 32426 CAF VB51 # DISPLAY MARK VB51
009890,000511: 07,2351 04555 TC BANKCALL
009891,000512: 07,2352 20476 CADR GOMARK4
009892,000513: 07,2353 12356 TCF TERMSXT # VB34-TERMINATE
009893,000514: 07,2354 12367 TCF ENTANSWR # V33-PROCEED-MARKING DONE
009894,000515: 07,2355 12415 TCF MKVB5X # ENTER-RECYCLE TO INITIAL MARK DISPLAY
009895,000516:
009896,000517: 07,2356 05425 TERMSXT TC CLEARMRK # CLEAR MARK ACTIVITY.
009897,000518:
009898,000519: 07,2357 05253 TC CHECKMM
009899,000520: 07,2360 00003 MM 03 B-14
009900,000521: 07,2361 12363 TCF +2
009901,000522: 07,2362 02365 TC TERMP03
009902,000523: 07,2363 04574 TC POSTJUMP
009903,000524: 07,2364 30176 CADR TERM52
009904,000525:
009905,000526: 07,2365 05435 TERMP03 TC UPFLAG
009906,000527: 07,2366 00032 ADRES TRM03FLG
009907,000528: 07,2367 34741 ENTANSWR CAF LOW9 # PUT VAC ADR IN MARKSTAT AND NO. OF
009908,000529: 07,2370 71330 MASK MARKSTAT # MARKS MADE IN QPRET BEFORE LEAVING
009909,000530: 07,2371 55330 TS MARKSTAT # SXTMARK
009910,000531: 07,2372 40000 COM
009911,000532: 07,2373 51330 INDEX MARKSTAT
009912,000533: 07,2374 60052 AD QPRET
Page 226 |
009914,000535: 07,2375 00006 EXTEND
009915,000536: 07,2376 62402 BZMF JAMIT # NO MARKS MADE, SHOW IT IN QPRET, R53
009916,000537: 07,2377 00006 EXTEND # WILL PICK IT UP AND RECYCLE
009917,000538: 07,2400 74677 MP BIT12 # THIS PUTS NUMBER MARKS-1 IN A
009918,000539: 07,2401 64712 AD ONE
009919,000540: 07,2402 51330 JAMIT INDEX MARKSTAT # STORE NO OF MARKS MADE
009920,000541: 07,2403 54052 TS QPRET
009921,000542: 07,2404 00004 INHINT # SERVICE OPTSTALL INTERFACE WITH
009922,000543: 07,2405 34715 CAF FIVE
009923,000544: 07,2406 05140 TC WAITLIST
009924,000545: 07,2407 1330 EBANK= MARKSTAT
009925,000546: 07,2407 02412 16062 2CADR ENDMARKS
009926,000547: 07,2411 05423 TC ENDMARK # KNOCKS DOWN MARKING FLAG + DOES ENDOFJOB
009927,000548:
009928,000549: 07,2412 34712 ENDMARKS CAF ONE
009929,000550: 07,2413 04633 TC IBNKCALL
009930,000551: 07,2414 17467 CADR GOODEND
009931,000552: 07,2415 37671 MKVB5X CAF PRIO34
009932,000553: 07,2416 71330 MASK MARKSTAT # RE-DISPLAY VB51 IF MORE MARKS WANTED
009933,000554: 07,2417 10000 CCS A # AND VB50 IF ALL IN
009934,000555: 07,2420 12346 TCF MKVB51
009935,000556: 07,2421 34333 MKVB50 CAF R1D1 # OCT 16
009936,000557: 07,2422 55045 TS DSPTEM1
009937,000558: 07,2423 32425 CAF V50N25
009938,000559: 07,2424 12351 TCF MKVB51 +3
009939,000560:
009940,000561: 07,2425 14431 V50N25 VN 5025
009941,000562: 07,2426 14600 VB51 VN 5100
009942,000563: 07,2427 4362 OCT37 = LOW5
009943,000564:
009944,000565: # PROGRAM NAME - MARKIT DATE- 19 SEPT 1967
009945,000566:
009946,000567: # CALLING SEQUENCE
009947,000568: # FROM MARKRUPT IF CHAN 16 BIT 6 = 1
009948,000569:
009949,000570: # EXIT
009950,000571: # RESUME
009951,000572:
009952,000573: # INPUT
009953,000574: # CDUCHKWD. ALSO ALL INITIALIZATION FOR MARKCONT
009954,000575:
009955,000576: # OUTPUT
009956,000577: # MKT2T1,MKCDUX,MKCDUY,MKCDUZ,MKCDUS,MKCDUT
009957,000578:
009958,000579: # ALARM EXIT
009959,000580: # NONE
009960,000581:
009961,000582: 07,2427 11341 MARKIT CCS CDUCHKWD
009962,000583: 07,2430 12433 TCF +3 # DELAY OF CDUCHKWD CS IF PNZ
Page 227 |
009964,000585: 07,2431 12433 TCF +2
009965,000586: 07,2432 34714 CAF ZERO
009966,000587: 07,2433 64712 AD ONE # 10 MS IF NO CHECK
009967,000588: 07,2434 05140 TC WAITLIST
009968,000589: 07,2435 E7,1725 EBANK= MRKBUF1
009969,000590: 07,2435 02203 20067 2CADR MARKDIF
009970,000591: 07,2437 15222 TCF RESUME
009971,000592:
009972,000593: 10,2000 SETLOC SXTMARK1
009973,000594: 10,2000 BANK
009974,000595:
009975,000596: 10,2203 COUNT 10/SXTMK
009976,000597:
009977,000598: # PROGRAM NAME - MARKDIF DATE- 19 SEPT 1967
009978,000599:
009979,000600: # CALLING SEQUENCE
009980,000601: # WAITLIST FROM MARKIT
009981,000602:
009982,000603: # EXIT
009983,000604: # TASKOVER OT IBNKCALL TO MARKCONT
009984,000605:
009985,000606: # INPUT
009986,000607: # OUTPUT FROM MARKIT, INPUT TO MARKCONT, CDUCHKWD
009987,000608:
009988,000609: # OUTPUT
009989,000610: # RUPTSTOR - RUPTSTOR+3,RUPTREG3,RUPTSTOR+5 - RUPTSTOR +6
009990,000611:
009991,000612: # ALARM EXIT
009992,000613: # ALARM AND TASKOVER
009993,000614:
009994,000615: 10,2203 31341 MARKDIF CA CDUCHKWD # IF DELAY CHECK IS ZERO OR NEG, ACP MARK
009995,000616: 10,2204 00006 EXTEND
009996,000617: 10,2205 62216 BZMF MKACPT
009997,000618: 10,2206 44712 CS BIT1
009998,000619: 10,2207 54354 TS MKNDX # SET INDEX -1
009999,000620: 10,2210 30363 CA MKCDUX
010000,000621: 10,2211 02220 TC DIFCHK # SEE IF VEHICLE RATE TO MUCH AT MARK
010001,000622: 10,2212 30357 CA MKCDUY
010002,000623: 10,2213 02220 TC DIFCHK
010003,000624: 10,2214 30361 CA MKCDUZ
010004,000625: 10,2215 02220 TC DIFCHK
010005,000626:
010006,000627: 10,2216 04633 MKACPT TC IBNKCALL
010007,000628: 10,2217 16152 CADR MARKCONT # MARK DATA OK, WHAT DO WE DO WITH IT
010008,000629:
010009,000630: 10,2220 24354 DIFCHK INCR MKNDX # INCREMENT INDEX
010010,000631:
010011,000632: 10,2221 00006 EXTEND
010012,000633: 10,2222 50354 INDEX MKNDX
Page 228 |
010014,000635: 10,2223 20032 MSU CDUX # GET MARK(ICDU) - CURRENT(ICDU)
010015,000636: 10,2224 10000 CCS A
010016,000637: 10,2225 12231 TCF +4
010017,000638: 10,2226 00002 TC Q
010018,000639: 10,2227 12231 TCF +2
010019,000640: 10,2230 00002 TC Q
010020,000641: 10,2231 67715 AD NEG2 # SEE IF DIFFERENCE GREATER THAN 3 BITS
010021,000642: 10,2232 00006 EXTEND
010022,000643: 10,2233 62230 BZMF -3 # NOT GREATER
010023,000644:
010024,000645: 10,2234 05537 TC ALARM # COUPLED WITH PROGRAM ALARM
010025,000646: 10,2235 00121 OCT 00121
010026,000647:
010027,000648: 10,2236 15213 TCF TASKOVER # DO NOT ACCEPT
End of include-file SXTMARK.agc. Parent file is MAIN.agc