home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / atari / 8bit / 5769 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  3.4 KB

  1. Path: sparky!uunet!well!moon!cyberden!phbill
  2. From: phbill@cyberden.sf.ca.us
  3. Newsgroups: comp.sys.atari.8bit
  4. Subject: COM_RUN
  5. Message-ID: <4XcswB4w165w@cyberden.sf.ca.us>
  6. Date: Sat, 02 Jan 93 21:26:02 PST
  7. Reply-To: phbill@cyberden.sf.ca.us
  8. Organization: Indescribable Creations
  9. Lines: 64
  10.  
  11. Well, I've figured out how to pass parameters between programs!  YAY!  
  12. What are you going on about? you ask??  Well, I've been convinced to add 
  13. parameter passing abilities to the MyNI_DOS CLI.  A fellow C.S.A.8 reader 
  14. (damn, sorry! I forgot who you werw! :-(  ) said that SpartaDOS uses page 
  15. 4 of memory, so I finally got off my duff and looked it up in _Mapping_.  
  16. Unfortunatley, the only thing on page 4 is the descriptions of addresses 
  17. 8 through 11.
  18.  
  19. Ok, it was a bad joke the first time what's-his-name said it, and it 
  20. still is now :) ...
  21.  
  22. Anyways... page 4 of memory is... (drum roll, please), the CASBUF 
  23. (cassette buffer), which is only used (guess when!?) when using a program 
  24. recorder.  (Oh, and also during boot...)  Soooooooo . . .
  25. I've made a TurboBASIC XL demo that shows how it's done.  I'm lucky 
  26. enough now to have a RAMDisk, so running "COMmand" (.COM) files from disk 
  27. wasn't a discouraging thought.  Anyways, I made a few little TBXL 
  28. programs...
  29.   COM_RUN.TBS  - COMmand file RUNner (in TurboBaSic).  It's a VERY simple
  30.                  CLI.  All it can do is load another TBXL program 
  31.                  (passing parameters to it), display a title/info., and
  32.                  exit back to TurboBASIC.
  33.   DIRCOM.TBS   - The "DIR" command.  It shows a directory... the mask of
  34.                  which is sent as... a PARAMETER!!...
  35.   WDIRCOM.TBS  - A wide-directory (two columns) viewer.
  36.   VIEWCOM.TBS  - A graphics 8, 9, and 15 picture viewer.  It uses one or
  37.                  two parameters!
  38.   RUNCOM.TBS   - A program runner!  HA!
  39. and then, some other ones I made later that day (after I made the first 
  40. ARC and uploaded it here & there) were:
  41.   TIMECOM.TBS  - sets or displays current value of TBXL's TIME$ clock.
  42.   READCOM.TBS  - ..the most "complex" of the COMmand programs I've made
  43.                  for this little demonstration.  It displays text files,
  44.                  and knows how to translate ASCII CR/LFs into AtASCII 
  45.                  EOLs, and it can set address 766 to 1 (meaning the 
  46.                  editor characters are displayed, rather than "done"), 
  47.                  and finally it can use the INPUT command rather than
  48.                  GET to load and display AtASCII files (as long as no
  49.                  line in the file is greater than 255(?) bytes...).
  50.                  THIS COMmand file uses up to 4 parameters, the first
  51.                  being the file name, and the other three being the
  52.                  display/load settings (described above) >IN ANY ORDER!<
  53.  
  54. Cool, eh?  (well, >I< think it is, as I'm not a SpartaDOS user, and I've 
  55. never done anything as way-cool as this! ;)  )
  56.  
  57.  
  58. Well...  I could simply UUEncode the ARC and post it here (perish the 
  59. thought!  Too bad it's a VERY small ARC, eh!?  I could probably even 
  60. post a LISTing of the other two COMmand files...)
  61.  
  62.  
  63. BTW: Just FYI, this concept is going to be used in MyNI_DOS, and if 
  64. someone'd be kind enough to explain EXACTLY how SpartaDOS does it, I 
  65. could even try & make it SD compatible!  gasp...
  66.  
  67. Thanx!
  68.  
  69. BYE!
  70.  
  71.            \
  72.   /\  /    /\  / /  /
  73.  /\/ /\  \/\/ / /  /    PhBill@Cyberden.SF.CA.US, or
  74. /     /   \/ /  \  \    PhBill@Cyberden.UUCP
  75.