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
/
MBUG047.ARC
/
BASMENU.DOC
< prev
next >
Wrap
Text File
|
1979-12-31
|
3KB
|
56 lines
.. Article submitted for The Catcher.
.. Written by Graeme P Young, 16 Hillingdon Cres, Doncaster 3108.
.. Phone: 857 4302
.. NOTE The programme BASMENU.MWB is an important accompaniment.
A SIMPLE WAY TO GET FILES LOADED AND RUNNING IN MWBASIC
By Graeme P. Young
I have always found it frustrating when faced with a disk full of
BASIC and M/L files to have to type in full commands and filenames so that
files can be run. It is particularly annoying when a M/L file has a load
address which differs from 0900hex, the usual load address in MWBasic, and
even worse when the start address differs from the load address.
That piece of paper on which the addresses are written must be somewhere!
I would like to share with you my solutions to these problems. They
save a lot of time and trouble. Two steps are required:
1) Write a short programme in basic which will load and start your M/L
programme. It contains load and start addresses and you don't need
to record them anywhere else.
2) Use a menu programme written in basic which can be autostarted from a
programme such as config.com which allows you to select and run a
programme with a single keystroke.
Short programme to load and run M/L files:
Determine the loading address for programme filename.???, shown below
as xxxxx (decimal not hex), and the start address, shown as yyyyy. Then
type in the following programme and save it as filename.MWB:
00010 CLS: PRINT"Loading filename.???."
00020 LOADM "FILENAME.???" xxxxx
00030 PRINT USR(yyyyy): REM starts the programme
Notes: In line 20, the file type (shown as ???) must be included. If the
file loads and starts at the same address, then lines 20 & 30 can be replaced
by a single line:
00020 RUNM "FILENAME.???" xxxxx
From then on, all you ever have to do to run the programme is to type
'RUN "FILENAME"', and your short basic programme does all the work. If you
wish to make it even easier, then read on.
Menu programme for single stroke running of MWBasic programmes.
Various versions of menu programmes are available. Each has its good
and bad points. I wanted one which was short and simple and by putting
together ideas of my own and others I came up with the attached version
which I have called BASMENU. It has been downloaded to the bulletin board.
When using this menu programme it is convenient to have all of the
MWB type files appear first in the menu. To do this, copy all MWB files on
the disk to a new disk, then copy all other files to the same disk.
The final step is to obtain an autoload version of MWBasic, see The
Catcher, Jan 1986, p8 (article by Julian Loke). Set up config.com to carry
out the following command on a cold boot:
basic basmenu
Now you can run any of your basic and M/L programmes by a single keystroke.