home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / FLOPPIES / ATFLP131.ZIP / ATFLOPPY.DOC < prev   
Encoding:
Text File  |  1988-11-09  |  12.7 KB  |  300 lines

  1.  
  2.  
  3.  
  4.  
  5.           
  6.           
  7.           
  8.           
  9.                        ATFLOPPY High Density Drive Monitor
  10.                                    Version 1.31
  11.                                  By David Steele
  12.           
  13.           
  14.           
  15.           INTRODUCTION
  16.                   ATFLOPPY is a memory resident program that  monitors
  17.           write operations to  an AT high  density floppy disk  drive,
  18.           and warns the user if the disk being written to is formatted
  19.           for 360K.  The user is given the option to allow the  write,
  20.           or to  prevent the  write operation  by simulating  a  write
  21.           protect error.
  22.           
  23.           WHY BOTHER?
  24.                   ATFLOPPY  was  written  to  solve  a   compatibility
  25.           problem that exists  between the AT  1.2 Megabyte drive  and
  26.           360 Kilobyte  disks.   While the  AT high  density drive  is
  27.           capable of reading  and writing double  density disks,  both
  28.           the IBM AT Technical Reference  and DOS manual warn  against
  29.           transferring 360  K disks  between high  density drives  and
  30.           double density drives.  This restriction makes it  difficult
  31.           to transfer  data  between  XT's  and  AT's.    Fortunately,
  32.           problems can  be  avoided  if  you  are  careful  about  the
  33.           transfer procedure.  A little background is in order.
  34.                   Since the AT  drive is designed  to write 80  tracks
  35.           onto each side of a floppy disk, verses 40 tracks for a  360
  36.           K drive, the AT writes a narrower track than the 360 K drive
  37.           does.  If the  AT drive were  to write a track  on top of  a
  38.           track written  by  an  360  K drive,  all  of  the  original
  39.           information on that track may not be completely erased.   In
  40.           other words,  if you  use an  AT drive  to write  to a  disk
  41.           formatted on an XT, it is quite possible to lose all of  the
  42.           data on that disk.
  43.                   The way around this problem is to avoid using the AT
  44.           drive to write to  a disk that has  been written to with  an
  45.           XT.  When transferring data between an XT and an AT, use two
  46.           sets of disks. One set is always written by the AT and  read
  47.           by the XT,  and the other  is always written  by the XT  and
  48.           read by the AT.  As long each disk is written to by only one
  49.           drive, the  disk will  not  be corrupted.   An  even  better
  50.           solution is to install one of each type of disk drive in the
  51.           computer and  to always  use  the right  disk in  the  right
  52.           drive.
  53.                   The problem with  both of these  techniques is  that
  54.           they require a large amount of  discipline of the user.   It
  55.           is up to the operator to think about which disk is in  which
  56.           drive before copying  any data  to it.   Any mistakes  could
  57.           corrupt the disk.  What is needed is a safety check to  make
  58.           sure the user realizes that  a double density disk is  about
  59.           to be written to in a high density drive.
  60.                                  ATFLOPPY pg 1                        
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.                   This is where ATFLOPPY comes in.  This program  will
  72.           pop a window on the screen  asking if you are sure that  you
  73.           want to perform the write.  This window will appear  whether
  74.           you are doing a  copy from the DOS  prompt, or performing  a
  75.           file save from within an  application. If you indicate  that
  76.           you do  not  want  the  write  to  continue,  ATFLOPPY  will
  77.           simulate a write protect error on the floppy disk,  aborting
  78.           the operation.  In general,  if there is a possibility  that
  79.           the disk was ever  written to by a  360 K drive, then  abort
  80.           the write operation and transfer all of the data to a virgin
  81.           disk before proceeding.
  82.           
  83.           OPERATION
  84.                   For most  users,  the  program  is  invoked  by  the
  85.           command "ATFLOPPY", preferably  from the AUTOEXEC.BAT  file.
  86.           The program will  load itself  into memory,  and will  begin
  87.           monitoring the  'A'  drive.    The  first  time  that  write
  88.           operation is attempted on the 'A' drive, ATFLOPPY will check
  89.           to see if the disk is formatted  for 360K.  If it is ,  then
  90.           the program will sound a short beep and the following window
  91.           will appear on the screen:
  92.           
  93.                                      WARNING
  94.                            WRITING TO LOW DENSITY DISK
  95.                               IN HIGH DENSITY DRIVE
  96.                              ("W" to allow write or
  97.                              any other key to abort)
  98.           
  99.                   If the  "W"  key  is  pressed,  the  operation  will
  100.           proceed  normally.    If  any  other  key  is  pressed,  the
  101.           operation will fail with a write protect error.
  102.                   If the write is being  made to a high density  disk,
  103.           ATFLOPPY will not interfere with the write.
  104.                   ATFLOPPY  will  work   with  CGA,   EGA,  VGA,   and
  105.           monochrome graphics cards.  If  the screen is in a  graphics
  106.           mode that the  program does not  understand, instead of  the
  107.           message appearing on the screen, the speaker will beep three
  108.           times.  After that, the write proceeds normally.
  109.                   ATFLOPPY will  not allow  itself to  be loaded  into
  110.           memory more than  once.  If  you call the  program a  second
  111.           time, the  first  program  will be  modified  to  match  the
  112.           parameters of  the  second  call.   For  instance,  you  can
  113.           temporarily disable ATFLOPPY by typing "ATFLOPPY X".
  114.                   The test used to determine if the disk is  formatted
  115.           to 360  K is  the  one specified  by  the IBM  AT  Technical
  116.           Reference.  In short, the program attempts to read sector  0
  117.           and sector 17  on track  0.   If sector  0 can  be read  and
  118.           sector 17 can't, then the disk is assumed to be 360 K.
  119.                   Since the test  is only executed  at most only  once
  120.           every 6 seconds, the effect  on performance is minimal  (see
  121.           the 'T' option  below).
  122.           
  123.           
  124.           
  125.           
  126.                                  ATFLOPPY pg 2                        
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.           PROGRAM EXECUTION FORMAT
  138.           
  139.                   ATFLOPPY [ABXFQH?Tn]
  140.           
  141.           Where the optional command line parameters are as follows:
  142.           
  143.           ABX - Active High Capacity Floppy Drives
  144.                   These parameters tell  the program  which drive  (or
  145.           drives) is to  be checked for  360K disks.   If no drive  is
  146.           specified, the program assumes  that only drive  A is to  be
  147.           monitored.  If the option  'X' is specified, the program  is
  148.           disabled - no drives are monitored.
  149.                   On the standard AT, both drives A and B refer to the
  150.           same High Capacity drive.   With the standard  configuration
  151.           in effect, drive A can  be used under normal  circumstances,
  152.           and drive B can be used when the reminder is not desirable.
  153.           
  154.           F - Force loading
  155.                   Normally, the  program  will  check to  see  if  the
  156.           machine  is  an   AT  or   not  by   checking  the   machine
  157.           identification code  in high  ROM memory.   If  the  program
  158.           determines that the machine is not an AT, it will refuse  to
  159.           load.
  160.                   This switch will  cause the program  to load  itself
  161.           into memory without  doing any  safety checks  first.   This
  162.           option may  be necessary  for use  with some  AT  compatible
  163.           clones, or with some strange  combination like an XT with  a
  164.           high density drive.
  165.           
  166.           Q - Quiet Mode
  167.                   When this switch is  present, all non-error  startup
  168.           messages are suppressed.
  169.           
  170.           H? - Display Help Message
  171.                   The presence of either of these switches will  cause
  172.           the program to display a  short help message explaining  the
  173.           purpose of the program and the command line parameter usage.
  174.           After printing  the  help message,  the  program  terminates
  175.           normally without loading the resident code.
  176.           
  177.           Tn - Set Time Delay
  178.                   The first time that a write  is made to a disk in  a
  179.           monitored drive, ATFLOPPY will check  the disk and warn  the
  180.           user if  the disk  is  formatted for  360K.     After  that,
  181.           ATFLOPPY will  allow writes  (or continuously  return  write
  182.           protect  errors,  depending  on  the  user  input)   without
  183.           intervening until the  delay between two  writes is  greater
  184.           than a certain  threshold.   This is to  keep ATFLOPPY  from
  185.           seriously affecting the speed of disk accesses.
  186.                   The 'T' option  can be  used to  set this  threshold
  187.           time.  The number following the 'T' (no intervening  spaces)
  188.           is the number of timer ticks that must happen between writes
  189.           before ATFLOPPY does another test of the disk.  A timer tick
  190.           is approximately  1/18 second.   This  time should  be  long
  191.           enough so that the disk test and warning doesn't come up too
  192.                                  ATFLOPPY pg 3                        
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.           often, yet  short enough  that the  timer times  out when  a
  204.           floppy disk is changed (so  floppies are always tested  with
  205.           the first write).
  206.                   The default value for this delay is 108 timer ticks,
  207.           or about  six  seconds.   This  value was  selected  as  the
  208.           average amount  of  time required  for  the author  to  swap
  209.           floppy disks (as tattled by Fastback).
  210.           
  211.           
  212.           DISCLAIMER, LIMITATIONS, AND ORDERING INFORMATION
  213.                   This  program  is   provided  as   is  without   any
  214.           warrantee, expressed or  implied, including  but limited  to
  215.           fitness for a particular purpose.
  216.                   Feel free to evaluate, copy and distribute ATFLOPPY.
  217.           The only restriction under  these circumstances is that  the
  218.           files may not be  modified in any way.   If you decide  that
  219.           ATFLOPPYis a worthwhile piece of data insurance and continue
  220.           to use it, you  may purchase the software  by sending $5  to
  221.           the address listed below.
  222.           
  223.           
  224.           
  225.                                   David Steele
  226.                                450 Hillcrest Drive
  227.                              Cincinnati, Ohio 45215
  228.           
  229.                              Compuserve - 71521,1446
  230.           
  231.           
  232.           
  233.           
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.                                  ATFLOPPY pg 4                        
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.          ----------------end-of-author's-documentation---------------
  267.  
  268.                         Software Library Information:
  269.  
  270.                    This disk copy provided as a service of
  271.  
  272.                         The Public (Software) Library
  273.  
  274.          We are not the authors of this program, nor are we associated
  275.          with the author in any way other than as a distributor of the
  276.          program in accordance with the author's terms of distribution.
  277.  
  278.          Please direct shareware payments and specific questions about
  279.          this program to the author of the program, whose name appears
  280.          elsewhere in  this documentation. If you have trouble getting
  281.          in touch with the author,  we will do whatever we can to help
  282.          you with your questions. All programs have been tested and do
  283.          run.  To report problems,  please use the form that is in the
  284.          file PROBLEM.DOC on many of our disks or in other written for-
  285.          mat with screen printouts, if possible.  The P(s)L cannot de-
  286.          bug programs over the telephone.
  287.  
  288.          Disks in the P(s)L are updated monthly, so if you did not get
  289.          this disk  directly from the P(s)L,  you should be aware that
  290.          the files in this set may no  longer be the current versions.
  291.  
  292.          For a copy of the latest monthly software library newsletter
  293.          and a list of the 1,900+ disks in the library, call or write
  294.  
  295.                         The Public (Software) Library
  296.                               P.O.Box 35705 - F
  297.                            Houston, TX 77235-5705
  298.                                (713) 665-7017
  299.  
  300.