                             Scheme-88 Version Beta 28
                     Copyright (c) C. David Boyer and William Hunt

To set up s88 copy the distribution files to your hard disk and add the 
following to your autoexec.bat (assuming you put the distribution files on
the c drive in the directory c:\s88):

                        set s88path=c:\s88\
			path=c:\s88;"the rest of your path"

Be sure to include a trailing backslash for s88path. 

To use Scheme 8088 type:  s88  at the DOS prompt.

If you want, s88.com can be copied/renamed to any name you want and placed
anywhere in your path.  For example, if s88.com is in c:\bin and c:\bin is
in your path, then the path statement above is not needed, but the s88path is
needed.

If you want to add customizations, they may be added to patch.ss. This file
must be compiled to patch.so before the changes will take effect. Use

                  (compile-file "patch.ss" "patch.so)

NOTE: If you have runtime errors in your patch file the system will not load.
If you have errors, erase the patch.so file and the system will load.

While in s88, you may shell out to an editor using: (e "filename").
To change the default editor look in patch.ss.  This file can be changed
to use any editor you want.  Make backup copies of both files above in case
of error, since the system will not load if patch.so has an error.  The
system will also load if the patch.so file is erased.  The function "exec"
allows execution of any DOS executable (provided that enough memory is left).
For convience, (shell) and (dir "*.*") are defined using "exec".

EXAMPLE OF "exec" USE:
;
; DOS EXEC funtion  (exec p t e)
; p = program name string
; t = command tail (program command line parameters)
; e = new DOS environment or "" for current enviroment
;
(define zstr (list->string (list (integer->char 0))))

(define emacs-env
  (string-append 
	    "COMSPEC=C:\COMMAND.COM" zstr
	    "PROMPT=$P$G" zstr
	    "EMACS=" startup-path "\\EMACS\\" zstr
	    "PATH=" startup-path ";" startup-path "\\EMACS;"))

(define e
  (lambda (file-name)
    (exec (string-append startup-path "\\emacs\\emacs.exe")
	  file-name
	  emacs-env)))




The DOS file and path functions are in Scheme as:
(current-directory)
(set-directory s)
(current-drive)
(set-drive s)
(file-exists? s)
Their are some examples in patch.ss.  Note: DOS back-slashes must
appear as \\ in a string path name.  (EX: "\\dir1\\dir2")

The global "args" is bound to the string of args following scheme com file
name from DOS.  For example if "s88 arg1 arg2" is typed at the DOS prompt,
then args will be bound to " arg1 arg2".  The global "dos-env" is bound to
the DOS enviroment that exists when scheme is started.


If you have any questions, Email either of us:
(willie@cs.indiana.edu)
(boyer@cs.indiana.edu)

