home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug047.arc / BASMENU.DOC < prev    next >
Text File  |  1979-12-31  |  3KB  |  56 lines

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