home *** CD-ROM | disk | FTP | other *** search
- .printx Reading ZFHDR.Z80
- ;===========================================================================
- ;
- ; ZFHDR.Z80 - General Equates, Configuration Information, External
- ; Declarations
- ;
- ;===========================================================================
-
- z3env equ 0fe00h ; For debugging purposes
-
- ; Basic Definitions
-
- false equ 0
- true equ not false
- no equ false
- yes equ true
-
- dim equ 1 ; Goto dim
- bright equ 2 ; Goto bright
-
-
- ; User-Customized Definitions
-
- zfname macro ; Default name of ZFILER
- db 'ZFILER'
- endm
- zfnfill macro ; Spaces to fill out name to 8 chars
- db ' '
- endm
-
-
- ; User-Customized Options
-
- ; Default value for options settable by 'O' command
-
- qryarc equ false ; True to query file replace on group archiving
- qrygrp equ true ; True to query file replace on group copy
- qryrep equ true ; Set true to query replace on single copy
- qryvfy equ false ; Ask whether to verify copy/usq
- vfydflt equ true ; Verify default if no query
- nosys equ true ; True to not display $SYS files
- defalpha equ true ; Set true to alpha by name and type,
- attrfl equ false ; Set attributes on copied files
- destfl equ true ; Use attributes of destination if it exists
- arcfl equ false ; ARC attribute always set for destination file
- cmdpathfl equ true ; Search path for CMD macro file
- filtfl equ true ; Filter VIEW and PRINT output
- savtfl equ true ; Save tagged file list across shell invocations
- wtagopfl equ false ; Wild tag/untag from file pointer
- gtagopfl equ true ; Group tag/untag from file pointer
-
- ; Configuration choices
-
- cmdroot equ yes ; If not using path to find CMD file, use root
- cmduser equ 0 ; If not cmdroot, fixed user area for CMD file
- cmddrv equ 'A' ; If not cmdroot, fixed drive for CMD file
- batroot equ yes ; Put group macro batch file in root directory
- batuser equ 0 ; If not batroot, fixed user for batch file
- batdrv equ 'A' ; If not batroot, fixed drive for batch file
- tagroot equ yes ; Put tag file in root directory
- taguser equ 0 ; If not tagroot, fixed user for tag file
- tagdrv equ 'A' ; If not tagroot, fixed drive for tag file
- novid equ false ; True if reverse/low video not avail.
- upcase equ no ; Display file names in upper case (if CASEOPT)
- usedseg equ true ; True for separate DSEG for data
- bihelp equ true ; True to provide built-in help info
- optcmd equ true ; True to provide the (O)ption command
- usestk equ true ; File mask on shell stk (true) or fn4 (false)
- macflag equ true ; True to allow immediate 0..9 macro invocation
- instmsg equ false ; True to allow "Shell Installed" message
- logfl equ true ; True to log in current dir with "Z" command
- warmboot equ false ; Set true to warmboot on exit
- clsfla equ true ; True to clear screen on exit.
- exptab equ true ; Set true to expand tabs on view, print
-
- .accept '...DateStamper code ("yes" or "no")? ',datestamp; SLR pseudo-op
- .accept '...Use reverse video ("yes" or "no")? ',revvideo ; SLR pseudo-op
- .accept '...Number of columns ("4" or "5")? ',fcols ; SLR pseudo-op
-
- unsqz equ false ; True to include unsqueeze code
- remote equ true ; True to enforce wheel verification.
- dupswd equ true ; True to enforce du: passwords
-
- tagch equ '#' ; Character used to mark tagged files
- stagch equ 39 ; Soft tag character (')
-
- tdelay equ 10 ; Delay from error report to refresh (0.1s)
- dircmd equ 'L' ; New directory (N) command alias
- mleadin equ esc ; Macro leadin character
- skipch defl 'Z' ; Control char for skip-to-end-of-file
- ; ..command while viewing
-
- skipch defl skipch and 1fh ; Do not change this (forces control char)
-
- ; Command Line Builder Constants
-
- fpesc equ '$' ; Macro parameter lead-in char
- fpwait equ '!' ; Shell wait indicator
- fpgo equ '!' ; Parameter to indicate 'GO' substitution
- fpcdir equ 'C' ; Current display directory (DIR form)
- fpdisk equ 'D' ; Current drive letter
- fphdu equ 'H' ; Home DU (see fphdir for DIR form)
- fpuser equ 'U' ; Current user number
- fpfile equ 'F' ; Filename.typ
- fpname equ 'N' ; File name only
- fptype equ 'T' ; File type only
- fpptr equ 'P' ; File entry being pointed to (du:fn.ft)
- fphdir equ 'R' ; Home DIR (see fphdu for DU form)
- mnote equ '#' ; Denotes comment area in macro file
- uin1 equ "'" ; Single quote for user input
- uin2 equ '"' ; Double quote for user input
- clschr equ '*' ; Clear screen during prompt
-
- ; Register for number of tagged files (for ZEX testing)
- usrreg equ 5 ; Default to REG 5
- zexclr equ true ; Erase ZFILER.ZEX on startup
-
- ; Screen Position Constants
-
- frow equ 3 ; First row of files display (3-21)
- frows equ 21-frow ; Rows of the file screen
-
- eltsiz equ 13 ; Size of drive, filename, tag
- tagoff equ 12 ; Tag offset in element
- entsiz equ 79/fcols ; Screen columns per file entry
- eps equ frows*fcols ; Eps = entries per screen
- epsline equ frow+frows+1 ; Position of last line of eps
-
- cpmadr equ epsline*256+1 ; Command prompt message
- cpadr equ epsline*256+29 ; Command prompt
- eradr equ [epsline+1]*256+15 ; Error message
- fsadr equ eradr ; File size message
-
- ; Values below for fcols=5 -- automatically
- ; ..adjusted for fcols=4 in the code
- banadr equ 1*256+33 ; Banner address
- curhome equ frow*256+1 ; Home address of cursor
- botadr equ 24*256+1 ; Bottom of screen
- fnadr equ 1*256+63 ; Address of current file name
- duadr equ 1*256+3 ; Address of current du
- moreadr equ 2*256+63 ; Address of '[more files]' message
-
- ; System Addresses
-
- os$base equ 000h ; System base..
- ccp_ln equ 800h ; And 'ccp' length in bytes.
- get equ 0ffh ; Get user area e-reg value
- bdosptr equ os$base+05h
- fcb equ os$base+5ch
- fcbext equ fcb+12
- fcbrno equ fcb+32
- fcb2 equ os$base+6ch
- tbuff equ os$base+80h
- tpa equ os$base+100h
-
- ; Unsqueeze Definitions
-
- dle equ 090h ; Data link escape
- seof equ 0feh ; Special end-of-file.
- maxnode equ 257 ; Max # nodes (256 char + special eof)
- recniz equ 0ff76h ; Squeezed file recognition flag.
-
- ; ASCII Definitions
-
- ; Define 26 control characters
- ;
- irpc xx,ABCDEFGHIJKLMNOPQRSTUVWXYZ
- ;;ctrlA equ 'A'-'@'
- ctrl&xx equ '&xx'-'@'
- endm
-
- null equ 00h ; Null
- bel equ 07h ; Bell
- bs equ 08h ; Backspace
- tab equ 09h ; Tab
- lf equ 0ah ; Linefeed
- ff equ 0ch ; Formfeed
- cr equ 0dh ; Carriage return
- can equ 18h ; Cancel
- eof equ 1ah ; End-of-file
- eofchar equ 1ah ; End-of-file
- esc equ 1bh ; Escape character
- del equ 7fh ; Delete/rubout
-
- ; System Functions
-
- swcon equ 01h ; Switch flag for console output
- swlst equ 80h ; Switch flag for printer output
-
- rdcon equ 1
- wrcon equ 2
- punch equ 4
- list equ 5
- dircon equ 6
- rdbuf equ 10
- dosver equ 12
- const equ 11
- resetdk equ 13
- login equ 14
- open equ 15
- close equ 16
- srchf equ 17
- srchn equ 18
- erase equ 19
- read equ 20
- write equ 21
- make equ 22
- ren equ 23
- inqdisk equ 25
- setdma equ 26
- inqalc equ 27
- attr equ 30
- getparm equ 31
- sguser equ 32
- compsz equ 35
-
- zrdver equ 48
- strap equ 50
- rtrap equ 52
-
- getstp equ 102 ; ZSDOS get file stamp
- setstp equ 103 ; ZSDOS set file stamp
-
- ; FRESET10 Reference
-
- extrn freset
-
- .request vlib,z3lib,syslib,freset
-
- ; VLIB References
-
- extrn z3vinit,tinit,dinit,cls,ereol,vpstr
- extrn at,gotoxy,gxymsg,vprint,stndout,stndend
-
- ; Z3LIB4 References
-
- extrn z33chk,getccp,gcmddu
- extrn highuser,getsrun
- extrn getname,zsyschk
- extrn envptr,getcrt,getprt
- extrn getzrun,getmsg
- extrn dutdir,z3log,putcl,getmdisk,getmuser
- extrn qshell,shpush,shpop,getsh2,getspeed,getduok
- extrn getcl1,getcl2,putcst
- extrn getefcb,getfn2
- extrn pfind,dnscan,root
- extrn getwhl
- extrn putreg
-
- ; SYSLIB4 References
-
- extrn fi0$open,f0$get,fi0$close,f$exist
- extrn fo0$open,f0$put,fo0$close,f$delete
- extrn condin,cin,cout,caps,crlf,pafdc,mafdc,acase1
- extrn sksp,lout,lcrlf,sout,shlfdc,sctlfl
- extrn codend,pause,shftrh
- extrn logud,retud,fname,initfcb
-
- ; End of ZFHDR.Z80
-