home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / pg / pg100 / cmd.100 next >
Text File  |  2006-10-19  |  2KB  |  47 lines

  1.         CMD.100 by Paul Globman
  2.            Copyright (c) 1990
  3.  
  4. The Model 100, as designed, provides several programs supplied in ROM and 
  5. the ability to design and write programs that will run in RAM.  If you go into 
  6. BASIC you can enter direct commands, such as FILES or LOAD "PRGRAM" and the 
  7. Model 100 will display the files or load the program PRGRAM.BA.
  8.  
  9. This is fine but you must be in BASIC for these commands to have any meaning.
  10.  At the menu of the Model 100 you can use the widebar cursor to select a 
  11. program you wish to run, but wouldn't it be nice if you could type in 
  12. "commands" and make the Model 100 do what you want?
  13.  
  14. Well you can type in a filename and press ENTER, and that file will run, 
  15. but it's not quite the same as typing a command... or is it?
  16.  
  17. Suppose you have a program like RUN.BA or KILL.BA (see Portable 100, Jan. 
  18. 1989).  These programs can be made into "commands" by...
  19.  
  20.   a) making them invisible so they do not appear as programs
  21.  
  22.   b) removing the .BA so you only need to type RUN<cr> or KILL<cr>.
  23.  
  24. RUN and KILL are unique programs in the sense that they only operate on the 
  25. file that is under the menu widebar cursor.  By making them invisible and 
  26. removing the .BA, these programs take on the characteristics of commands 
  27. instead of programs.
  28.  
  29. Select the program you wish to make into a command, such as RUN.BA.  With the 
  30. cursor over RUN.BA, type CMD.BA<cr>.  RUN.BA will disappear, but don't 
  31. worry... it's still there.  It's invisible and the .BA was removed, so 
  32. you can use RUN as a command from the menu when running a .CO program that 
  33. would normally require HIMEM to be properly prepared.
  34.  
  35. 0 REM CMD.BA (c) 1990 by Paul Globman
  36. 1 A=64929+2*PEEK(65006):A=PEEK(A)+256*PEEK(A+1)::POKEA,PEEK(A)OR8:POKEA+9,32:POKEA+10,32:MENU
  37.  
  38.  
  39. CMD.BA is used to make a file invisible and remove the file extension.  I have 
  40. only experimented with BASIC programs and feel confident that the use of 
  41. CMD.BA with basic programs will work as expected.  
  42.  
  43. NOTE: If you run CMD.BA from the menu by selecting it with the cursor and 
  44. pressing enter, it will operate on itself and become invisible (and the 
  45. .BA will be removed).
  46.  
  47.