home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / P_FOTRAN.LZH / READ.ME < prev    next >
Text File  |  1987-12-31  |  7KB  |  194 lines

  1. Prospero Fortran for GEM version mmg 2.13 for Atari ST - extra remarks
  2. ----------------------------------------------------------------------
  3.  
  4. Errata
  5. ------
  6.  
  7. AES-74
  8.  
  9. The  menu_create  function  has three parameters rather than two.  The
  10. correct definition is as follows :-
  11.  
  12.       INTEGER*4 FUNCTION menu_create(titles, items, about)
  13.       INTEGER*4 titles, items
  14.       CHARACTER*(*) about
  15.  
  16. The titles parameter specifies the total number of titles to be added,
  17. while  the  items  parameter specifies the total number of items to be
  18. added  -  these figures need not include the Desk title and associated
  19. items, which are added automatically.
  20.  
  21. AES-137
  22.  
  23. The example of the use of objc_create needs a call of objc_draw before
  24. calling form_do near the end, or the form will not be displayed.
  25.  
  26. Improvements and changes from version 1.1
  27. -----------------------------------------
  28.  
  29. The  Prospero Fortran package has been improved in various ways  since 
  30. version 1.1, notably as follows :-
  31.  
  32.      1.   The package now includes an integrated Workbench development 
  33.           environment,  from  which  the compiler,  linker  and  other 
  34.           programs are run. This is the program F-BENCH.PRG.
  35.  
  36.      2.   The  package  now includes a  symbolic  debugger,  the  file 
  37.           PROBE.PRG,  to allow the single stepping of programs at  the 
  38.           source language level, with interrogation of variables etc.
  39.  
  40.      3.   The  package now includes a cross-reference  generator  (the 
  41.           file  XREF.OVL,   which  can  only  be  executed  from   the 
  42.           Workbench).
  43.  
  44.      4.   The  PRL (Prospero Resident Library) is no longer  required, 
  45.           and  all  programs produced can now be  run  as  stand-alone 
  46.           applications.
  47.  
  48.      5.   The  compiler  accepts identifiers up to  31  characters  in 
  49.           length (unless the option to accept standard Fortran-77 only 
  50.           is   used),   and   other  lexical  enhancements   such   as 
  51.           underscores in identifiers and !-type comments.
  52.  
  53.      6.   The  GEM bindings have been rewritten to take  advantage  of 
  54.           the 31 character names, and several extra bindings have been 
  55.           added to make GEM programming easier.  The bindings are  now 
  56.           fully  documented in 500 pages.  It is now possible to write
  57.           Desk Accessories.
  58.  
  59.      7.   Several  new library procedures have been  added,  including 
  60.           routines  to  access the BIOS,  XBIOS and LINE  A  routines, 
  61.           and to follow pointers
  62.  
  63.  
  64. Additional sample programs
  65. --------------------------
  66.  
  67. This issue includes some source (.FOR) files containing sample Fortran
  68. programs not listed in the manual.
  69.  
  70.  
  71. 1.  MAZES.FOR
  72.  
  73. This program will print out a different maze every time it is run (and
  74. guarantees only one path through).   It  illustrates  use  of  several
  75. Fortran  features:   logical  and  character  variables  and   arrays,
  76. statement functions, DATA statements with character  constants,  Block
  77. IFs, computed GOTOs, and the random number generator (RANDOM).  It  is
  78. not a very "typical" example of Fortran coding  style,  but  indicates
  79. that Fortran can be used to solve logical as well as  number-crunching
  80. problems.
  81.  
  82.  
  83. 2.  PRINTF.FOR
  84.  
  85. This is a utility program to copy a file of variable-length  formatted
  86. records from disk to the printer, when the  first  character  of  each
  87. record will be interpreted  as  carriage-control  information  in  the
  88. normal  Fortran  manner.   The  coding  includes  examples  of   using
  89. CHARACTER  variables  and  substrings,  PARAMETER   statements,   OPEN
  90. statements, and the GETCOM procedure.
  91.  
  92.  
  93. 3.  TOSDEMO.FOR
  94.  
  95. This program demonstrates use of the supplied SYS routine  for  making
  96. calls to the TOS executive (see User Manual, Part III, section 8.7.1).
  97. Two calls are made, one to output a string to standard output, and one
  98. to diskover the operating system version number.  For further details,
  99. refer to the commented source.
  100.  
  101.  
  102. 4.  GEMDEMO.FOR
  103.  
  104. This is a simple program to illustrate use of the supplied GEM VDI and
  105. AES interface routines (see User Manual, Volumes 2 and 3). The program
  106. displays an "alert", which can be clicked with the mouse. It then uses
  107. GEM AES calls to set up a window,  and  VDI  calls to display a graph,
  108. clipped to the window.
  109.  
  110. 5.  MENUDEMO.FOR
  111.  
  112. A demonstration of how the additional GEM bindings can be used to  set 
  113. up and use a menu bar in a Prospero Fortran program,  without the  use 
  114. of a resource editor.
  115.  
  116. 6.  DIALDEMO.FOR
  117.  
  118. A  simple  demonstration of how dialog boxes can be created  and  used 
  119. without the need for a resource editor
  120.  
  121. 7.  DOODLE.FOR
  122.  
  123. A  complete  (though very simple) GEM application written  in  Prospero 
  124. Fortran,  demonstrating how to handle menus,  windows and redraws, and 
  125. various other aspects of GEM AES and VDI.  The code can be used as the 
  126. basis for other GEM applications.
  127.  
  128. 8.  CLOCKDA.FOR
  129.  
  130. A simple desk accessory  which  displays  an analog clock in a window.
  131. After  linking,  the  .PRG  file produced should be renamed .ACC,  and
  132. copied to a startup disk.  When the machine is reset and started using
  133. this startup disk,  the desk accessory will install itself in the Desk
  134. menu ready for use.
  135.  
  136. Note.  Desk accessories are difficult to debug,  and if they go wrong
  137. may cause the machine to reboot. A desk accessory should therefore not
  138. be installed on a hard disk until it is known to be working, or it may
  139. be difficult to remove! It is usually best to write the accessory as a
  140. stand-alone application while it is still being developed, and convert
  141. it to an accessory once it is debugged.
  142.  
  143. 9.  LINEA.FOR
  144.  
  145. A very simple demonstration of some of the capabilities of the Line  A 
  146. routines,  which  give  access  to the  Atari's  high  speed  graphics 
  147. routines.
  148.  
  149. 10. XBIOS.FOR
  150.  
  151. A  simple  example of how to call the Atari's XBIOS  operating  system 
  152. routines.
  153.  
  154.  
  155. A problem with zero-length text files
  156. -------------------------------------
  157.  
  158. End-of-file is not signalled on text files of zero  length.   This  is
  159. due to a problem in GEMDOS.  In particular,  therefore,  the  compiler
  160. and Workbench cannot handle properly a source file of zero length.
  161.  
  162. Non-text files of zero length are handled properly.
  163.  
  164.  
  165.  
  166. Integrity of issued files
  167. -------------------------
  168.  
  169. The Prospero Fortran software is normally supplied on  write-protected
  170. disks.  Do not write-permit the master copy  or  execute the Workbench
  171. from it. Copy the files from the supplied disks onto your own disk(s).
  172. You may then verify that the working copy is correct (see below),  and
  173. go  on  to edit, compile, link, and run your own programs as described
  174. in Part I of the User Manual.
  175.  
  176.  
  177.  
  178. Checking validity of files
  179. __________________________
  180.  
  181. The program FCHECK.PRG is supplied to guard against copying errors  in
  182. the issued software.  It asks for  a  directory  name,  which  may  be
  183. simply a disk drive such as B:, and sumchecks all the  files  in  that
  184. directory whose names it recognises.   These  sumchecks  are  compared
  185. against information recorded within itself (the correct sumchecks) and
  186. either "OK" or an error message is given, for each file.
  187.  
  188. To run the program, double-click on the FCHECK.PRG icon,  and reply to
  189. the prompt with the desired directory name (e.g. A:).
  190.  
  191.  
  192.  
  193.  
  194.