2016-07-07 08:47:26 +00:00
|
|
|
# Copyright: Public domain.
|
|
|
|
# Filename: ALARM_AND_ABORT.agc
|
|
|
|
# Purpose: Part of the source code for Comanche, build 055. It
|
|
|
|
# is part of the source code for the Command Module's
|
|
|
|
# (CM) Apollo Guidance Computer (AGC), Apollo 11.
|
|
|
|
# Assembler: yaYUL
|
|
|
|
# Reference: pp. 1493-1496
|
|
|
|
# Contact: Ron Burkey <info@sandroid.org>
|
|
|
|
# Website: http://www.ibiblio.org/apollo.
|
|
|
|
# Mod history: 2009-05-07 RSB Adapted from Colossus249 file of the same
|
2016-07-12 16:25:27 +00:00
|
|
|
# name, and page images. Corrected various
|
|
|
|
# typos in the transcription of program
|
|
|
|
# comments, and these should be back-ported
|
2016-07-07 08:47:26 +00:00
|
|
|
# to Colossus249.
|
|
|
|
#
|
2016-07-12 16:25:27 +00:00
|
|
|
# The contents of the "Comanche055" files, in general, are transcribed
|
|
|
|
# from scanned documents.
|
2016-07-07 08:47:26 +00:00
|
|
|
#
|
|
|
|
# Assemble revision 055 of AGC program Comanche by NASA
|
2016-07-12 16:25:27 +00:00
|
|
|
# 2021113-051. April 1, 1969.
|
2016-07-07 08:47:26 +00:00
|
|
|
#
|
|
|
|
# This AGC program shall also be referred to as Colossus 2A
|
|
|
|
#
|
|
|
|
# Prepared by
|
2016-07-11 12:35:15 +00:00
|
|
|
# Massachusetts Institute of Technology
|
2016-07-07 08:47:26 +00:00
|
|
|
# 75 Cambridge Parkway
|
|
|
|
# Cambridge, Massachusetts
|
|
|
|
#
|
|
|
|
# under NASA contract NAS 9-4065.
|
|
|
|
#
|
|
|
|
# Refer directly to the online document mentioned above for further
|
|
|
|
# information. Please report any errors to info@sandroid.org.
|
|
|
|
|
2016-07-12 16:25:27 +00:00
|
|
|
# Page 1493
|
|
|
|
# THE FOLLOWING SUBROUTINE MAY BE CALLED TO DISPLAY A NON-ABORTIVE ALARM CONDITION. IT MAY BE CALLED
|
2016-07-07 08:47:26 +00:00
|
|
|
# EITHER IN INTERRUPT OR UNDER EXECUTIVE CONTROL.
|
|
|
|
#
|
2017-05-10 20:00:01 +00:00
|
|
|
# CALLING SEQUENCE IS AS FOLLOWS:
|
|
|
|
#
|
2016-07-07 08:47:26 +00:00
|
|
|
# TC ALARM
|
|
|
|
# OCT NNNNN
|
|
|
|
# # (RETURNS HERE)
|
|
|
|
BLOCK 02
|
|
|
|
SETLOC FFTAG7
|
|
|
|
BANK
|
|
|
|
|
|
|
|
EBANK= FAILREG
|
|
|
|
|
|
|
|
COUNT 02/ALARM
|
|
|
|
|
|
|
|
# ALARM TURNS ON THE PROGRAM ALARM LIGHT, BUT DOES NOT DISPLAY.
|
|
|
|
|
|
|
|
ALARM INHINT
|
|
|
|
|
|
|
|
CA Q
|
|
|
|
ALARM2 TS ALMCADR
|
|
|
|
INDEX Q
|
|
|
|
CA 0
|
|
|
|
BORTENT TS L
|
|
|
|
|
|
|
|
PRIOENT CA BBANK
|
2016-07-12 16:25:27 +00:00
|
|
|
+1 EXTEND
|
2016-07-07 08:47:26 +00:00
|
|
|
ROR SUPERBNK # ADD SUPER BITS.
|
|
|
|
TS ALMCADR +1
|
|
|
|
|
|
|
|
LARMENT CA Q # STORE RETURN FOR ALARM
|
|
|
|
TS ITEMP1
|
|
|
|
|
|
|
|
CA LOC
|
|
|
|
TS LOCALARM
|
|
|
|
CA BANKSET
|
|
|
|
TS BANKALRM
|
|
|
|
|
|
|
|
CHKFAIL1 CCS FAILREG # IS ANYTHING IN FAILREG
|
|
|
|
TCF CHKFAIL2 # YES TRY NEXT REG
|
|
|
|
LXCH FAILREG
|
|
|
|
TCF PROGLARM # TURN ALARM LIGHT ON FOR FIRST ALARM
|
|
|
|
|
|
|
|
CHKFAIL2 CCS FAILREG +1
|
|
|
|
TCF FAIL3
|
|
|
|
LXCH FAILREG +1
|
|
|
|
TCF MULTEXIT
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
FAIL3 CA FAILREG +2
|
|
|
|
# Page 1494
|
|
|
|
MASK POSMAX
|
|
|
|
CCS A
|
|
|
|
TCF MULTFAIL
|
|
|
|
LXCH FAILREG +2
|
|
|
|
TCF MULTEXIT
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
PROGLARM CS DSPTAB +11D
|
|
|
|
MASK OCT40400
|
|
|
|
ADS DSPTAB +11D
|
|
|
|
|
|
|
|
MULTEXIT XCH ITEMP1 # OBTAIN RETURN ADDRESS IN A
|
|
|
|
RELINT
|
|
|
|
INDEX A
|
|
|
|
TC 1
|
|
|
|
|
|
|
|
MULTFAIL CA L
|
|
|
|
AD BIT15
|
|
|
|
TS FAILREG +2
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
TCF MULTEXIT
|
|
|
|
|
|
|
|
# PRIOLARM DISPLAYS V05N09 VIA PRIODSPR WITH 3 RETURNS TO THE USER FROM THE ASTRONAUT AT CALL LOC +1,+2,+3 AND
|
2016-07-12 16:25:27 +00:00
|
|
|
# AN IMMEDIATE RETURN TO THE USER AT CALL LOC +4. EXAMPLE FOLLOWS,
|
2016-07-07 08:47:26 +00:00
|
|
|
# CAF OCTXX # ALARM CODE
|
|
|
|
# TC BANKCALL
|
|
|
|
# CADR PRIOLARM
|
2017-05-10 20:00:01 +00:00
|
|
|
#
|
2016-07-07 08:47:26 +00:00
|
|
|
# ... ...
|
|
|
|
# ... ...
|
|
|
|
# ... ... # ASTRONAUT RETURN
|
2016-07-12 16:25:27 +00:00
|
|
|
# TC PHASCHNG # IMMEDIATE RETURN TO USER. RESTART
|
2016-07-07 08:47:26 +00:00
|
|
|
# OCT X.1 # PHASE CHANGE FOR PRIO DISPLAY
|
|
|
|
|
|
|
|
BANK 10
|
|
|
|
SETLOC DISPLAYS
|
|
|
|
BANK
|
|
|
|
|
|
|
|
COUNT 10/DSPLA
|
2016-07-12 16:25:27 +00:00
|
|
|
|
|
|
|
PRIOLARM INHINT # * * * KEEP IN DISPLAY ROUTINES BANK
|
2016-07-07 08:47:26 +00:00
|
|
|
TS L # SAVE ALARM CODE
|
|
|
|
|
|
|
|
CA BUF2 # 2 CADR OF PRIOLARM USER
|
|
|
|
TS ALMCADR
|
|
|
|
CA BUF2 +1
|
|
|
|
TC PRIOENT +1 # * LEAVE L ALONE
|
2016-07-12 16:25:27 +00:00
|
|
|
-2SEC DEC -200 # *** DONT MOVE
|
2016-07-07 08:47:26 +00:00
|
|
|
CAF V05N09
|
|
|
|
TCF PRIODSPR
|
2016-07-12 16:25:27 +00:00
|
|
|
|
|
|
|
# Page 1495
|
2016-07-07 08:47:26 +00:00
|
|
|
BLOCK 02
|
|
|
|
SETLOC FFTAG13
|
|
|
|
BANK
|
|
|
|
|
|
|
|
COUNT 02/ALARM
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
BAILOUT INHINT
|
|
|
|
CA Q
|
|
|
|
TS ALMCADR
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
TC BANKCALL
|
|
|
|
CADR VAC5STOR
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
INDEX ALMCADR
|
|
|
|
CAF 0
|
|
|
|
TC BORTENT
|
|
|
|
OCT40400 OCT 40400
|
|
|
|
|
|
|
|
INHINT
|
|
|
|
WHIMPER CA TWO
|
|
|
|
AD Z
|
|
|
|
TS BRUPT
|
|
|
|
RESUME
|
|
|
|
TC POSTJUMP # RESUME SENDS CONTROL HERE
|
|
|
|
CADR ENEMA
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
SETLOC FFTAG7
|
|
|
|
BANK
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2017-05-10 20:00:01 +00:00
|
|
|
POODOO INHINT
|
2016-07-07 08:47:26 +00:00
|
|
|
CA Q
|
|
|
|
TS ALMCADR
|
|
|
|
|
|
|
|
TC BANKCALL
|
|
|
|
CADR VAC5STOR # STORE ERASABLES FOR DEBUGGING PURPOSES.
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
INDEX ALMCADR
|
|
|
|
CAF 0
|
|
|
|
ABORT2 TC BORTENT
|
2016-07-12 16:25:27 +00:00
|
|
|
|
|
|
|
OCT77770 OCT 77770 # DONT MOVE
|
2016-07-07 08:47:26 +00:00
|
|
|
CA V37FLBIT # IS AVERAGE G ON
|
|
|
|
MASK FLAGWRD7
|
|
|
|
CCS A
|
2016-07-12 16:25:27 +00:00
|
|
|
TC WHIMPER -1 # YES. DONT DO POODOO. DO BAILOUT.
|
2016-07-07 08:47:26 +00:00
|
|
|
|
|
|
|
TC DOWNFLAG
|
|
|
|
ADRES STATEFLG
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
TC DOWNFLAG
|
|
|
|
# Page 1496
|
|
|
|
ADRES REINTFLG
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
TC DOWNFLAG
|
|
|
|
ADRES NODOFLAG
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
TC BANKCALL
|
|
|
|
CADR MR.KLEAN
|
|
|
|
TC WHIMPER
|
2016-07-12 16:25:27 +00:00
|
|
|
|
2016-07-07 08:47:26 +00:00
|
|
|
CCSHOLE INHINT
|
|
|
|
CA Q
|
|
|
|
TS ALMCADR
|
|
|
|
TC BANKCALL
|
|
|
|
CADR VAC5STOR
|
|
|
|
CA OCT1103
|
|
|
|
TC ABORT2
|
|
|
|
OCT1103 OCT 1103
|
|
|
|
CURTAINS INHINT
|
|
|
|
CA Q
|
|
|
|
TC ALARM2
|
|
|
|
OCT217 OCT 00217
|
|
|
|
TC ALMCADR # RETURN TO USER
|
|
|
|
|
|
|
|
DOALARM EQUALS ENDOFJOB
|
|
|
|
# CALLING SEQUENCE FOR VARALARM
|
2017-05-10 20:00:01 +00:00
|
|
|
#
|
2016-07-07 08:47:26 +00:00
|
|
|
# CAF (ALARM)
|
|
|
|
# TC VARALARM
|
2016-07-12 16:25:27 +00:00
|
|
|
#
|
2016-07-07 08:47:26 +00:00
|
|
|
# VARALARM TURNS ON PROGRAM ALARM LIGHT BUT DOES NOT DISPLAY
|
|
|
|
VARALARM INHINT
|
|
|
|
|
2016-07-12 16:25:27 +00:00
|
|
|
TS L # SAVE USERS ALARM CODE
|
2016-07-07 08:47:26 +00:00
|
|
|
|
2016-07-12 16:25:27 +00:00
|
|
|
CA Q # SAVE USERS Q
|
2016-07-07 08:47:26 +00:00
|
|
|
TS ALMCADR
|
|
|
|
|
|
|
|
TC PRIOENT
|
2016-07-12 16:25:27 +00:00
|
|
|
OCT14 OCT 14 # DONT MOVE
|
2016-07-07 08:47:26 +00:00
|
|
|
|
|
|
|
TC ALMCADR # RETURN TO USER
|
|
|
|
|
|
|
|
ABORT EQUALS BAILOUT # *** TEMPORARY UNTIL ABORT CALLS OUT
|