home *** CD-ROM | disk | FTP | other *** search
- INFORMATION REGARDING FILES ON THIS DISK CAN BE FOUND IN THE FILE
-
- DIREC.DOC
-
- Documentation for SNOBASIC in a binder as well as source code
- for the basic routine ADVNT and SNOTERM, SNOBACK and SNOREST
- are available for $39.95 from Snowcrest Computer Specialties,
- 527 McCloud Ave., Mt. Shasta, CA 96067.
-
- This file contains updates and documentation of new features in
- SNOBASIC. Please make notations in the manual to refer to the topics
- given here.
-
- CTRL-S vs. CTRL-NUM LOCK
-
- SNOBASIC provides ctrl-s as a means to pause printed output. Ctrl-s
- is used in place of ctrl-num lock since terminals attached to the
- serial cards (COM1 and COM2) do not have a num lock key. Ctrl-num
- lock also has the problem that it is implemented by actually stopping
- the processor of the computer (placing it in a tight loop) until
- the next key is pressed. If you use this feature, you will stop
- all processing on your program (thus stopping your screen output
- as you desired), but you will also stop all processing on all other
- terminals which are attached to the system! If you use ctrl-s, you
- will only stop your screen output and others may continue their
- processing. To start your screen again, use ctrl-q.
-
- NEW OPTION ON SAVE AND PSAVE COMMANDS
-
- A protection option has been added to the Save and Psave commands
- which allows you to save a program in such a way that it may never
- be listed. After saving in this manner, the program may be loaded
- and run but the List command, Length command, Save command and Psave
- command will be inhibited. The option immediately protects the version
- of the program which is in memory also, so you must be sure that
- you have another copy saved elsewhere before using this option.
- In either the Save or Psave command, us the letter "p" and a comma ","
- before the file name:
- Save p,prog1
-
- ENLARGING SYSTEM FILES - BASICLOGS, BASICACCTS
-
- The four system files, Basiclogs, Basicaccts, Basicerror and Basicmesgs
- are opened by SNOBASIC as soon as the system starts. These files are
- not closed until the "Kill" command is given to return to DOS. Thus,
- the size of the files must not be changed "out from under" SNOBASIC.
- The recommended procedure to be used to enlarge these files is as
- follows:
-
- While SNOBASIC is running, create a new file with a different name
- for one of the system files, making it as large as you desire it to
- be (Create "newlogs",100). Then copy the present contents of the
- old file to the new file (Copy "basiclogs","newlogs"). Bring the
- system down (Kill), change to the directory which contains the
- file (cd \dk0), delete the old file (del fbasiclogs) and rename
- the new file (ren fnewlogs,fbasiclogs).
-
- NEW ENVIRONMENT VARIABLES
-
- The "Configuring" section of the manual describes the environment
- variables and discusses their use. Two new variables have been added:
-
- PC -- Print "shorthand" character. Usually 63 (?). This is the
- character which will be interpreted by SNOBASIC as the word
- "Print". If it is desired to use a character other than the
- question mark, set PC to the ascii value (see appendix A)
- of the character desired. Using an unshifted character
- is sometimes easier than the shifted question mark.
-
- DS -- DOS output switch. If this variable is set to 1 (normal),
- output to the screen will be passed through DOS. This allows
- SNOBASIC to work on computers where the screen address in
- memory is not in tbe B000 page. This also allows the use
- of the ANSI.SYS screen driver (for output only - does not
- work with the keyboard). Setting this variable to zero
- (0), however, greatly speeds screen output since SNOBASIC
- will then write directly to the screen, bypassing DOS.
-
- NEW SYS FUNCTION
-
- Sys(17) has been added. This function will return the value of the
- EIA port status word. The value returned may be interrogated as
- follows:
- 10 Rem the variable A should be set to the bit number desired
- 15 Rem in this case we are checking carrier detect (see below)
- 20 Let A=7
- 30 Let S=mod(int(sys(17)/(2^A))/2)
- 40 If S=1 then Print "Caller is connected"
- 50 If S=0 then Print "Caller has hung up"
- The table of status values by bit number is as follows:
-
- 0 - Clear to send has changed
- 1 - Data set ready has changed
- 2 - Ring detect has changed
- 3 - Carrier detect has changed
- 4 - Clear to send (1=true)
- 5 - Data set ready (1=true)
- 6 - Ring indicator (1=true)
- 7 - Carrier detect (1=true)
- 8 - Received character ready to be read (not likely to be noticed
- before SNOBASIC handles the character)
- 9 - Overrun error (not likely to occur)
- 10 - Parity error (can not happen - SNOBASIC initializes for no parity)
- 11 - Framing error (may happen as terminal connects or disconnects)
- 12 - Break detect (not likely to be noticed before SNOBASIC handles
- the break)
- 13 - Transmitter holding register empty (will be true when not
- transmitting characters)
- 14 - Transmitter shift register empty (same as 13)
- 15 - Time out (can not happen - SNOBASIC does not wait for clear to
- send or Data set ready before transmitting)
-
- ADDITIONAL FLEXIBILITY IN COPY COMMAND
-
- The Copy command no longer must have the destination file already
- Created before use. If the destination file does not exist on the
- directory specified, it will automatically be created with the same
- size and attributes as the source file. If it already exists, it will
- be checked to insure that it has the same attributes as the source
- file and an error message will be issued if not. If the destination
- file is larger than the source, the source will be copied into the
- beginning of the destination file, leaving the rest of the destination
- file undisturbed. If the destination file is smaller than the source,
- it will be extended to the size of the source (this can be dangerous
- if another user has the destination file open when the copy occurs.
- The copy would extend the file. Then the other user would set it back
- to its original size when he closed the file. Flexibility sometimes
- must be used with caution!)
-