home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ENTERPRS
/
CPM
/
UTILS
/
S
/
TPASPGM.ARC
/
TPASPGM.DOC
< prev
next >
Wrap
Text File
|
1989-09-27
|
3KB
|
64 lines
Documentation for Turbo Pascal programs -- 3/17/85
I hereby release the programs in this library to the Public Domain.
Wm Meacham, Reliance Software Services, 1004 Elm Street, Austin, Tx 78703.
Here are several programs written in Turbo Pascal (CP/M version) on a
Kaypro computer. Some I wrote because I needed something done, some I
wrote to explore the compiler, and some I wrote just for the hack value.
DEL.COM / DEL.PAS
When you are in the TURBO environment you can view the disk directory but
you can't delete files. This program allows you to delete a file; from the
TURBO menu, type "X," then "DEL." The program prompts you for a filename
to delete. You must give it an unambiguous filename -- no wild cards.
PRIME.PAS / PRIME.COM
The "Eratosthenes sieve" benchmark from Byte magazine to test compiler
efficiency in producing cpu-intensive code. Dramatically fast!
PRTFILE.PAS / PRTFILE.COM
I needed to print a text file double spaced and couldn't use Perfect Writer
because the whole thing was formatted (single spaced) for Verbatim mode, so
I wrote this program. It does just about everything the well-known public
domain program L.COM does with the addition that you can specify line
spacing. A disadvantage of high-level languages is shown in the executable
file size -- 9K vs 2K for L.COM. I had to work out how to expand tabs
correctly and how to deal with embedded formfeed characters.
RENAME.PAS / RENAME.COM
You can't rename a file from within the TURBO environment, so I wrote this
program to do it. From the TURBO menu, type "X," then "Rename," then
follow the prompts.
SORTTEXT.PAS / SORTTEXT.COM
I needed to sort a list of names, so I wrote this to do it; it sorts any
text file. The sort is done entirely in core, so there is a limit to the
file size, set by the constant maxlines. Try increasing maxlines and
recompiling -- I don't know how big you can get before you run out of core.
Note -- it sorts on the ASCII collating sequence, so "BLUEBERRY" comes
before "apple."
STARS.PAS / STARS.COM
This is a truly fun game -- a combination of thought-provoking "brain
teaser" and shoot-em-up arcade game. It displays a 3-by-3 grid and you
change stars (asterisks) to black holes (apostrophes) by shooting them,
which is done with the numeric keypad. The object is to get all stars
surrounding one black hole. I modified it from a version I found on a
Pascal/Z user group disk.
XYZZY.COM
I don't have the source for this; I found it on a public domain disk
somewhere. For the Adventure fans out there.
nu, type "X," then "Rename," then
follow the prompts.
SORTTEXT.PAS /