home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / forthmacs / htmldocs / !Forthmacs / docs / html / convention < prev    next >
Encoding:
Text File  |  1996-02-23  |  8.0 KB  |  215 lines

  1. <!-- Forthmacs Formatter generated HTML output -->
  2. <html>
  3. <head>
  4. <title>General Information</title>
  5. </head>
  6. <body>
  7. <h1>General Information</h1>
  8. <hr>
  9. <p>
  10. <p>
  11. <h2>Getting Started</h2>
  12. <p>
  13. Before anything else you should always make a backup of your "Working Disk" 
  14. archive called WorkDisc.  
  15. <p>
  16. All "Working Disks" are ZIP (deflated) archives, they hold the complete 
  17. directory tree including RiscOS file attributes in one single file called <em>WorkDisc</em> 
  18. .  This archive is packed using SparcFS, you should use Sparc for unpacking 
  19. (distributed discs come complete with Sparc).  
  20. <p>
  21. This makes is easy to deliver Risc-OS Forthmacs via BBS or other email media.  
  22. In addition to this advantage, the zipped archives can be used by different 
  23. computers on other platforms.  
  24. <p>
  25. To install !Forthmacs on your harddisk just copy the !Forthmacs directory inside 
  26. the <em>WorkDisc</em> .  
  27. <p>
  28. You can of course run Risc-OS Forthmacs from the disk, but that will be not so 
  29. much fun even with Risc-OS Forthmacs internal file-caching.  The RiscOS Version 
  30. should be 3.1 or later, earlier versions do run but miss some features.  
  31. <p>
  32. Risc-OS Forthmacs needs at least about 300 kByte of ram but 512K to 2MB are much 
  33. better.  
  34. <p>
  35. In the main directory <!Forthmacs> you will see some files, <em>bin.run.forth</em> 
  36. is the basic 'obey' file to start Risc-OS Forthmacs (risc_os.bin.Forthmacs).  It 
  37. looks something like this: 
  38. <br><code>    </code><br>
  39. <br><code>    Wimpslot -min 1024K</code><br>
  40. <br><code>    RMEnsure ColourTrans    0.52 RMLoad System:Modules.Colours</code><br>
  41. <br><code>    RMEnsure ColourTrans    0.52 Error Forthmacs needs ColourTrans 0.52 or later</code><br>
  42. <br><code>    If "<Wimp$ScrapDir>"="" then ERROR Forthmacs needs Wimp$ScrapDir for swapping</code><br>
  43. <br><code>    Set Forthmacs$Path @.,<Forthmacs$Dir>.,<Forthmacs$Dir>.tools.</code><br>
  44. <br><code>    Set Forthmacs$wimpmode 27</code><br>
  45. <br><code>    Forthmacs:risc_os.bin.Forthmacs %0</code><br>
  46. <br><code>    </code><br>
  47. The first line sets the 'Wimpslotsize', the last calls the forth binary.  
  48. <p>
  49. <p>
  50. %0 stands for the first parameter, this can be a filename that Risc-OS Forthmacs 
  51. will immediatly start to interpret.  If this parameter isn't set, <em>auto </em> 
  52. is the default.  Note: This would be auto.fth on other implementations.  
  53. <p>
  54. <em>Set Forthmacs$Path @.,<Forthmacs$Dir>.,<Forthmacs$Dir>.tools.</em> 
  55. will tell Risc-OS Forthmacs where to find it's files.  In target applications 
  56. you should set this path accordingly.  
  57. <p>
  58. <em>Set Forthmacs$vidmode 27</em> tells the  <code><A href="_smal_BK#2f2"> terminal: </A></code> 
  59. about the wanted video mode, the default is <strong>unset</strong> .  This 
  60. doesn't swich the video mode, all others are accepted as Risc-OS 3.1 wimpmodes.  
  61. The 3.5 mode styles will not be supported, future versions will run in WIMP.  
  62. <p>
  63. <p>
  64. <h2>Updating</h2>
  65. <p>
  66. To make updating easy and to keep net-costs low, all Risc-OS Forthmacs tools, 
  67. applications, updates and add ons will follow a common strategy: They are 
  68. gzipped/tar archives holding only the files needed.  
  69. <p>
  70. The Sparc file-archives holding the "Working disc" are updated when major 
  71. improvements took place and the add on files use more than 100kB.  
  72. <p>
  73. When you have got an update or an application archive you just copy this archive 
  74. to the 
  75. <br><code>    risc_os.installing</code><br>
  76. directory and run Risc-OS Forthmacs, the installing is done automatically for 
  77. you.  
  78. <p>
  79. Hope this improves updating :-) 
  80. <p>
  81. <p>
  82. <h2>Features</h2>
  83. <p>
  84. 32-bit stacks and addresses 
  85. <p>
  86. structured decompilation 
  87. <p>
  88. macro assembler and disassembler 
  89. <p>
  90. Source-level debugging/tracing/single stepping 
  91. <p>
  92. Command line editing with interactive history editor 
  93. <p>
  94. command completion 
  95. <p>
  96. callfinder 
  97. <p>
  98. Operating system independent file system interface 
  99. <p>
  100. operating system interface compiler 
  101. <p>
  102. strings 
  103. <p>
  104. crash resistance ( also in multitasking ) 
  105. <p>
  106. run-time search order specification 
  107. <p>
  108. cooperative multitasking 
  109. <p>
  110. runtime profiler 
  111. <p>
  112. on-line documentation 
  113. <p>
  114. Assembly language debugging/tracing/single-stepping 
  115. <p>
  116. Floating point (optional) 
  117. <p>
  118. complete source code (optional) 
  119. <p>
  120. xmodem and serial interface tool 
  121. <p>
  122. <p>
  123. <h2>Upper Case vs. Lower Case</h2>
  124. <p>
  125. In the older manuals Forth words were written in upper case LIKE THIS.  This was 
  126. done to make those words stand out from the rest of the text.  The formatter now 
  127. prints those keywords in bold-typewriter font like  <code><A href="_smal_BR#209"> forth </A>.</code> 
  128. <p>
  129. When you type the Forth words, you should use lower case as shown in the 
  130. glossary.  Also, Forth source code in files should be in lower case.  
  131. <p>
  132. If you need to use upper case, read about the variable  <code><A href="_smal_BM#174"> caps </A></code> 
  133. in the Master Glossary.  
  134. <p>
  135. Note: There are very rare occasions when the formatting program doesn't switch 
  136. into bold-typewriter font, so don't worry if you find a keyword in upper case.  
  137. <p>
  138. <p>
  139. <h2>Master Glossary</h2>
  140. <p>
  141. Reference documentation for most Risc-OS Forthmacs words appears in the chapter 
  142. "Master Glossary".  The key to the glossary notation is the chapter "Glossary 
  143. Notation".  The Master Glossary is sorted by alphabetical order.  The chapter 
  144. "Glossary Functional Index" lists the words of the Master Glossary grouped by 
  145. function.  
  146. <p>
  147. Documentation for the ARM-Assembler and Multitasking can be found in special 
  148. chapters.  
  149. <p>
  150. <p>
  151. <h2>Loading Files</h2>
  152. <p>
  153. To interpret Forth source code from a file named, for example, <em>art </em> , 
  154. use  <code><A href="_smal_BM#204"> fload </A></code> like: 
  155. <br><code>    fload art</code><br>
  156. As you probably know the directories in Risc_OS are seperated by a dot like 
  157. <br><code>    risc_os.bin.Forthmacs</code><br>
  158. Deep inside Risc-OS Forthmacs, pathnames ending with <strong>.doc .txt .exe .fth .ind .dat</strong> 
  159. are accepted as DOS-style pathnames and converted to RiscOS pathnames.  This 
  160. allows more portable code with filenames.  
  161. <p>
  162. To edit files, use your favorite editor, this works very fine with Deskedit, 
  163. Zap, StrongED, Edit uEmacs or others.  
  164. <p>
  165. To learn more about files, read the chapter "Files".  
  166. <p>
  167. <p>
  168. <h2>Saving an Executable Image</h2>
  169. <p>
  170. After creating new definitions and changing things you may want to save an 
  171. executable file that includes those changes and additions.  
  172. <br><code>    "" filename save-forth</code><br>
  173. will do this for you.  The file will be added to the current directory unless 
  174. the pathname is explicitly specified.  The new file must be of the absolute 
  175. filetype.  
  176. <p>
  177. From now on, you can call up your own version of Forth with: 
  178. <br><code>    * run filename</code><br>
  179. In fact, you can automatically interpret Forth source code files as well when 
  180. you first start up Forth.  From supervisor ( or 'obey' file): 
  181. <br><code>    * run filename  sourcefile</code><br>
  182. <p>
  183. <p>
  184. <h2>Interrupting a Listing</h2>
  185. <p>
  186. When Forth is displaying a multi-line listing on the screen, in most cases the 
  187. listing may be interrupted by typing any character.  If the character is "q" 
  188. (for quit), the listing will be aborted.  If the character is anything other 
  189. than "q", the listing will pause, displaying a "More?" prompt at the bottom of 
  190. the screen.  
  191. <p>
  192. When the listing is paused, typing a "q" will cause the listing to be aborted, 
  193. and typing any other character will cause it to continue.  
  194. <p>
  195. <p>
  196. <h2>Copying the Manual</h2>
  197. <p>
  198. The manual is copyrighted, and permission to copy in any way it is  <code><A href="_smal_AM#27c"> not </A></code> 
  199. granted.  If you need extra copies, contact the Risc-OS Forthmacs support.  You 
  200. can copy and give away the complete Working disk, but not the manual.  
  201. <p>
  202. Online manuals are available on special request, both dvi and ascii files are 
  203. available at the moment.  
  204. <p>
  205. Risc-OS Forthmacs support: 
  206. <br><code>    Hanno Schwalm</code><br>
  207. <br><code>    Holunderstr. 10</code><br>
  208. <br><code>    D-28207 Bremen</code><br>
  209. <br><code>    Germany</code><br>
  210. <br><code>    Tel. 49 421 459996</code><br>
  211. <br><code>    support@4thware.winnet.de</code><br>
  212. <p>
  213. </body>
  214. </html>
  215.