home *** CD-ROM | disk | FTP | other *** search
- \ MAKEOV.SEQ Make the OVERLAY.BIN file for DOS 2.x
-
- .comment:
-
- The file MAKEOV.SEQ allows the creation of an OVERLAY.BIN file. This
- file will be used to allow FF running on DOS 2.x to locate and load the
- editor overlay. DOS 2.x does not support the DOS functions required to
- determine what the name of the currently running program is, so it is
- necessary to create a known file that will contain the editor.
-
- When an INSTALL is done, and the DOSA version is 2.x, then the
- OVERLAY.BIN file will automatically be created. However if FF is
- installed on a DOS 3.x system, and subsequently moved to a DOS 2.x
- system without re-installing it, you will need to type the following
- command before trying to edit:
-
- MAKE-OVERLAY <filespec_of_FF.EXE_currently_running> <enter>
-
- FF will open FF.EXE and read the editor overlay from it. It will
- then create a file OVERLAY.BIN, and write the editor back out to it.
-
- Editing will then be possible.
-
- comment;
-
- hidden also
-
- : make-overlay ( | name --- )
- ovoffset 2@ or 0=
- if cr ." Sorry, you have already tried to run the editor."
- cr ." Leave, and re-start FF, and try again."
- abort
- then >in @ span @ 1- >
- if cr
- ." Enter the filespec of the version of FF.EXE that you are currently running."
- cr
- ." FF will use it to make the file OVERLAY.BIN. Filespec? "
- query
- then exehcb !hcb
- " EXE" ">$ exehcb $>ext
- exehcb hopen cr
- abort" Could not open EXE file to make OVERLAY.BIN"
- ovoffset 2@ exehcb movepointer
- here 500 + >r r@ 25000 exehcb hread r> swap >r >r
- exehcb hclose drop
- r@ @ 12345 <>
- r@ 2+ @ ctime @ <> or
- r@ 4 + @ ctime 2+ @ <> or
- if cr exehcb count type ." Contains no Overlay"
- abort
- then " OVERLAY.BIN" ">$ shndl+ $>handle
- shndl+ hcreate abort" Error creating OVERLAY.BIN"
- r> r@ shndl+ hwrite r> <>
- abort" Write Error in Overlay Code section"
- shndl+ hclose drop ;
-
- only forth also definitions
-