home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / EDITOR / SFGR.ARK / TECHNIC.NOT < prev    next >
Text File  |  1986-10-02  |  2KB  |  79 lines

  1.                               Technical Note:
  2.  
  3.   A)   For implimenting the input and output buffer the following method
  4.   may be employed for efficiency:
  5.  
  6.        1) A pointer should be  passed to the driver program that  points
  7.           to a contiguous output buffer stream. This is a data structure
  8.           of the entire output buffer. The output buffer description  is
  9.           printed when a switch is used on the SFGR. See  SFGR.DOC and a
  10.           compiler listing for further information.
  11.  
  12.        2) A pointer should also passed that corresponds to a  contiguous
  13.           input buffer stream. This pointer  points to the beginning  of
  14.           the data structure and places operator input in this field  as
  15.           described in the input buffer description of the SFGR listing.
  16.  
  17.        3) As output is being made to the screen, whatever  has input and
  18.           output attributes should be moved from the input buffer to the
  19.           corresponding place in the input buffer.
  20.  
  21.   B)   In order  to make as little disk reading as possible, some  extra
  22.   tables should be generated by the driver:
  23.  
  24.        1) A single call at the start of a program  should be made to the
  25.           driver to find the format file and see if it exists. All later
  26.           calls will exclude the filename. This call will also purge the
  27.           extra table area for time saving table generation.
  28.  
  29.        2) As  a screen format  is read or bypassed  for the  first  time
  30.           through the format member, the format name and position in the
  31.           format file should be recorded in a table for later reference.
  32.           This will make access for a screen much quicker by setting the
  33.           random record  number and displacement  for  access  and  then
  34.           reading the file sequentially.
  35. 
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. 
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.