home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug002.arc
/
UNMWB20.LBR
/
UNMWB20.DQC
/
UNMWB20.DOC
Wrap
Text File
|
1979-12-31
|
3KB
|
98 lines
UNMWB20.COM
07-Jan-85
Version 1.0 did not know about the tokens for Disk Basic, so
this has now been corrected - with a small penalty. If the
being converted was a tape program that used the "MEM" key-
word, it will now appear as "EOF". Further, "SAVE" from a
tape program will become "CSAVE".
The other fault in V1.0 was an oversight in looking at array
entries that did not exist in the table of keywords. This
has now been fixed. That is, if a new keyword is introduced
that is not in the table, UNMWB will die nicely with an
admission of the nature of the trouble.
-Greg Black.
UNMWB10.DOC
01-Jan-85
This program converts a MicroWorld [tm] BASIC (.MWB) file
into standard ASCII format. It does nothing to convert the
syntax or tidy up the presentation, though both of these
features would be easy enough to add.
It gives the option of printing the output to screen (or
printer with ^P) or of putting its output on a file.
It does not accept redirection or multiple filenames. It
will accept an ambiguous file name for its input file, but
will only process the first file that comes up in the
directory as a match.
If invoked with no parameters, it will exit with a usage
message.
USAGE
If invoked with one parameter, it will attempt to open that
file and translate it from .MWB into normal ASCII. It does
rudimentary checking to see that it is handling the correct
type of file. It will give up nicely if asked to translate
an ASCII file, but may do amazing (though probably harmless)
things if handed a binary file.
If invoked with two parameters, it will attempt to translate
the first from .MWB and to write the output on the second.
If the second parameter is an existing file or is ambiguous,
the program will abort.
It accepts drive and/or user specifications for both
parameters in the form: [u:][d:]filename.ext - if both
drive and user are given, user must be first.
It will refuse to accept just a user number or drive code
for the second parameter, to ensure that it does not write a
file with a directory entry composed only of spaces.
MODIFYING UNMWB10.C
The program was written for the Hi-Tech C Compiler and
should compile on any standard C compiler. It uses no
floats or longs and no difficult methods.
If you make any enhancements to the program, please let me
know. If you find any bugs in it, I will deal with them if
you let me know nicely. I take no responsibility for
anything it might do, including eating your diskettes,
stealing your lunch, or causing the overthrow of the state
of consensus.
Otherwise, use it to your heart's content and spread it
around as far as it needs to go.
COPYRIGHT
This program is copyright by Greg Black, and remains the
property of its author. It is released into the public
domain for free use by all persons provided only that it it
is not sold and that any improvements are notified to:
Greg Black,
7 Bullarto Street,
Chadstone 3148,
Australia,
or by a message left for me on the Tardis RCP/M on Melbourne
(03) 67 7760.