home *** CD-ROM | disk | FTP | other *** search
-
- PETASCII
- Version 1.0
-
- Gene Pizzetta
- 9/17/87
-
-
- This program will quickly and safely translate a PETASCII (also
- known as Commodore ASCII) text file into standard ASCII form. It
- is written in Z80 assembly language (using extended Intel
- mnemonics) for CP/M Plus.
-
- USAGE:
-
- PETASCII {d:}<fn.ft> {d:}{<fn.ft>}
-
- Copies the input file (first file reference) to the output file
- (second file reference), converting PETASCII characters to ASCII
- characters. It also inserts linefeeds after carriage returns
- where they do not already exist (if a linefeed is already there,
- no additional linefeed is added).
-
- If the drivecode (d:) of the input file is omitted the current
- drive is assumed. An input filename is required.
-
- If the output file reference is omitted, it will be given the
- same name as the input file. Any file of the same name on the
- destination drive will be renamed to filetype .BAK, which will
- preserve the original input file if both input and output use the
- same drive. If the output filename does not include a filetype,
- the output file will be given the same filetype as the input
- file. If a drive specification is not given, output will default
- to the current drive.
-
- If the program is run on a standard ASCII file, it will be
- translated to PETASCII. Uppercase characters of the resulting
- will be in PETASCII low uppercase (97-122), rather than the high
- uppercase values (193-218) returned by the BASIC ASC function.
- (You didn't know Commodore had two uppercases!) In any case it
- will work the same.
-
- This program was developed using SLRMAC from SLR Systems. If you
- haven't used SLRMAC, or the same company's Z80ASM, you don't know
- how fast and convenient assembly can be. This program can also
- be re-assembled with MAC by changing the filetype to .ASM and
- making sure Z80.LIB is on your default (current) drive. (SLRMAC
- has Z80.LIB built-in.)
-
- In writing this program I drew heavily from the I/O routines
- discussed by David E. Cortesi in his "A Programmer's Notebook:
- Utilities for CP/M-80". This is an excellent book, but a little
- hard to come by. I had to special-order it from Prentice-Hall.
-
- I hope this utility comes in handy occasionally for somebody
- besides myself. Let me know if you find any bugs or have any
- suggestions. I considered putting in an optional switch to allow
- the removal of linefeeds, but I decided that nobody would
- translating *into* PETASCII in CP/M mode. Tell if I'm wrong.
- Enjoy!
-
- Gene Pizzetta
- Quantum-Link (GeneP)
- CompuServe (72060,505)
-