home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Pascal / HISOFTPASCAL2,0-1.DMS / in.adf / ReadMe < prev    next >
Encoding:
Text File  |  1993-03-11  |  9.7 KB  |  270 lines

  1.  
  2.     HighSpeed Pascal 1.10
  3.     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  4.     26th May 1992
  5.     ¯¯¯¯¯¯¯¯¯¯¯¯¯
  6.  
  7. Welcome to HighSpeed Pascal.  This file is intended to
  8. supplement the manual, giving you the latest details on
  9. your version of HighSpeed Pascal.
  10.  
  11. We regret that we are no longer able to supply the Amiga
  12. speech libraries with our products.  If you have either
  13. Workbench 1.3 or 2.0 and wish to use these facilities, you
  14. must transfer the narrator.device, translator.library and
  15. speak-handler files from your original Workbench disks.
  16.  
  17. A complete set of Pascal 'units' for programming Release 2
  18. of the operating system are now supplied on a fourth disk.
  19. Installation details plus important information concerning
  20. both these and the 1.3 units can be found in the Units Disk
  21. ReadMe file.
  22.  
  23.  
  24.     Installation
  25.     ¯¯¯¯¯¯¯¯¯¯¯¯
  26. When using Workbench to back up your disks, rename each one
  27. afterwards to remove the words 'copy of '.  Please note
  28. that Program Disk 2.0 is a FastFileSystem disk and is
  29. unreadable from Workbench 1.3.
  30.  
  31. For memory reasons, both Program Disks are configured to
  32. use the Workbench 1.3 units by default.  Details of how to
  33. switch over to the new 2.0 units is in the Units Disk
  34. ReadMe file.  Units Disk 2 is only required if you use
  35. these units.
  36.  
  37. Since Pascal.lib is located on the Units Disk, you may see
  38. a 'volume not mounted' requester the first time you compile
  39. or run a program (such as the Quick Tutorial in the
  40. manual).  Simply insert the requested disk in any drive to
  41. continue.  Hard disk users should follow the installation
  42. procedure given in the manual.
  43.  
  44. You may wish to update the Default Tools of icons in
  45. Prefs/Env-Archive (using Info from Workbench) to include
  46. the correct volume names for your system.
  47.  
  48.  
  49.     Updating 1.00
  50.     ¯¯¯¯¯¯¯¯¯¯¯¯¯
  51. If you are upgrading from version 1.00, it is simplest to
  52. just re-install the package.  For floppy disk users this is
  53. a matter of copying your source files from the old disks to
  54. a backup of the 1.10 disks.
  55.  
  56. Hard disk users are advised to rename their old HSPascal
  57. drawer before installing the new version.  Source files,
  58. preferences etc. can then be moved from the old drawer into
  59. the new one.  It is often convenient to keep such files in
  60. a separate 'Programs' drawer.
  61.  
  62. Finally, only delete the old HighSpeed Pascal drawer once
  63. you are certain that all useful files have been transferred
  64. (possibly allowing several days to avoid unnecessary
  65. grief!).
  66.  
  67.  
  68.     Floating Point Support
  69.     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  70. Any Pascal program including floating point calculations
  71. will automatically take advantage of a 68881/2 maths
  72. coprocessor if present.
  73.  
  74. The Real type now defaults to Extended precision for
  75. maximum speed and accuracy, although this can be changed if
  76. required.  Extended now uses 12 bytes and IS compatible
  77. with the 68881/2 format (contrary to page 10 and 260-261 of
  78. the Technical Reference Manual).
  79.  
  80.  
  81.     Miscellaneous
  82.     ¯¯¯¯¯¯¯¯¯¯¯¯¯
  83. Range and Stack Checking also give automatic Ctrl-E break
  84. checking which may be used to stop a runaway program.  This
  85. facility can be controlled from the program via the boolean
  86. System variable, BreakOn.
  87.  
  88. Although not mentioned in the manual, the inline assembler
  89. accepts the syntax <recordtype>.<fieldname> which gives the
  90. byte offset to any field within a record.  This permits
  91. symbolic names to be used instead of constant values, e.g:
  92.  
  93.     move.w    tRectangle.MinX(a0),d0
  94.  
  95. The XASSEMBLER keyword may be used instead of ASSEMBLER to
  96. suppress the LINK and UNLK A6 instructions which are
  97. normally generated.  However, such routines cannot refer to
  98. parameters by name or @result although it can use constant
  99. offsets into the stack instead.  For this reason XASSEMBLER
  100. is not recommended except for short or parameterless
  101. procedures.
  102.  
  103. Hexadecimal constants now behave the same as decimal
  104. constants to be compatible with Turbo Pascal.  Previously,
  105. $8000 would be sign extended to $FFFF8000.
  106.  
  107. The CRT unit now contains the TextCursor procedure which
  108. takes a single boolean value and enables or disables the
  109. output window cursor.  Note that this and other effects can
  110. be achieved by writing ANSI-style escape sequences.
  111.  
  112. Printer output is done through the 'lst' file, available
  113. when you 'use' the Printer unit.  WriteLn(lst, 'Hello'),
  114. for example, will write to the printer instead of the
  115. screen.  Note that only standard Amiga escape sequences
  116. should be used to control printing and not your printer's
  117. own escape codes.  For a printout of all program output,
  118. try using the method described below under CLI vs Workbench.
  119.  
  120. The System unit variable ThisTask points to the program's
  121. Process structure and may be cast to a pTask or pProcess as
  122. required.
  123.  
  124.  
  125.     Editor
  126.     ¯¯¯¯¯¯
  127. When starting HSPascal from a CLI, an empty window is now
  128. created for any named file which is not found.  The
  129. Workbench 2 version also recognises AmigaDOS patterns such
  130. as "#?.pas" which would open all the files ending in ".pas".
  131.  
  132. There are now two Open commands on the Project menu, 'Open'
  133. (Amiga-L) and 'Open New' (Amiga-O) which is equivalent to
  134. the Open command described on page 50 of the User Manual.
  135. The 'Close' command (Amiga-K) has moved to the Window menu
  136. and now only closes the current window.  Some other Window
  137. menu commands now have shortened names.
  138.  
  139. 'Open' is useful when you wish to open a file without
  140. having it create an extra window like Open New does.
  141. Instead, Open replaces the current project with the
  142. selected file, prompting first if the project has been
  143. modified.
  144.  
  145.  
  146. A number of new settings have been added.  A flashing
  147. cursor is optional and the Shift-Backspace command (delete
  148. to start of line) may be disabled.
  149.  
  150. 'Save Before Run' will automatically save any modified
  151. projects when you select Run or Debug.  This safeguards you
  152. in case your program crashes and ensures that the correct
  153. source files are used for debugging.  Selecting 'Warn'
  154. produces a requester before saving whilst 'Always' saves
  155. all changes without prompting.
  156.  
  157. 'Program Window' lets you choose if a window is produced
  158. when you Run or Debug and whether it waits for a keypress
  159. before closing.  With Workbench 2 the window only appears
  160. if used and is closed by Ctrl-\.
  161.  
  162. Two settings are only accessible by manually editing
  163. settings files: the clipboard unit number (CLIP=<n>) and
  164. the program window size (OUTPUTWIN=<x>,<y>,<w>,<h>).
  165.  
  166.  
  167. Page 41 of the User Manual shows the split and join line
  168. keyboard shortcuts the wrong way round.  The end of the
  169. first paragraph on page 49 should say LEFT Amiga key.
  170. Additional keyboard shortcuts to pages 63-65 are:
  171.  
  172.     Right Amiga-I        Paste File
  173.     Right Amiga-K        Close Window
  174.     Right Amiga-L        Open (see above)
  175.     Ctrl-K            Delete to End of Line
  176.     Shift-Alt-cursor key    Scroll window
  177.  
  178. Use Esc to close the Find requester if you wish to retain
  179. its contents.  To enter Find text without an automatic Find
  180. Next, hold down Ctrl, Shift or Alt when pressing Return
  181. (this also works with other editor text gadgets).
  182.  
  183. The cursor line and column numbers appear in the About
  184. requester (accessed via the Help key).
  185.  
  186.  
  187.     File Requesters
  188.     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  189. Although the ARP file requester used by the 1.3 editor has
  190. an internal limit of 32 characters for directory names, it
  191. is possible to overcome this with HSPascal.  To specify a
  192. long pathname such as "HardDisk:HSPascal/programs/graphics/
  193. drawing.pas" for example, you can select "HardDisk:
  194. HSPascal/programs" as the Drawer and then type "graphics/
  195. drawing.pas" into the File gadget.
  196.  
  197. Some users may wish to use a program which replaces
  198. standard requesters with its own, such as the public domain
  199. ReqTools library.
  200.  
  201. Pascal units for programming both ARP and ReqTools can be
  202. found in the Extras drawer of the Units Disk along with the
  203. FileRequest.pas example program.  This example also
  204. requires the ASL unit included on Units Disk 2.
  205.  
  206.  
  207.     CLI vs Workbench
  208.     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  209. Unfortunately, page 278 of the Technical Reference Manual
  210. was included in error.  The correct information is as
  211. follows:
  212.  
  213. Programs compiled with HighSpeed Pascal can be used from
  214. both command line and Workbench environments.  From a CLI
  215. or Shell, the current window is used for text input and
  216. output unless redirected with < or >.  To redirect output
  217. to the printer, for example, use "progname >PRT:".  This
  218. can also be used with Execute on the Program menu if you
  219. first compile your program to disk.
  220.  
  221. Command line arguments are accessed via the DOS unit's
  222. ParamCount and ParamStr functions.  CmdLinePtr.Len and
  223. CmdLinePtr.Ptr in System unit refer to the original program
  224. command line.
  225.  
  226.  
  227. When a program is run from Workbench by double-clicking its
  228. icon, all selected icons are passed as arguments.
  229. ParamCount gives the number of these whilst ParamStr
  230. returns their full pathnames.  You may use the Icon unit to
  231. access the icons and attached tooltypes if required.
  232.  
  233. An output window is opened automatically using the C string
  234. pointed to by WBWindowName in the System unit.  The
  235. WBenchMsg pointer, which is NIL when run from a CLI, points
  236. to the WBStartup message (defined in the Workbench unit).
  237. WBExitDelay is the number of milliseconds before the output
  238. window disappears after the program has finished.  It
  239. defaults to 2000, i.e. 2 seconds.
  240.  
  241.  
  242.     Debugging
  243.     ¯¯¯¯¯¯¯¯¯
  244. For Line Number Debugging to function, the program or unit
  245. name present in the source MUST match the actual file name.
  246. For example, the source file "example1.pas" should start
  247. with "program example1".  For this reason, spaces in file
  248. names are not recommended.
  249.  
  250. To activate a MonAm window, press Right Amiga and the
  251. window number.  This will adjust the display to reveal the
  252. window if it is currently hidden, then activate it.
  253.  
  254. Note that MonAm is not 'pure' for use with the AmigaDOS
  255. RESIDENT command.
  256.  
  257.  
  258. If you have any comments, suggestions or problems with this
  259. or any HiSoft product, please contact us at:
  260.  
  261.     HiSoft
  262.     The Old School
  263.     Greenfield
  264.     Bedford
  265.     MK45 5DE
  266.     U.K.
  267.  
  268.     Tel: +44 (0)525 718181
  269.     Fax: +44 (0)525 713716
  270.