home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilst / wt_070 / Documents / Examples / CLIcoms / ? / !ReadMe next >
Encoding:
Text File  |  1995-03-26  |  1.6 KB  |  38 lines

  1. > MakeMod
  2.   by Excelsior (George K. Saliaris)
  3.   Converts BASIC programs to WT modules.
  4.  
  5. This program is written while examining command line commands on Wacky-Talky. The great advantage is that BASIC programs converted to WT modules can be compressed with !Squash application and retain their run and load actions.
  6.  
  7.  
  8. Anyway, there is only a tiny thing to change in a BASIC program before converting it to a WT module, that is on the way you get the parameter string with SYS "OS_GetEnv" bacause BASIC does not allows parameters after this 'BASIC -Quit @xxxxxxxx,xxxxxxxx'.
  9.  
  10. To get the parameter string you should use something like:
  11.  
  12. IF $&7000="WTm" env_str$=$USR&7004 ELSE SYS"OS_GetEnv" TO env_str$
  13.  
  14. At address &7000 a marker is stored which allows to check if you have been downloaded from a WT module or not, if that is the case at address &7004 there is routine which returns the pointer to parameter string; this is necessary because the marker must me corrupted after reading it.
  15.  
  16. The parameter string will be something like:
  17.  
  18. BASIC -Quit @00009000,000090B1A bla bla bla
  19.  
  20. The option '-q' in parameter string means automatic kill the module before starting BASIC.
  21.  
  22. NOTE: You *must* call once at &7004 even if you don't need the parameter string, you can do that using:
  23.  
  24. IF $&7000="WTm" CALL &7004
  25.  
  26. _____________________________________________________________________
  27.  
  28. Here are the addresses to contact me.
  29.  
  30. snail-mail:    George Saliaris
  31.                Veriti 7
  32.                821 00 Chios
  33.                Greece
  34.  
  35. e-mail:        gsal@posidon.servicenet.ariadne-t.gr
  36.  
  37.  
  38. PS: Wacky-Talky is great!