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
/
MBUG
/
MBUG020.ARC
/
BASPAT3.DOC
< prev
next >
Wrap
Text File
|
1979-12-31
|
4KB
|
119 lines
BASPAT3 (AUTO-LOAD FOR MICROWORLD DISK TINY BASIC) DOCUMENTATION
by Julian Loke, 13th January 1986
No distribution for profit without author's express permission.
UPDATES
BASPAT.HEX Original loader patch
BASPAT2.HEX Fix for KEY$ bug in BASPAT.HEX
BASPAT3.HEX Fix for Empty file error message
END OF UPDATE DOCUMENTATION
INTRODUCTION
It is often useful to invoke programs from the CP/M command
level, especially for those who appreciate the features of the
SUBMIT and XSUB utilities, and for those who like turn-key disk
systems.
Unfortunately my version of MicroWorld BASIC (TM Applied
Technology) did not support this otherwise "standard" feature.
So, to get an application program up and running, I had to invoke
BASIC, then load and run the application.
This file describes an auto-load patch program which
replaces the standard BASIC loader. With this patch installed,
it is possible to type the name of the application program at the
CP/M command level. For example, if you wished to run the BASIC
program ACCOUNTS.MWB, you could type:
A>basic accounts
The lower case letters are typed by the user. BASIC would load,
then the file ACCOUNTS.MWB would be loaded into memory and
executed.
USAGE AND NOTES
The syntax for the auto-load patch appears below:
BASIC [ [ <d> : ] <filename> ]
Notes:
1) No parameters- load and run BASIC without auto-load.
e.g.
A>basic
2) With parameter- load BASIC then run <filename>.MWB
e.g.
A>basic b:inventry
In this example, BASIC will load, then drive B will be
searched for the file INVENTRY.MWB. If found, the
program is loaded and executed.
3) A filetype of .MWB is assumed. ONLY files which were
created using BASIC's SAVE command can be run in this
way.
ERRORS AND ERROR MESSAGES
1) No File.
The program file could not be found. BASIC aborts
back to the CP/M command level.
2) Empty File.
The program file was not long enough to be a
program file. Check to see that it was created using
BASIC's SAVE command.
3) Bad patch version.
If you get this message, your version of BASIC is
not supported by the auto-load patch. A new patch will
need to be written and installed. If this needs to be
done, please drop me a line via the MBUG bulletin board
(Melbourne Australia 03-82-1571 (24hrs)).
INSTALLING THE PATCH
To install the patch, you will need the following files:
BASIC.COM your copy of MicroWorld Tiny BASIC
BASPAT3.HEX the auto-load patch
DDT.COM a standard CP/M utility
Make sure that you have backed-up all your files, and that
you are not altering your master disk.
Use the following command sequence to install the patch onto
the file ABASIC.COM. Once the patched version is tested, it can
be renamed to BASIC.COM. (Note that the lower case letters are
typed by the user.)
A>ddt basic.com
DDT VERS 2.2
NEXT PC
4900 0100
-ibaspat3.hex
-r
NEXT PC
4900 0000
-g0
A>save 72 abasic.com
A>
Don't worry if DDT's NEXT display shows 4700. What YOU type
remains the same.
You can now test BASIC with the AUTO-LOAD patch. See the
USAGE AND NOTES section for more information. Once you are
satisfied that all is well, rename ABASIC.COM back to BASIC.COM.
A>era basic.bak
A>ren basic.bak=basic.com
A>ren basic.com=abasic.com
END OF DOCUMENTATION