.TITLE AUXBUF - AUX Buffer Allocation .IDENT /1.0/ .ENABL LC ;+ ; ; Free software BY ; Project Software & Development, Inc. ; ; This software is furnished for free and may be used and copied as ; desired. This software or any other copies thereof may be provided or ; otherwise made available to any other person. No title to and ; ownership of the software is hereby transferred or allowed. ; ; The information in this software is subject to change without notice ; and should not be construed as a commitment by PROJECT SOFTWARE ; AND DEVELOPMENT, INC. ; ; PROJECT SOFTWARE assumes no responsibility for the use or reliability ; of this software on any equipment whatsoever. ; ; Project Software & Development, Inc. ; 14 Story St. ; Cambridge, Ma. 02138 ; 617-661-1444 ; ; ; Title: AUXBUF.MAC ; Author: Robin Miller ; Date: July 23, 1985 ; ; Description: ; ; This module contains the buffer allocation for the AUX program. ; ; Modification History: ; ;- .ENABL AMA .NLIST BEX ; Buffer allocation: .PSECT $$ZZZZ,RW,D,REL,CON ; Force buffers to end of the task. INPTR:: .WORD INBUF1 ; Pointer to input file name(s). CMDBUF::.BLKB CMDSIZ ; The command line buffer. ERRBUF::.BLKB ERRSIZ ; The error message buffer. FMTBUF::.BLKB FMTSIZ ; The format buffer (very volitile). INBUF1::.BLKB CMDSIZ ; The 1st input file name(s) buffer. .BYTE 377,0 ; Used to flag end of buffer. INFIL1::.BLKB CMDSIZ ; Storage for expanded file INDAT1::.BLKB DATSIZ ; Storage for the ASCII date. INBUF:: .BLKB INPSIZ ; The input file record buffer. TMPBUF::.BLKB TMPSIZ ; Temporary buffer (small). WRKBUF::.BLKB CMDSIZ+1 ; Working buffer. ; Deleted text save buffers. CHRBUF::.BYTE 0 ; Deleted character buffer. LINBUF::.BLKB CMDSIZ+1 ; Delete line buffer. WRDBUF::.BLKB CMDSIZ+1 ; Deleted word buffer. .EVEN ; Flags to show direction of last delete. 0 = forward. CHRDIR::.WORD 0 ; Character direction. LINDIR::.WORD 0 ; Line diretion. WRDDIR::.WORD 0 ; Word direction. ; Table to store command lines. CMDTBL::.REPT CMDMAX .WORD 0 ; Forward link. .WORD 0 ; Backward link. .BLKB ; Command buffer. .ENDR .PSECT ; Return to original psect. ; Global storage area: CMDCNT::.WORD 0 ; Number of command lines entered. CMDCUR::.WORD 0 ; Current command entry address. CMDEND::.WORD 0 ; Pointer to end of command line. CMDENT::.WORD 0 ; Pointer to command table entry. CMDPTR::.WORD 0 ; Pointer into the command line. NEGFLG::.WORD 0 ; Negation of command -1 = True. PLUFLG::.WORD 0 ; Plus sign specified -1 = True. ; ; file specification for ECR.CMD command file ; AUXDEF::.ascii /SY0:/ AUXUIC::.ascii /[nnn,nnn]/ ; uic to be rewritten .ASCIZ "ECR.CMD" ; Look for COMMAND file .EVEN ; ; misc data ; perflg::.word 0 ;flag that period was seen in command line DEFFLG::.word -1 ;flag for default mode ; -1 off ; 0 nothing ; n length of default string ; ; buffer for default name ; defbuf::.blkb 40. ; this should be enough ; ; buffer for loadable redefine commands ; numcom==48. ; number of commands that can be stored sizcom==40. ; size of commands in bytes usrbuf:: ; buffer for user defined commands .rept numcom .blkb sizcom .endr .END