Trailing-Edge
-
PDP-10 Archives
-
decuslib10-06
-
43,50374/sosdec.mac
There are no other files named sosdec.mac in the archive.
00100 TITLE SOS - SON OF STOPGAP %21(122)
00200
00300 ;*** COPYRIGHT 1973,1974 DIGITAL EQUIPMENT CORP., MAYNARD, MASS. ***
00400
00500 SUBTTL DEFINITIONS
00600
00700 WHOSOS==0 ;LAST EDITED BY TAH
00800 VERSOS==21
00900 PATSOS==0 ;PATCH LEVEL
01000 MODSOS==122 ;EDIT LEVEL
01100
01200 ; EDITOR FOR THE DISK -- WORKS BY RECOPYING FILES USED
01300
01400 MLON ;MULTI-LINE THINGIES
01500 SALL ;SUPPRESS MACRO XPANSIONS
01600 .HWFRMT ;READABLE LISTING
01700
01800 IFNDEF LSTSW,<LSTSW==1 ;FOR L COMMAND>
01900 IFNDEF JUSTSW,<JUSTSW==0 ;FOR TEXT JUSTIFICATION>
02000 IFNDEF RENTSW,<RENTSW==1 ;FOR RE-ENTRANT VERSION>
02100 IFNDEF CCLSW,<CCLSW==1 ;FOR CCL FEATURES>
02200 IFNDEF TEMPC,<TEMPC==1 ;FOR TEMPCORE FEATURE>
02300 IFNDEF CRYPSW,<CRYPSW==0 ;FOR ENCRYPTED FILES>
02400 IFNDEF EXTEND,<EXTEND==1 ;FOR EXTENDED FEATURES>
02500 IFNDEF PPNTSW,<PPNTSW==0 ;FOR PRETTY PRINT FEATURES>
02600
02700 IFN RENTSW,< TWOSEG
02800 RELOC 400000 >
02900
03000 INTERN .JBVER
03100 .JBVER==137
03200 LOC .JBVER
03300 BYTE (3)WHOSOS (9)VERSOS (6)PATSOS (18)MODSOS
03400 RELOC
03500
03600 OPDEF OCRLF [OUTSTR [BYTE (7)15,12]]
03700 OPDEF ONECHO [SETSTS TTY,1]
03800 OPDEF OFFECHO [SETSTS TTY,201]
03900
04000 ;I/O CHANNELS
04100
04200 TTY==1 ;CHL FOR TTY
04300 IN==2
04400 OUT==3
04500 LPT==4
04600 ALTDV==5 ;THE OTHER INPUT DEVICE (COPY AND TRANSFER)
04700 IND==6 ;INDIRECT CHL FOR "@" CMD
04800 OPT==7 ;CHL FOR OPTION FILE
04900
05000 ;ACS USED
05100
05200 JF=0 ;TEMP FLAGS FOR JUSTIFY & PRETTY PRINT
05300 T1=1 ;TEMP REGISTERS
05400 T2=2
05500 T3=3
05600 T4=4
05700 T5=5
05800
05900 FL=10 ;FLAG REGISTER
06000 FL2=11
06100 ALTP=12 ;POINTER FOR ALTER MODE
06200 CS=13 ;CHARACTER TABLE BITS
06300 SINDEX=14 ;LINE TO FIND, USED ALSO BY THE VARIOUS ROUTINES
06400 PNTR=15 ;POINTS AT CURRENT PLACE IN BUFFER
06500 C=16 ;CHARACTER RETURNED HERE BY GNCH
06600 P=17 ;PUSHDOWN LIST
06700
06800 ;FLAGS (RIGHT HALF)
06900
07000 BOF==1 ;NOW ON FIRST RECORD OF FILE
07100 EOF==2 ;HAVE READ END OF FILE BUT NOT NECESSARILY BUT IN BUFFER
07200 EOF2==4 ;LAST WORD OF FILE IS IN CURRENT BUFFER
07300 ADDL==10 ;USED IN COMMAND SCANNING--LINE NUMBER + INC
07400 SUBL==20 ;LINE NUMBER - INC
07500 IDF==40 ;SCAN HAS SEEN AN IDENTIFIER
07600 NUMF==100 ;SCAN HAS SEEN A NUMBER
07700 TERMF==200 ;SCAN SAW A TERMINATOR (LF OR ALTMODE)
07800 LINSN==400 ;THE COMMAND INPUT ROUTINES SAW A LINE NUMBER
07900 PGSN==1000 ;THEY SAW A PAGE NUMBER
08000 NEWFL==2000 ;NEW FILE NAME SEEN BY END CODE
08100 ORDF==4000 ;LINES OUT OF ORDER (USED BY NUMBER)
08200 BGSN==10000 ;BIGGEST PAGE HAS BEEN SEEN
08300 M37F==20000 ;THIS IS A MODEL 37
08400 CNTF==40000 ;COMMAND USING !
08500 DPYF==100000 ;THIS IS A DISPLAY
08600 READOF==200000 ;THIS FILE IS BEING USED IN READ ONLY MODE
08700 EXTOG==400000 ;ON FOR SHORT ERROR MESSAGES
08800
08900 ;SPECIAL FLAGS FOR PARSE CODE
09000
09100 F.LAHD==1 ;LOOK-AHEAD FLAG
09200 F.PER==2 ;PERIOD SEEN
09300 F.SLSH==4 ;SLASH SEEN
09400 F.CDSN==10 ;CODE SEEN
09500 F.PPN==20 ;PPN SEEN
09600 F.COLN==400 ;COLON SEEN
09700 F.EQL==1000 ;EQUAL SIGN SEEN
09800 F.ANY==2000 ;ANY ATOM SEEN BEFORE EOL
09900
10000 P.FLGS==F.LAHD!F.PER!F.SLSH!F.CDSN!F.PPN!F.COLN!F.EQL!F.ANY
10100
10200 CODMAX==^D20 ;MAX CHARS IN CODE
10300 SFDLVL==6 ;MAX SFD LVL
10400
10500 D==PNTR
10600 S1==PNTR ;SPECIAL ACS
10700 S2==SINDEX