home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / f / forthmac / !Forthmacs / docs / html / convention < prev    next >
Encoding:
Text File  |  1997-05-01  |  8.1 KB  |  222 lines

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