home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / FLOPPIES / ANAD201.ZIP / ANADISK.DOC < prev    next >
Encoding:
Text File  |  1989-12-10  |  96.6 KB  |  2,189 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                                    AnaDisk
  10.  
  11.  
  12.                         The Compleat Diskette Utility
  13.  
  14.                         Version 2.01, November, 1989
  15.                 Copyright 1989, Sydex.  All Rights Reserved.
  16.  
  17.  
  18.                                    NOTICE
  19.  
  20.            THIS IS NOT FREE  SOFTWARE!   If you  paid    a  "public
  21.            domain"    vendor  for  this program,   you paid for the
  22.            service of copying the program,  and not for the program
  23.            itself.    Rest  assured  that  nothing ever gets to the
  24.            originators of this product from such a sale.   You  may
  25.            evaluate  this product,  but if you make use of it,  you
  26.            must register your copy.
  27.  
  28.            We offer several inducements  to  you  for  registering.
  29.            First  of  all,  you receive the most up-to-date copy of
  30.            the program that we have -- and we do update the product
  31.            on a regular  basis.    You  also  receive  support  for
  32.            AnaDisk  --  which can be quite valuable at times.   You
  33.            also receive  complete  printed  documentation  for  the
  34.            product. A "do-it-yourself" update service is offered to
  35.            registered users through our own BBS.   And finally,  we
  36.            include an evaluation  package  of  some  of  our  other
  37.            software products.   Make no mistake, however--this is a
  38.            fully functional version of AnaDisk and  not  "crippled"
  39.            in  any  way.   As a final inducement to you--the regis-
  40.            tered package does not contain the advertising copy...
  41.  
  42.  
  43.                            REGISTRATION INFORMATION
  44.  
  45.            The  non-commercial  single-user  registration  fee  for
  46.            AnaDisk  is  $25.00 US.   The commercial and multisystem
  47.            site fee for AnaDisk  is  $150.00.    Users  outside  of
  48.            Canada  and  the  United  States should include an addi-
  49.            tional $5.00 for international airmail.   We can  accept
  50.            payment only in U.S. funds.
  51.  
  52.            Send a check or company P.O.  for the appropriate amount
  53.            to:
  54.  
  55.                                     Sydex
  56.                             153 North Murphy Ave.
  57.                              Sunnyvale, CA 94086
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.            We can also accept VISA or Master Charge; contact us for
  68.            details.   On corporate orders,  our terms are  normally
  69.            net  30.   Please indicate what product you are ordering
  70.            and if you have a requirement for 3.5" media.   We  nor-
  71.            mally  ship 5.25" 360K diskettes,  but will furnish 3.5"
  72.            720K media upon request.
  73.  
  74.            If you are a registered user of this product and  desire
  75.            an  update,  please  send $4.00 for handling and we will
  76.            ship you an up-to-date  copy.    Please  add  $3.00  for
  77.            printed documentation to cover duplication costs.
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                               Table of Contents
  128.  
  129.  
  130.         Overview.....................................................1
  131.  
  132.         Installing AnaDisk...........................................1
  133.  
  134.         Running AnaDisk..............................................4
  135.          Scan Operation..............................................8
  136.          Edit Sectors Operation.....................................10
  137.          Examine Files..............................................16
  138.          Search.....................................................20
  139.          Copy Diskette..............................................24
  140.          Repair.....................................................26
  141.          FAT Editor.................................................27
  142.          Custom Format Design.......................................29
  143.          Dump Operation.............................................31
  144.          In Conclusion..............................................32
  145.  
  146.         Other Sydex Products........................................33
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.                              DISTRIBUTION NOTICE
  156.  
  157.            This  is  "user-supported"  software.    You  are hereby
  158.            granted a license by Sydex to distribute this evaluation
  159.            copy of AnaDisk and its documentation,  subject  to  the
  160.            following conditions:
  161.  
  162.            1.   AnaDisk may be distributed freely without charge in
  163.                 evaluation form only.
  164.  
  165.            2.   AnaDisk may not be sold, licensed, or a fee charged
  166.                 for  its  use.    If a fee is charged in connection
  167.                 with AnaDisk,  it must cover the cost of copying or
  168.                 dissemination  only.   Such charges must be clearly
  169.                 identified as such by the originating party.  Under
  170.                 no circumstances may the purchaser be given the im-
  171.                 pression that he is buying AnaDisk itself.
  172.  
  173.            3.   AnaDisk must be presented as a complete  unit,  in-
  174.                 cluding  this  documentation.   Neither AnaDisk nor
  175.                 its documentation may be amended or altered in  any
  176.                 way.
  177.  
  178.            4.   By granting you the right to distribute the evalua-
  179.                 tion  form of AnaDisk,  you do not become the owner
  180.                 of AnaDisk in any form.
  181.  
  182.            Any other use, distribution or representation of AnaDisk
  183.            is expressly forbidden without the  written  consent  of
  184.            Sydex.
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.       --------------------
  202.       CP/M, CP/M-80 and CP/M 2.2 are trademarks of Digital Research.
  203.       MS-DOS is a trademark of Microsoft.   IBM PC, PC-XT and PC-AT are
  204.       trademarks of International Business Machines.   CompatiCard is a
  205.       trademark of MicroSolutions, Inc.
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.       Overview
  216.  
  217.       AnaDisk  is  a utility for examining,  editing and analyzing dis-
  218.       kettes.  It performs the following functions:
  219.  
  220.            *    Analyze diskettes for content  and  consistency.    The
  221.                 density  and  format  of  diskettes  are  automatically
  222.                 determined;  any format changes  or  media  errors  are
  223.                 noted.   In the case of DOS diskettes,  checks are made
  224.                 to ensure that a diskette complies with  generally  ac-
  225.                 cepted DOS implementation practice.
  226.  
  227.            *    Search  diskettes  for  text.   Both case-sensitive and
  228.                 case-insensitive searches may be performed,  as well as
  229.                 search keys with "wild card" or "don't care" positions.
  230.                 Both the active data areas,  as well as the inactive or
  231.                 erased data areas may be searched.
  232.  
  233.            *    Examine and print data on a physical sector, as well as
  234.                 on a file basis.   Either ASCII or hexadecimal displays
  235.                 may be used.
  236.  
  237.            *    Copy a diskette without regard to format or type.
  238.  
  239.            *    Modify data on a diskette.
  240.  
  241.            *    Repair DOS diskettes containing data errors.
  242.  
  243.            *    Format a diskette according to custom specifications.
  244.  
  245.            *    Copy an area of a diskette to a DOS file.
  246.  
  247.       AnaDisk  features a menu-driven "windowed" presentation.   Exten-
  248.       sive context-sensitive on-line help is available.
  249.  
  250.       AnaDisk requires an IBM PC or PS/2 compatible computer for opera-
  251.       tion.  Certain computers, such as the Tandy 1000, 2000 or the IBM
  252.       PC Jr., are not sufficiently compatible to support AnaDisk.
  253.  
  254.       At least 512K of memory and  a  hard  disk  are  recommended  for
  255.       AnaDisk operation, although some function may be obtained with as
  256.       little as 384K on a diskette-only system.
  257.  
  258.  
  259.       Installing AnaDisk
  260.  
  261.       The  software  for  AnaDisk  is  contained in two programs.   The
  262.       first,  the installation program,  called ADINSTAL,  is  used  to
  263.       determine  the diskette configuration of the computer being used.
  264.       This installation program modifies  the  second  part,  the  file
  265.       ANADISK.EXE, with the diskette configuration information.
  266.  
  267.  
  268.                                    Page 1
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.       +-----------------------------------------------------------------------+
  276.                        AnaDisk INSTALLATION PROGRAM Ver. 2.01
  277.  
  278.                     Copyright 1989, Sydex.  All Rights Reserved.
  279.  
  280.  
  281.       This program installs AnaDisk.
  282.  
  283.       Installation is a one-time task; you should not need to re-run this
  284.       program unless you have changed your equipment configuration.
  285.  
  286.       Installation may be performed with a single diskette, or any combination
  287.       of diskettes and hard disks.  The most common installation is from a dis-
  288.       kette to a hard disk.  During this installation, you will be asked to
  289.       provide a copy of the AnaDisk files.  If you don't have these files,
  290.       press ESCape to exit now.  This installation procedure selects diskette
  291.       drive types and processor type.  In addition, the installed AnaDisk is
  292.       copied to a destination drive of your choice.
  293.  
  294.  
  295.  
  296.       If you do not wish to install AnaDisk at this time, press ESCape.  Press
  297.       any other key to continue...
  298.  
  299.       +-----------------------------------------------------------------------+
  300.  
  301.                       Figure 1: ADINSTAL Opening Screen
  302.  
  303.       AnaDisk  must  be  installed  prior to use.   After installation,
  304.       AnaDisk need not be re-installed unless the configuration of  the
  305.       computer being used is changed.   It is possible to re-install an
  306.       already installed copy of AnaDisk.
  307.  
  308.       To install AnaDisk, first load DOS.  Insert the AnaDisk distribu-
  309.       tion diskette into diskette drive A:,  then enter  the  following
  310.       command:
  311.  
  312.                 A:ADINSTAL                and press the ENTER key.
  313.  
  314.       The display in Figure 1 will appear.  Press the ENTER key to con-
  315.       tinue with the installation process.
  316.  
  317.       Prompts  will  appear for the source and destination disk drives.
  318.       AnaDisk may be re-installed over itself, if need be.   Otherwise,
  319.       the  source  copy  of AnaDisk is not modified by the installation
  320.       software.
  321.  
  322.       After AnaDisk has been read from the specified source drive,  the
  323.       display in Figure 2 appears.  ADINSTAL groups PC-Compatibles into
  324.       those  having a PC XT-type of architecture,  or those having a PC
  325.       AT-type.   However,  this division  is  not  always  clear,  par-
  326.       ticularly  in  the  case  of  an XT-class PC with an add-in high-
  327.  
  328.                                    Page 2
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.       density diskette controller.   These are provided by a number  of
  336.       vendors  for  enhancement  purposes,  and their presence requires
  337.       that the PC be declared as an AT-style computer.
  338.  
  339.       +-----------------------------------------------------------------------+
  340.  
  341.       Although your computer may be an XT-type system, you may wish to force it
  342.       to be treated as an AT-class machine if you have a high-density diskette
  343.       controller.
  344.  
  345.       On the other hand, if you are using a Toshiba 3100, you probably need to
  346.       indicate that it's an XT-type machine to get the diskette drives to
  347.       operate correctly.
  348.  
  349.       You have a PC AT, IBM PS/2 or compatible.
  350.  
  351.  
  352.       Is this correct? (Y or N)
  353.  
  354.  
  355.       +-----------------------------------------------------------------------+
  356.                     Figure 2: ADINSTAL Computer Selection
  357.  
  358.       If permitted,  ADINSTAL will attempt to  determine  the  diskette
  359.       configuration of the computer.  In any case, a display similar to
  360.       the following screen (Figure 3) is shown:
  361.  
  362.  
  363.                                DISKETTE CONFIGURATION
  364.  
  365.       The following diskettes are present on your computer:
  366.  
  367.  
  368.            NO. DRIVE   UNIT   ADAPTER     DRIVE TYPE       STEP RATE
  369.  
  370.  
  371.             1.   A:     0     PRIMARY    1.2M 5.25"           6 msec.
  372.             2.   B:     1     PRIMARY    1.44M 3.5"           6 msec.
  373.             3.   (NONE DEFINED)
  374.             4.   (NONE DEFINED)
  375.             5.   (NONE DEFINED)
  376.             6.   (NONE DEFINED)
  377.             7.   (NONE DEFINED)
  378.             8.   (NONE DEFINED)
  379.  
  380.             Are there any changes? (Y or N)
  381.  
  382.       +-----------------------------------------------------------------------+
  383.  
  384.                   Figure 3: Diskette Configuration Display
  385.  
  386.  
  387.  
  388.                                    Page 3
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.       Information  contained  on  this display may be changed until the
  396.       data reflects the actual  configuration  of  the  host  computer.
  397.       DRIVE is used by AnaDisk to refer to a diskette drive.   While it
  398.       is advisable that the drive letter be the same as  that  used  by
  399.       DOS to refer to that drive,  any letter can be used.  UNIT refers
  400.       to the physical unit number of a drive.   Some diskette  adapters
  401.       are  able  to  access  only  two drives,  physical units 0 and 1.
  402.       Other adapters, particularly those of the XT variety,  can access
  403.       up to four drives, physical units 0, 1, 2 and 3.
  404.  
  405.       If a second diskette adapter has been added to the host computer,
  406.       it  will be necessary to configure units attached to that adapter
  407.       as Secondary.   Note that,  on secondary adapters,  the  physical
  408.       unit numbering starts over again with unit 0.   It will be neces-
  409.       sary to specify the base I/O port address of this  adapter;  most
  410.       comon adapters use 0370 as the secondary base address.   The dis-
  411.       kette adapter manufacturer's reference material should be checked
  412.       to verify this, however.
  413.  
  414.       The drive  step  rate  refers  to  how  quickly  the  positioning
  415.       mechanism  in  a  drive is able to move the read/write heads from
  416.       cylinder to cylinder.   In almost all instances of 5.25"  drives,
  417.       the  default of 6 milliseconds will be satisfactory.   This value
  418.       sometimes needs to changed for some  of  the  older  8"  diskette
  419.       drives.
  420.  
  421.       AnaDisk  does not explicitly support dual-speed 5.25" drives.   A
  422.       dual-speed drive is one that rotates the media  at  300  RPM  for
  423.       low-density recording and 360 RPM for high-density recording.  If
  424.       it  is desired to use a dual-speed drive,  it must be declared as
  425.       two separate drives,  a high-density  drive,  and  a  low-density
  426.       drive, using two different drive letters.
  427.  
  428.       After  the diskette drives have been configured for AnaDisk,  the
  429.       installed program file is written to  the  specified  destination
  430.       path and drive, and AnaDisk is ready for use.
  431.  
  432.  
  433.       Running AnaDisk
  434.  
  435.       To start AnaDisk, simply enter the following at the DOS prompt:
  436.  
  437.                 ANADISK
  438.  
  439.       and press the ENTER key.   AnaDisk will normally adjust its video
  440.       display routines to make use  of  the  display  adapter  in  use.
  441.       However,  if  the display adapter is of a color type and the dis-
  442.       play monitor itself is monochrome,  it will be necessary to start
  443.       AnaDisk with the following command to get a readable display:
  444.  
  445.                 ANADISK  M
  446.  
  447.  
  448.                                    Page 4
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.       AnaDisk  has  many displays and functions,  but there are certain
  456.       keys which always have the same effect during AnaDisk operation:
  457.  
  458.            F1   is the Help key.  It may be pressed any time additional
  459.                 information is required.   The help displays in AnaDisk
  460.                 can be characterized as being Context-Sensitive.   That
  461.                 is,  only information relevant to the current operation
  462.                 is presented.   For example,  if AnaDisk were prompting
  463.                 for a file  name,  F1  would  produce  a  display  that
  464.                 presented information about the application of the file
  465.                 being requested.
  466.  
  467.            ESCape  is  the Exit key.   It may be pressed at any time to
  468.                 terminate the operation in progress.   Unless otherwise
  469.                 noted,  pressing ESCape will cause AnaDisk to return to
  470.                 the display that preceded the current one.   If  ESCape
  471.                 is  pressed a sufficient number of times,  AnaDisk will
  472.                 exit to DOS.
  473.  
  474.       When an abnormal condition has been detected in AnaDisk,  a small
  475.       window  describing  the  condition  will appear.   This window is
  476.       referred to as the "Alert Box":
  477.  
  478.                        ╔════════<>^v to Move══════════╗
  479.                        ║ Drive A: is not ready.       ║
  480.                        ║ Please correct and press     ║
  481.                        ║ any key to continue.         ║
  482.                        ║                              ║
  483.                        ║                              ║
  484.                        ╚══════════════════════════════╝
  485.  
  486.       The Alert Box may be moved around the screen by means of the cur-
  487.       sor keys.   Up- and down-cursor move the Alert Box up or down one
  488.       character  row,  respectively.    Right-  and  left-cursor have a
  489.       similar effect.   The Home key moves the Alert Box to  the  upper
  490.       left corner of the display; End moves it to the lower left.  PgUp
  491.       moves  the Alert Box to the upper right corner of the display and
  492.       PgDn moves it to the lower right.
  493.  
  494.       After AnaDisk is loaded by DOS,  the following display (Figure 4)
  495.       appears:
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.                                    Page 5
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.       +-----------------------------------------------------------------------+
  516.        ESC to Exit                     AnaDisk 2.01                 F1 for Help
  517.  
  518.  
  519.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  520.       ║                                  ║║ Select - ESCape to quit, F1, help ║
  521.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  522.       ╔═══════════════════════════════════════════════════════════════════════╗
  523.       ║                                                                       ║
  524.       ║                              MAIN MENU                                ║
  525.       ║                                                                       ║
  526.       ║                                                                       ║
  527.       ║       Select function with cursor keys.  ENTER (<┘) confirms          ║
  528.       ║       your choice and goes to next menu.  F1 gets help, ESCape exits  ║
  529.       ║       to DOS.                                                         ║
  530.       ║                                                                       ║
  531.       ║                                                                       ║
  532.       ║      SCAN  SECTOR  FILE  SEARCH  COPY  REPAIR  FAT  FORMAT  DUMP      ║
  533.       ║                                                                       ║
  534.       ║                                                                       ║
  535.       ║                                                                       ║
  536.       ║                                                                       ║
  537.       ╚═══════════════════════════════════════════════════════════════════════╝
  538.       +-----------------------------------------------------------------------+
  539.  
  540.                       Figure 4: AnaDisk Opening Display
  541.  
  542.       If the ESCape key is pressed,  AnaDisk exits to DOS.   Otherwise,
  543.       the cursor right- and left- arrow keys are used  to  position  to
  544.       highlight,  and  thereby select,  the desired function.   After a
  545.       function has been selected,  pressing the ENTER key will cause  a
  546.       menu specific to the particular function to be displayed.
  547.  
  548.       The functions performed by AnaDisk are as follows:
  549.  
  550.            The  Scan  function  reads an entire diskette and points out
  551.                 any problems or inconsistencies.  A quick look is taken
  552.                 at all of the files on the diskette and checks are made
  553.                 to ensure that file contents are  consistent  with  the
  554.                 file type.   A "log" of the activity can be printed, if
  555.                 desired.
  556.  
  557.            Sectors provides a diskette editing function, operating on a
  558.                 sector-by-sector basis.   Diskette data can be printed,
  559.                 displayed or changed.
  560.  
  561.            Files  provides a facility to examine file data on the basis
  562.                 of file name,  rather than physical diskette sector ad-
  563.                 dresses.    It is possible to "walk" the directory tree
  564.                 and print or display file data.
  565.  
  566.  
  567.  
  568.                                    Page 6
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.            Search provides a facility to search for data on a diskette.
  576.                 A number of search key  values  can  be  specified  and
  577.                 these  may  contain "wild-card" or "don't care" values.
  578.                 The results of the search can be displayed or printed.
  579.  
  580.            Copy provides a disk-to-disk copying  function.    A  "true"
  581.                 copy  of  an  entire  diskette  is  produced within the
  582.                 limits of the PC diskette adapter hardware.   It is not
  583.                 necessary to pre-format the target diskette,  but it is
  584.                 advisable to write-protect the source diskette.
  585.  
  586.            Repair scans a DOS diskette for data errors and attempts  to
  587.                 mitigate  their  effect by "moving" the contents of er-
  588.                 roneous sectors to other areas of the diskette.
  589.  
  590.            FAT provides a DOS File Allocation Table editor.
  591.  
  592.            Format supplies a  custom  diskette  formatting  capability.
  593.                 This is a feature intended for advanced users.
  594.  
  595.            Dump  copies  specified  areas  of a diskette to a DOS file.
  596.                 The diskette being copied need not be a DOS diskette.
  597.  
  598.       As is the case throughout AnaDisk, help may be obtained by press-
  599.       ing F1.
  600.  
  601.       +-----------------------------------------------------------------------+
  602.       ESC to Exit                      AnaDisk 2.01                 F1 for Help
  603.  
  604.  
  605.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  606.       ║                                  ║║ Select - ESCape to quit, F1, help ║
  607.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  608.       ╔═══════════════════════════════════════════════════════════════════════╗
  609.       ║                                                                       ║
  610.       ║                            Scan DISKETTE                              ║
  611.       ║                                                                       ║
  612.       ║ Select choices with cursor keys.  Move between lines with up, down    ║
  613.       ║ keys.  ENTER (<┘) begins execution.  F1 gets help, ESCape             ║
  614.       ║ goes back to the opening menu.                                        ║
  615.       ║                                                                       ║
  616.       ║          Diskette Unit                           A:  B:               ║
  617.       ║                                                                       ║
  618.       ║          Printer output                               NO YES          ║
  619.       ║                                                                       ║
  620.       ║          Pause after anomalies                        NO YES          ║
  621.       ║                                                                       ║
  622.       ╚═══════════════════════════════════════════════════════════════════════╝
  623.       +-----------------------------------------------------------------------+
  624.  
  625.                              Figure 5: Scan Menu
  626.  
  627.  
  628.                                    Page 7
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.       Scan Operation
  637.  
  638.       When the Scan function is selected, the display shown in Figure 5
  639.       appears.  The choice for each item in the menu can be selected by
  640.       positioning the highlighted area using the right- and left-cursor
  641.       keys.  The up- and down-cursor keys select the desired menu item.
  642.       When the desired selections have been  made,  the  ENTER  key  is
  643.       pressed to begin processing Scan mode.
  644.  
  645.       The  Scan  function reads an entire diskette and attempts to dis-
  646.       cover data errors or inconsistencies.   AnaDisk first  determines
  647.       the  layout  of cylinders,  tracks and sectors,  then attempts to
  648.       classify the diskette according to operating system type.  If the
  649.       diskette appears to have a DOS format,  a validity check is  made
  650.       of the File Allocation Table (FAT).  Finally, every sector of the
  651.       diskette is read, and errors and format changes noted.
  652.  
  653.  
  654.       +-----------------------------------------------------------------------+
  655.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  656.       ├┴┴╫┴┴┴┴╫┴┴┴┴╫^┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴
  657.       0  5   10   15   20   25  30   35  40   45   50  55   60   65   70   75
  658.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  659.       ║  A: Cyl 16 Side 1 Cluster 144    ║║ Working...                        ║
  660.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  661.       ╔════════════ GENERAL ═════════════╗╔════════════ ANALYSIS  ════════════╗
  662.       ║                                  ║║        Track 8, Side 0            ║
  663.       ║  Double-Sided  Double Density    ║║   Sector 4, data error            ║
  664.       ║  Interleave is 1:1               ║║                                   ║
  665.       ║  Sector size is 512 bytes        ║║                                   ║
  666.       ║  Side 0 sector ID's 1 - 9        ║║                                   ║
  667.       ║  Side 1 sector ID's 1 - 9        ║║                                   ║
  668.       ║                                  ║║                                   ║
  669.       ║  DOS 5¼" 360K Format             ║║                                   ║
  670.       ║                                  ║║                                   ║
  671.       ║                                  ║║                                   ║
  672.       ║__________________________________║║                                   ║
  673.       ║   FILE ALLOCATION TABLE (FAT)    ║║                                   ║
  674.       ║                                  ║║                                   ║
  675.       ║   Sectors Used:      540 ( 270K) ║║                                   ║
  676.       ║   Sectors Reserved:    0 (   0K) ║║                                   ║
  677.       ║   Sectors Flawed:     30 (  15K) ║║                                   ║
  678.       ║   Sectors Free:      138 (  69K) ║║                                   ║
  679.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  680.       +-----------------------------------------------------------------------+
  681.  
  682.                  Figure 6: Scan function operating display.
  683.  
  684.  
  685.  
  686.  
  687.  
  688.                                    Page 8
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.       A  normal  Scan  function operating display is shown in Figure 6.
  696.       The "thermometer bar" across the  top  of  the  screen  indicates
  697.       where AnaDisk is positioned on the diskette.   The small arrow on
  698.       the display points down if the first side of a diskette is  being
  699.       accessed,  or up for the second side.   In addition,  position is
  700.       also shown in the small window in the upper-left part of the dis-
  701.       play.  A progress message is displayed in the small window in the
  702.       upper-right part of the display.
  703.  
  704.       The window labeled GENERAL contains information about the  static
  705.       or unchanging aspects of the diskette under examination,  such as
  706.       number of sectors per track and File  Allocation  Table  informa-
  707.       tion.   The window labeled ANALYSIS describes events of a dynamic
  708.       nature,  such as read errors and anomalies in diskette structure.
  709.       This window uses a scrolling display;  that is, the oldest infor-
  710.       mation is replaced by the newest.
  711.  
  712.       For DOS diskettes with readable file allocation information,  the
  713.       lower  part  of the GENERAL window presents the data contained in
  714.       the File Allocation Table (FAT) on the diskette.
  715.  
  716.       If Pause after anomalies on the Scan menu is selected,  some  in-
  717.       formation  is  presented  by  opening  an additional window which
  718.       overlays the display and temporarily suspends  AnaDisk  operation
  719.       until  acknowledged from the keyboard.   If Pause after anomalies
  720.       is not selected, important information is written in the ANALYSIS
  721.       window, but operation of AnaDisk is not suspended.
  722.  
  723.       If Printer output is selected, a running log of analysis informa-
  724.       tion is printed on the default printer (the DOS PRN: device).
  725.  
  726.  
  727.                        ╔═══════════════════════════════════════╗
  728.                        ║        BOOT SECTOR INFORMATION        ║
  729.                        ║                                       ║
  730.                        ║ System Name.................IBM  3.3  ║
  731.                        ║ Bytes/Sector................512       ║
  732.                        ║ Sectors/Cluster.............2         ║
  733.                        ║ Reserved Sectors............1         ║
  734.                        ║ Number of FATs..............2         ║
  735.                        ║ Root Directory Entries......112       ║
  736.                        ║ Sectors on Diskette.........720       ║
  737.                        ║ Media Byte..................fd        ║
  738.                        ║ Sectors/FAT.................2         ║
  739.                        ║ Sectors/Track...............9         ║
  740.                        ║ Number of Sides.............2         ║
  741.                        ║ Other Reserved Sectors......0         ║
  742.                        ╚═══════════════════════════════════════╝
  743.  
  744.                 Figure 7: Scan function Boot Sector display.
  745.  
  746.  
  747.  
  748.                                    Page 9
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.       One of the items of information that AnaDisk displays during Scan
  756.       operation is shown in Figure 7.  This shows information contained
  757.       in the first sector of a DOS diskette, which will be used in per-
  758.       forming file structure analysis of the diskette.
  759.  
  760.       If the number of sides declared by the DOS Boot Sector  does  not
  761.       match  that  actually  detected by AnaDisk,  one of the following
  762.       Alert Box messages appears:
  763.  
  764.            This is a double-sided DOS        This is a single-sided DOS
  765.            format, but only one side         format, but both sides
  766.            has data.  Press any key          have data.  Do you want to
  767.            to resume...                      check both sides (Y or N)?
  768.  
  769.       The Scan function can detect media errors.   A few  of  the  more
  770.       common error messages displayed in the ANALYSIS window are:
  771.  
  772.                                  Data Error
  773.  
  774.       Meaning:  Information has been read from the diskette, but inter-
  775.       nal  checks  made by the controller indicate that the data trans-
  776.       ferred is suspect.
  777.  
  778.                             ID but no Data Found
  779.  
  780.       Meaning:  The marker identifying the beginning  of  a  sector  is
  781.       present, but not the marker that signifies that data follows.  No
  782.       data is transferred by the diskette controller.
  783.  
  784.                                Sector Missing
  785.                               Gap in Addresses
  786.  
  787.       Meaning:   In DOS diskettes,  sectors are numbered consecutively.
  788.       This message indicates that one or  more  sectors  could  not  be
  789.       found in the normal numbering sequence.  This message can also be
  790.       indicative of some copy-protection schemes.
  791.  
  792.                               No Data on Track
  793.  
  794.       Meaning:    The diskette track may be blank or be written in some
  795.       other recording mode,  such as single-density or those modes used
  796.       by  Apple  or  Commodore.   It is not possible to read this track
  797.       with the standard PC-style diskette adapter.
  798.  
  799.  
  800.       Edit Sectors Operation
  801.  
  802.       When the Edit Sectors operation is selected from the  Main  Menu,
  803.       the display shown in Figure 8 appears.
  804.  
  805.  
  806.  
  807.  
  808.                                    Page 10
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.       The Edit Sectors function provides a facility to inspect,  change
  816.       and print diskette data on a sector-by-sector    basis,  as  con-
  817.       trasted  with Examine Files,  which implements inspection of data
  818.       within a specified DOS file.
  819.  
  820.  
  821.       +-----------------------------------------------------------------------+
  822.       ESC to Exit                      AnaDisk 2.01                 F1 for Help
  823.  
  824.  
  825.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  826.       ║                                  ║║ Select - ESCape to quit, F1, help ║
  827.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  828.       ╔═══════════════════════════════════════════════════════════════════════╗
  829.       ║                                                                       ║
  830.       ║                             EDIT SECTORS                              ║
  831.       ║                                                                       ║
  832.       ║     Select choice with cursor keys.  ENTER (<┘) begins                ║
  833.       ║     execution.  F1 gets help, ESCape goes back to the opening menu.   ║
  834.       ║                                                                       ║
  835.       ║                                                                       ║
  836.       ║                                                                       ║
  837.       ║          Diskette Unit                           A:  B:               ║
  838.       ║                                                                       ║
  839.       ║                                                                       ║
  840.       ╚═══════════════════════════════════════════════════════════════════════╝
  841.       +-----------------------------------------------------------------------+
  842.                          Figure 8: Edit Sectors menu
  843.  
  844.       The Edit Sectors sub-menu provides for the selection  of  a  dis-
  845.       kette unit.
  846.  
  847.       Like  the Scan function,  Edit Sectors begins operation by deter-
  848.       mining the diskette type and drive characteristics. After this is
  849.       done, the track and side containing the sector(s) to be inspected
  850.       or modified can be selected.
  851.  
  852.       The right- and left-cursor keys are used to select the track; the
  853.       up- and down-cursor keys are used to select the head or side con-
  854.       taining the sector.   The "thermometer" line shows this  position
  855.       change  correspondingly.      When the ENTER key is pressed,  the
  856.       track is read for analysis and a track map is displayed as  shown
  857.       in Figure 9.
  858.  
  859.       The  desired  sector  is selected from the displayed track map by
  860.       use of the up- and down-cursor keys. When the sector to be edited
  861.       is highlighted,  the ENTER key is pressed to display the data for
  862.       that sector.  If either the right- or left-cursor key is pressed,
  863.       the  next  or  previous track is analyzed,  and the track map for
  864.       that track displayed.    If the ESCape key  is  pressed,  AnaDisk
  865.       returns to the track selection display.
  866.  
  867.  
  868.                                    Page 11
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.       +-----------------------------------------------------------------------+
  876.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  877.       ├┴┴╫┴┴┴┴╫┴┴┴┴╫^┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴
  878.       0  5   10   15   20   25  30   35  40   45   50  55   60   65   70   75
  879.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  880.       ║  A: Cyl 1 Side 0 Cluster 5       ║║ Working...                        ║
  881.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  882.       ╔══════════════════════════════ TRACK MAP ══════════════════════════════╗
  883.       ║ Select sector ^v, ENTER starts edit, Change track -><-, Exit ESC      ║
  884.       ║                                                                       ║
  885.       ║ CYL HEAD SECT SIZE FLAGS                                              ║
  886.       ║   1    0    1  512                                                    ║
  887.       ║   1    0    2  512                                                    ║
  888.       ║   1    0    3  512                                                    ║
  889.       ║   1    0    4  512                                                    ║
  890.       ║   1    0    5  512                                                    ║
  891.       ║   1    0    6  512                                                    ║
  892.       ║   1    0    7  512                                                    ║
  893.       ║   1    0    8  512                                                    ║
  894.       ║   1    0    9  512                                                    ║
  895.       ║                                                                       ║
  896.       ║                                                                       ║
  897.       ║                                                                       ║
  898.       ╚═══════════════════════════════════════════════════════════════════════╝
  899.       +-----------------------------------------------------------------------+
  900.  
  901.                       Figure 9:  Edit Sectors track map
  902.  
  903.  
  904.       Sectors  having  errors  are marked in the track map with an E in
  905.       the FLAGS column;  those having a Deleted Data Address  Mark  are
  906.       marked with the letter M.
  907.  
  908.       When  the  desired sector has been selected,  the editing display
  909.       appears as shown in Figure 10.   Initially,  sector data is  dis-
  910.       played  in  an  ASCII representation,  with undisplayable control
  911.       characters shown as dots.   The F8 key may be used to toggle  be-
  912.       tween  this  ASCII display and a mixed hexadecimal-ASCII display,
  913.       as illustrated in Figure 11.   The current  position  within  the
  914.       sector  data  is  indicated by a highlighted reverse video block,
  915.       and may be moved by use of any of the cursor keys.   Data on  the
  916.       display may be changed by simply entering new data at the current
  917.       position.    However,  data  is not written to the diskette until
  918.       Alt-F2 is pressed.  If data is changed,  the notation ALTERED ap-
  919.       pears in the menu window.
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.                                    Page 12
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.       +-----------------------------------------------------------------------+
  936.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  937.       ╔═══════════════════════════════════════════════════════════════════════╗
  938.       ║ F1  HELP       F2  Read Sect  F3  Print F4  Disk Print  F5  Shift <   ║
  939.       ║ F6  Shift >    F7  NOT        F8  Alpha F9  Read Last   F10 Read Next ║
  940.       ║ F2S Diag. Read F3S What File? F4S Save  F5S Recall      F6S Fill->End ║
  941.       ║ F9S Track - 1  F10S Track + 1 F2A Write F3A Reformat    ESC QUIT      ║
  942.       ║                                                                       ║
  943.       ║                                                                       ║
  944.       ║  Clust 3 Cyl 1 Side 0 Sect 9, Size 512                       0000(0)  ║
  945.       ╚═══════════════════════════════════════════════════════════════════════╝
  946.       ╔═══════════════════════════════════════════════════════════════════════╗
  947.       ║ 0000  RNT=0ττ1170 GOSUB 14310 'TOGGLE CAPSLOCK ONττ1180 GOSUB 11700 'W║
  948.       ║ 0040  HAT KIND OF VIDEO ADAPTERττ1190 GOSUB 11850 'display Soft-SHARE ║
  949.       ║ 0080  logoττ1200 GOSUB 12120 'REQUEST RUNTIME OPTIONSττ1210 START$=""τ║
  950.       ║ 00c0  τ1220 FINISH$=""ττ1230 S=1ττ1240 ROWLINES=10ττ1250 PAGESIZE=50ττ║
  951.       ║ 0100  1260 FREELMT=10ττ1270 LINECNT=0ττ1280 PRVLNUM=-32768!ττ1290 CURL║
  952.       ║ 0140  INE!=0ττ1300 'ττ1310 IF RUNTYPE<3 GOTO 1470ττ1320 IF RUNTYPE>4 G║
  953.       ║ 0180  OTO 1470ττ1330 READ RESCNTττ1340 DIM RESWRD$(158) ' RESWRD$(153)║
  954.       ║ 01c0      FIXED IF COMPILEDττ1350 DIM WORDFLAG(158) ' WORDFLAG(153)   ║
  955.       ║                                                                       ║
  956.       ║                                                                       ║
  957.       ╚═══════════════════════════════════════════════════════════════════════╝
  958.       +-----------------------------------------------------------------------+
  959.  
  960.                        Figure 10: ASCII Sector display
  961.  
  962.  
  963.       +-----------------------------------------------------------------------+
  964.       ╔═══════════════════════════════════════════════════════════════════════╗
  965.       ║0000  52 4e 54 3d 30 0d 0a 31 31 37 30 20 47 4f 53 55  RNT=0··1170 GOSU║
  966.       ║0010  42 20 31 34 33 31 30 20 27 54 4f 47 47 4c 45 20  B 14310 'TOGGLE ║
  967.       ║0020  43 41 50 53 4c 4f 43 4b 20 4f 4e 0d 0a 31 31 38  CAPSLOCK ON··118║
  968.       ║0030  30 20 47 4f 53 55 42 20 31 31 37 30 30 20 27 57  0 GOSUB 11700 'W║
  969.       ║0040  48 41 54 20 4b 49 4e 44 20 4f 46 20 56 49 44 45  HAT KIND OF VID ║
  970.       ║0050  4f 20 41 44 41 50 54 45 52 0d 0a 31 31 39 30 20  O ADAPTER··1190 ║
  971.       ║0060  47 4f 53 55 42 20 31 31 38 35 30 20 27 64 69 73  GOSUB 11850 'dis║
  972.       ║0070  70 6c 61 79 20 53 6f 66 74 2d 53 48 41 52 45 20  play Soft-SHARE ║
  973.       ║0080  6c 6f 67 6f 0d 0a 31 32 30 30 20 47 4f 53 55 42  logo··1200 GOSUB║
  974.       ║0090  20 31 32 31 32 30 20 27 52 45 51 55 45 53 54 20   12120 'REQUEST ║
  975.       ║00a0  52 55 4e 54 49 4d 45 20 4f 50 54 49 4f 4e 53 0d  RUNTIME OPTIONS ║
  976.       ║00b0  0a 31 32 31 30 20 53 54 41 52 54 24 3d 22 22 0d  ·1210 START$="" ║
  977.       ║00c0  0a 31 32 32 30 20 46 49 4e 49 53 48 24 3d 22 22  ·1220 FINISH$=""║
  978.       ╚═══════════════════════════════════════════════════════════════════════╝
  979.       +-----------------------------------------------------------------------+
  980.  
  981.                  Figure 11: Mixed Hexadecimal-ASCII display.
  982.  
  983.  
  984.       Several function key combinations will specialized functions,  as
  985.       follows:
  986.  
  987.  
  988.                                    Page 13
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.       F1    obtains a brief Help display.
  996.  
  997.       F2    Re-reads the current sector.  This function may be needed if
  998.       data in the sector display has been modified,  and it is  desired
  999.       to bring back the original data.
  1000.  
  1001.       F3    Prints  the  current  sector  on the DOS printer (PRN:).   A
  1002.       mixed hexadecimal-ASCII format is used.
  1003.  
  1004.       F4    Writes a mixed hexadecimal-ASCII representation of the  sec-
  1005.       tor data to a standard DOS file.  If the DOS file exists prior to
  1006.       the  F4  operation,  the data is appended to the end of the file.
  1007.       Otherwise, a new file is created.
  1008.  
  1009.       F5    Shifts the data from the current (highlighted)  position  to
  1010.       the  end  of  the  sector one bit left.   Bits shifted out of the
  1011.       high-order positions of the current  byte  are  lost;  low  order
  1012.       positions at the end of the current sector are filled with zero.
  1013.  
  1014.       F6    Shifts  the  data from the current (highlighted) position to
  1015.       the end of the sector one bit right.   Bits shifted  out  of  the
  1016.       low-order  positions  of  the  last  byte in the sector are lost;
  1017.       high-order bit positions at the  current  byte  are  filled  with
  1018.       zero.    The  shift-right  and  -left  functions  are  useful  in
  1019.       reconstructing information in a sector which has  become  garbled
  1020.       because of a data read error.
  1021.  
  1022.       F7    Performs  the  one's  complement Boolean operation on sector
  1023.       data from the current (highlighted) position to the  end  of  the
  1024.       sector.
  1025.  
  1026.       F8    Toggles   the  display  mode  from  ASCII  to  mixed  ASCII-
  1027.       hexadecimal.
  1028.  
  1029.       F9    Reads the sector immediately preceding the current one.   If
  1030.       the  current  sector  is the first on the track,  F9 re-reads the
  1031.       current sector.
  1032.  
  1033.       F10   Reads the sector immediately following the current one.   If
  1034.       the  current  sector  is the last on the track,  F10 re-reads the
  1035.       current sector.
  1036.  
  1037.       Shift-F2 Performs a "diagnostic read" of the current  track.    A
  1038.       diagnostic read involves reading the data field of the first sec-
  1039.       tor  and  continues  with all fields until 16,384 bytes have been
  1040.       read.   ID fields,  gap bytes and CRCs are read indiscriminately;
  1041.       no  attempt  to  re-synchronize  the data discrimination logic is
  1042.       made after the first sector has been read.   This function allows
  1043.       viewing  of  raw data and may be used to determine the value of a
  1044.       data field whose address ID field has  been  corrupted,  or  data
  1045.       contained  within  inter-sector gaps.   See the Diskette Tutorial
  1046.       section for more information.
  1047.  
  1048.                                    Page 14
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.       Shift-F3 Identifies the file of which the sector is a part.  Note
  1057.       that is function is available only for DOS diskettes.
  1058.  
  1059.       Shift-F4 Saves the contents of the sector in an internal  buffer.
  1060.       Each  time  Shift-F4  is depressed,  the previous contents of the
  1061.       save buffer are lost.
  1062.  
  1063.       Shift-F5 Recalls the contents of the save buffer to  the  current
  1064.       display.  Note that the contents of the buffer are not written to
  1065.       the diskette.
  1066.  
  1067.       Shift-F6 Fills the sector from the current position to the end of
  1068.       the sector with the value at the current position.
  1069.  
  1070.       Shift-F9  Analyzes the preceding track and displays the track map
  1071.       for it.  If the current track is the first on the diskette, it is
  1072.       re-read.
  1073.  
  1074.       Shift-F10 Analyzes the following track and displays the track map
  1075.       for it.
  1076.  
  1077.       Alt-F2     Writes the contents of the editing display back to  the
  1078.       diskette.
  1079.  
  1080.       Alt-F3     First reads all sectors on the current track,  then re-
  1081.       formats the current track with a fresh format pattern,  then  re-
  1082.       writes the sectors back to the track.   A display requesting con-
  1083.       firmation appears before the track is reformatted.
  1084.  
  1085.       ESCape Returns to the track map for this track.
  1086.  
  1087.  
  1088.       In addition to this information,  the menu window also shows  the
  1089.       current  sector,  the  position within the sector in both decimal
  1090.       and hexadecimal and the following flags, if applicable:
  1091.  
  1092.              ERR     The  sector  could  not  be  read  without  error.
  1093.                 Before an attempt is made to read a sector, the data is
  1094.                 set  to all zero.   If the error is one that results in
  1095.                 no data being transferred,  the display will  show  all
  1096.                 zero.
  1097.  
  1098.            CTL MK   A Deleted Data ID Address Mark was detected on the
  1099.                 current sector.   DOS makes no use of this feature  and
  1100.                 never  writes  this  flag,  but AnaDisk does detect its
  1101.                 presence and reports it.
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.                                    Page 15
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.       Examine Files
  1116.  
  1117.       The Examine Files function provides for examination of data  con-
  1118.       tained  in DOS files.   After the Examine Files function has been
  1119.       selected from the Main Menu,  the diskette unit to be examined is
  1120.       selected  from  a  subsidiary  menu similar to that used for Edit
  1121.       Sectors.
  1122.  
  1123.       The main Examine Files display presents a list of file names con-
  1124.       tained in the root directory of a diskette.   The cursor up-  and
  1125.       down-arrow keys are used to select the highlighted file or direc-
  1126.       tory name to be examined; the file name display can be "paged" by
  1127.       means of the Page Up (PgUp) or Page Down (PgDn) keys.   Figure 12
  1128.       shows a sample display.
  1129.  
  1130.  
  1131.       +-----------------------------------------------------------------------+
  1132.       ESC to Exit                AnaDisk 2.01                      F1 for Help
  1133.       ╔═══════════════════════════════════════════════════════════════════════╗
  1134.       ║     F1 Help          F2 Examine Sector          F3 Display File       ║
  1135.       ║     F4 Show Deleted  F5 Print ASCII             F6 Print Hex          ║
  1136.       ║     F7 Edit FAT      ENTER Select Directory     ESC Exit              ║
  1137.       ║                                                                       ║
  1138.       ║  Attributes: Archive Directory Volume label Hidden  Read only System  ║
  1139.       ║                                                                       ║
  1140.       ║  Directory: \                                                         ║
  1141.       ╚═══════════════════════════════════════════════════════════════════════╝
  1142.       ╔═══════════════════════════════════════════════════════════════════════╗
  1143.       ║       NAME      ATTRIB    TIME      DATE     LENGTH   CLUS            ║
  1144.       ║                                                                       ║
  1145.       ║   MKCHARS.C          A  14:17:21  11/16/89      1195     2            ║
  1146.       ║   TEXT2DAT.C         A  14:17:21  11/16/89       993     4            ║
  1147.       ║   IMGCPY.C           A  14:17:21  11/16/89      6058     5            ║
  1148.       ║   SAVECMOS.C         A  14:17:22  11/16/89      4443    11            ║
  1149.       ║   PUTCMOS.C          A  14:17:22  11/16/89      5010    16            ║
  1150.       ║   VERUSER.C          A  14:17:22  11/16/89     11462    21            ║
  1151.       ║   SAD.C              A  14:17:23  11/16/89      4356    33            ║
  1152.       ║   HEXSRCH.C          A  14:17:23  11/16/89      3904    38            ║
  1153.       ║   CGEN2ASM.C         A  14:17:24  11/16/89      1127    42            ║
  1154.       ║   CGEN2HP.C          A  14:17:24  11/16/89      8594    44            ║
  1155.       ║   PRUNE.C            A  14:17:24  11/16/89      4003    53            ║
  1156.       ╚═══════════════════════════════════════════════════════════════════════╝
  1157.       +-----------------------------------------------------------------------+
  1158.  
  1159.                       Figure 12: Examine Files display
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.                                    Page 16
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.                 In the window displaying file names,  the  meanings  of
  1176.                      the column labels are as follows:
  1177.  
  1178.                      NAME is the name of the file.
  1179.  
  1180.                      ATTRIB show flags for the file attributes.   These
  1181.                                are as follows:
  1182.  
  1183.                           A is the "archive" flag.   This flag is  used
  1184.                                     by  back-up  utilities  and  is set
  1185.                                     whenever the  file  is  created  or
  1186.                                     modified.    Most back-up utilities
  1187.                                     clear this flag once the  file  has
  1188.                                     been backed up.
  1189.  
  1190.                           D is the "directory" flag.  When this flag is
  1191.                                     present, the name shown is the name
  1192.                                     of a directory, rather than a file.
  1193.  
  1194.                           V is the "volume label" flag.  When this flag
  1195.                                     is present,  the name shown is  the
  1196.                                     name  of  the volume label for this
  1197.                                     diskette.  This name can be changed
  1198.                                     by means of the DOS LABEL utility.
  1199.  
  1200.                           H is the "hidden" flag.   When this  flag  is
  1201.                                     present,  the file name will not be
  1202.                                     shown in a DOS directory listing.
  1203.  
  1204.                           R is the "read only" flag.  When this flag is
  1205.                                     set,  DOS will not permit the  file
  1206.                                     to  be  written  to.   This flag is
  1207.                                     modified by means of the DOS ATTRIB
  1208.                                     command.
  1209.  
  1210.                           S is the "system" flag.   This flag  is  nor-
  1211.                                     mally   only  associated  with  DOS
  1212.                                     files loaded at system "boot" time.
  1213.                                     Files flagged with  this  attribute
  1214.                                     are  also  implicitly read-only and
  1215.                                     hidden (R and H attributes).
  1216.  
  1217.       To examine the files in a particular subdirectory,  highlight the
  1218.       subdirectory  name  and  press  ENTER.   To go back to the parent
  1219.       directory of a subdirectory,  position to the ..  entry and press
  1220.       ENTER.
  1221.  
  1222.       Several functions are available on the Examine Files menu:
  1223.  
  1224.            F1   obtains a brief Help display.
  1225.  
  1226.  
  1227.  
  1228.                                    Page 17
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.            F2   causes the Edit Sectors display to be activated,  using
  1236.                 the first sector of  the  current  (highlighted)  file.
  1237.                 All  functions  on  the  Edit Sectors menu operate nor-
  1238.                 mally, with the following exceptions:
  1239.  
  1240.                 F9   moves one sector back within the file.
  1241.  
  1242.                 F10  moves one sector forward within the file.
  1243.  
  1244.                 Shift-F9 and Shift-F10 do nothing.
  1245.  
  1246.                 ESCape returns to the Examine Files menu,  not  to  the
  1247.                      track map.
  1248.  
  1249.                 In  addition,  the relative byte offset within the file
  1250.                 is displayed,  in addition to the  cylinder,  side  and
  1251.                 sector.
  1252.  
  1253.            F3   displays  the currently highlighted file as ASCII text.
  1254.                 The cursor-up, cursor-down,  PgUp,  PgDn,  Home and End
  1255.                 keys may be used to navigate within a file.   Data past
  1256.                 the end-of-file point is displayed following the  nota-
  1257.                 tion:
  1258.  
  1259.                                  >>> END-OF-FILE <<<
  1260.  
  1261.            F4   toggles  the  file directory display between Active and
  1262.                 Deleted or erased files.   A deleted file always has  a
  1263.                 "sigma" as the first character of the name.   Figure 13
  1264.                 shows a deleted files display.
  1265.  
  1266.            F5   causes the currently highlighted file to be printed  as
  1267.                 ASCII  text.    Data past the end-of-file point is also
  1268.                 printed,  with the end-of-file shown as in the F3 func-
  1269.                 tion, above.
  1270.  
  1271.            F6   causes  the currently highlighted file to be printed as
  1272.                 a mixed ASCII-hexadecimal representation.
  1273.  
  1274.            F7   brings up the File Allocation Table (FAT)  editor,  and
  1275.                 positions  the display to the first cluster of the cur-
  1276.                 rent file.
  1277.  
  1278.            ENTER changes the display to the highlighted directory.   To
  1279.                 return  to  the parent of the current directory,  high-
  1280.                 light the .. entry and press ENTER.
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.                                    Page 18
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.       +-----------------------------------------------------------------------+
  1296.       ESC to Exit                AnaDisk 2.01                      F1 for Help
  1297.       ╔═══════════════════════════════════════════════════════════════════════╗
  1298.       ║     F1 Help          F2 Examine Sector          F3 Display File       ║
  1299.       ║     F4 Show Deleted  F5 Print ASCII             F6 Print Hex          ║
  1300.       ║     F7 Edit FAT      ENTER Select Directory     ESC Exit              ║
  1301.       ║                                                                       ║
  1302.       ║  Attributes: Archive Directory Volume label Hidden  Read only System  ║
  1303.       ║                                                                       ║
  1304.       ║  Directory: \                                                         ║
  1305.       ╚═══════════════════════════════════════════════════════════════════════╝
  1306.       ╔═══════════════════════════════════════════════════════════════════════╗
  1307.       ║           NAME      ATTRIB    TIME      DATE     LENGTH   CLUS        ║
  1308.       ║                                                                       ║
  1309.       ║       σNADISK.EXE        A  15:16:01  05/16/89     71313    68        ║
  1310.       ║       σRCHECK.EXE        A  11:55:20  06/29/89      5084   302        ║
  1311.       ║       σNSTALL.EXE        A  10:36:05  09/07/89         0     0        ║
  1312.       ║                                                                       ║
  1313.       ║                                                                       ║
  1314.       ╚═══════════════════════════════════════════════════════════════════════╝
  1315.       +-----------------------------------------------------------------------+
  1316.  
  1317.                       Figure 13: Deleted files display.
  1318.  
  1319.  
  1320.       It is possible to display and print  data  belonging  to  deleted
  1321.       files,  if the file has not already been overwritten.   If an at-
  1322.       tempt is made to display or print an overwritten file,  the  fol-
  1323.       lowing Alert Box message will be displayed:
  1324.  
  1325.                       ╔════════<>^v to Move══════════╗
  1326.                       ║  This deleted file has       ║
  1327.                       ║  been overwritten.  Press    ║
  1328.                       ║  ESCape to quit display,     ║
  1329.                       ║  Any other key to proceed... ║
  1330.                       ║                              ║
  1331.                       ╚══════════════════════════════╝
  1332.  
  1333.       If the ESCape key is pressed,  AnaDisk returns to the file direc-
  1334.       tory display.   If,  however,  any other key is pressed,  AnaDisk
  1335.       displays  information  as  if the file were not overwritten.   To
  1336.       gather data for display,  AnaDisk searches (forward) for the next
  1337.       unallocated  area  and  displays it.   Depending on the method by
  1338.       which the file  was  created,  however,  this  may  not  actually
  1339.       reflect  data  contained  in the file beyond the first allocation
  1340.       unit or cluster.
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.                                    Page 19
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.       Search
  1356.  
  1357.       AnaDisk's Search function will examine a diskette for a match  on
  1358.       any  one of a series of search key values,  referred to simply as
  1359.       keys.  The search can extend over the entire diskette, the active
  1360.       file area,  or just the deleted (inactive) area.   Up to five 65-
  1361.       character keys may be specified; AnaDisk will search for all keys
  1362.       simultaneously and report a match on  any  key.
  1363.  
  1364.  
  1365.       +-----------------------------------------------------------------------+
  1366.       ESC to Exit                      AnaDisk 2.0                  F1 for Help
  1367.  
  1368.  
  1369.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  1370.       ║                                  ║║ Select - ESCape to quit, F1, help ║
  1371.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1372.       ╔═══════════════════════════════════════════════════════════════════════╗
  1373.       ║                                                                       ║
  1374.       ║                      SEARCH DISK FOR DATA                             ║
  1375.       ║                                                                       ║
  1376.       ║     Select choices with -><- cursor keys.  Move between lines with ^v ║
  1377.       ║     keys.  ENTER (<┘) confirms.  ESCape returns to the main menu.     ║
  1378.       ║                                                                       ║
  1379.       ║          Diskette Unit                           A:  B:               ║
  1380.       ║                                                                       ║
  1381.       ║          Source for search values              KEYBOARD   OLDVALUES  ║
  1382.       ║                                                                       ║
  1383.       ║          Search alpha case-sensitive                         NO  YES  ║
  1384.       ║                                                                       ║
  1385.       ║          Search what part of the disk?        ALL  ACTIVE  DELETED    ║
  1386.       ║                                                                       ║
  1387.       ║          Print hits without pausing                          NO  YES  ║
  1388.       ║                                                                       ║
  1389.       ║          Masked Search                                       NO  YES  ║
  1390.       ╚═══════════════════════════════════════════════════════════════════════╝
  1391.       +-----------------------------------------------------------------------+
  1392.  
  1393.                            Figure 14: Search Menu.
  1394.  
  1395.  
  1396.       Keys  may  contain  what are known as "don't care" or "wild card"
  1397.       values, which will match any character.  To obtain the most effi-
  1398.       cient performance,  a key should not begin with  a  "don't  care"
  1399.       value.   In addition,  the search may be instructed to ignore the
  1400.       case of alphabetic data; e.g., the letter A will match both a and
  1401.       A.
  1402.  
  1403.       The Search menu is shown in Figure 14.   The  Source  for  search
  1404.       value selection offers two alternatives:
  1405.  
  1406.  
  1407.  
  1408.                                    Page 20
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.            KEYBOARD  specifies key entry from the keyboard.   After all
  1416.                 key values are entered, they may be saved to a file for
  1417.                 later recall.
  1418.  
  1419.            OLD VALUES specifies that the keys entered for the preceding
  1420.                 search should be used.   This option is invalid for the
  1421.                 first search of a AnaDisk session.
  1422.  
  1423.  
  1424.       Search  alpha  case-sensitive specifies whether the search should
  1425.       consider the case of alphabetic characters.   If NO is  selected,
  1426.       the  search  considers  both  upper-  and  lower-case  alphabetic
  1427.       characters to be equivalent.   Thus,  DOG will match both DOG and
  1428.       dog if the search is not case-sensitive.
  1429.  
  1430.       Search  what  part of the disk?  offers three alternatives.   The
  1431.       first,  ALL,  specifies that the entire disk should  be  searched
  1432.       without  regard  to  file boundaries or use of a sector.   ACTIVE
  1433.       specifies that only the data areas belonging to  files  or  their
  1434.       directories be searched;  non-active (deleted or free) data areas
  1435.       will not be searched.  DELETED specifies that only the deleted or
  1436.       unallocated areas of the disk should be examined.
  1437.  
  1438.       Print hits without pausing instructs AnaDisk to record all search
  1439.       matches on the printer without stopping for verification.    Nor-
  1440.       mally,  AnaDisk opens a window when a match is found, as shown in
  1441.       Figure 16, and requests further direction.
  1442.  
  1443.       Masked Search refers to the optional specification  of  an  8-bit
  1444.       hexadecimal quantity which determines which bits in a byte are to
  1445.       be taken into consideration when a comparison is made.   Each bit
  1446.       in the mask quantity that contains  a  "0"  represents  a  "don't
  1447.       care"  position.   That is,  bits in these positions will have no
  1448.       effect on the outcome of a comparison.    Conversely,  those  bit
  1449.       positions  containing "1" bits will be considered in comparisons.
  1450.       A mask quantity of all  zeroes  would  represent  no  significant
  1451.       positions and so will not be allowed by AnaDisk.
  1452.  
  1453.       When search keys are to be entered from the keyboard, the display
  1454.       in Figure 15 appears.   Key values up to 65 characters may be en-
  1455.       tered;  "don't care" values may be specified by the key  combina-
  1456.       tion  Alt-X.   "Don't care" values will appear as highlighted in-
  1457.       verted question marks.
  1458.  
  1459.       Data entry may be performed in either ASCII or hexadecimal modes.
  1460.       Initially,  data entry begins in ASCII mode;  the Tab key is used
  1461.       to alternate between modes and may be used at any time.   Regard-
  1462.       less of the mode used to enter search values, an appropriate rep-
  1463.       resentation appears in both the ASCII and the  hexadecimal  parts
  1464.       of the display as the values are entered.
  1465.  
  1466.  
  1467.  
  1468.                                    Page 21
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.       -----------------------------------------------------------------------+
  1476.       ESC to Exit                   AnaDisk 2.01                    F1 for Help
  1477.  
  1478.  
  1479.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  1480.       ║                                  ║║ Enter Search Key - F1 for help    ║
  1481.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1482.       ╔═══════════════════════════════════════════════════════════════════════╗
  1483.       ║                                                                       ║
  1484.       ║                          SPECIFY SEARCH VALUE                         ║
  1485.       ║                                                                       ║
  1486.       ║  Enter search value 1, 65 characters maximum.  Alt-X for Don't Care,  ║
  1487.       ║  Alt-V for verbatim values,  TAB changes hex/ASCII mode.  Press       ║
  1488.       ║  ENTER (±┘) when done.  ±┘ alone for last value.                      ║
  1489.       ║                                                                       ║
  1490.       ║                                                                       ║
  1491.       ║                           ----  ASCII ----                            ║
  1492.       ║     Magic Value█                                                      ║
  1493.       ║                             ---- HEX ----                             ║
  1494.       ║     4d 61 67 69 63 20 56 61 6c 75 65                                  ║
  1495.       ║                                                                       ║
  1496.       ║                                                                       ║
  1497.       ║                                                                       ║
  1498.       ║                                                                       ║
  1499.       ║                                                                       ║
  1500.       ╚═══════════════════════════════════════════════════════════════════════╝
  1501.       +-----------------------------------------------------------------------+
  1502.  
  1503.                          Figure 15: Search Key Entry
  1504.  
  1505.  
  1506.       Special  non-printing  characters can be entered in ASCII mode if
  1507.       first preceded by Alt-V, or verbatim key sequence.   Unless it is
  1508.       part  of  a  verbatim sequence,  ESCape terminates data entry and
  1509.       return is made to the Main Menu.
  1510.  
  1511.       Both the cursor-left and the backspace keys may be used to  erase
  1512.       the  most  recently  typed  character.   When a key has been com-
  1513.       pletely entered,  pressing the ENTER key  will  cause  it  to  be
  1514.       stored and a prompt for the next key will appear.  After the last
  1515.       key  has  been entered,  pressing ENTER as the first character of
  1516.       the line will signal the end of key specification.
  1517.  
  1518.       Up to five search keys may  be  specified;  AnaDisk  will  report
  1519.       matches on any of the specified keys.
  1520.  
  1521.       If use of a Search Mask has been indicated, the following is dis-
  1522.       played:
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.                                    Page 22
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.                       ╔════════<>^v to Move══════════╗
  1537.                       ║     Please enter hex         ║
  1538.                       ║     search mask value:       ║
  1539.                       ║                              ║
  1540.                       ║          █                   ║
  1541.                       ║                              ║
  1542.                       ╚══════════════════════════════╝
  1543.  
  1544.       The  search  mask value can then be entered.   If a value of 0 is
  1545.       given, the following message is displayed:
  1546.  
  1547.                       ╔════════<>^v to Move══════════╗
  1548.                       ║  A search mask value of      ║
  1549.                       ║  0 matches everything. Press ║
  1550.                       ║  any key to respecify the    ║
  1551.                       ║  mask value.                 ║
  1552.                       ║                              ║
  1553.                       ╚══════════════════════════════╝
  1554.  
  1555.       A new search mask may then be entered, or, ESCape can be pressed,
  1556.       and a mask value of 255 ( FF hex) or all 1's will be used.
  1557.  
  1558.       +-----------------------------------------------------------------------+
  1559.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  1560.       ├v┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴
  1561.       0  5   10   15   20   25  30   35  40   45   50  55   60   65   70   75
  1562.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  1563.       ║  A: Cyl 2 Side 0 Cluster 14      ║║ Working...                        ║
  1564.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1565.       ╔════════════ GENERAL ═════════════╗╔═══════════ ANALYSIS ══════════════╗
  1566.       ║                   ╔═══════════════════════════════════════╗e 1        ║
  1567.       ║  Double-Sided  Dou║             SEARCH MODE               ║ta found   ║
  1568.       ║                   ║                                       ║           ║
  1569.       ║  Sector size is 51║    Match on (1) "ERROR"               ║           ║
  1570.       ║                   ║                                       ║           ║
  1571.       ║                   ║        Cylinder  2                    ║           ║
  1572.       ║                   ║        Side      0                    ║           ║
  1573.       ║  DOS 5¼" 360K Form║        Sector    3                    ║           ║
  1574.       ║                   ║        Offset    001a(26)             ║           ║
  1575.       ║                   ║        File      \ANADISK.DOC         ║           ║
  1576.       ║___________________║                                       ║           ║
  1577.       ║     FILE ALLOCATIO║   Press ESCape to terminate scan      ║           ║
  1578.       ║                   ║   E to examine sector                 ║           ║
  1579.       ║     Sectors Used: ║   C to continue searching             ║           ║
  1580.       ║     Sectors Reserv║   S to skip track                     ║           ║
  1581.       ║     Sectors Flawed╚═══════════════════════════════════════╝           ║
  1582.       ║     Sectors Free:                                                     ║
  1583.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1584.       +-----------------------------------------------------------------------+
  1585.  
  1586.                       Figure 16:  Search match display.
  1587.  
  1588.                                    Page 23
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.       After obtaining the search  keys,  AnaDisk  reads  each  diskette
  1597.       track  and  searches  it for a match on each key value in succes-
  1598.       sion.   If a matching value  crosses  (or  "straddles")  a  track
  1599.       boundary, AnaDisk will report the value as occurring on the lower
  1600.       track.  If a match is located, AnaDisk will then report the match
  1601.       if  it occurs within the area of the disk that has been specified
  1602.       for searching, i.e., ALL, ACTIVE or DELETED.
  1603.  
  1604.       It is important to observe that AnaDisk searches the diskette  in
  1605.       physical  sector  order;  that is,  the first sector of the first
  1606.       side of the first cylinder to the last sector of the last side of
  1607.       the last cylinder,  which is not necessarily the way data is  or-
  1608.       ganized within a given file.
  1609.  
  1610.       Unless  Print hits without pausing has been selected,  each match
  1611.       is reported as shown in Figure 16.  The value of the matching key
  1612.       is also displayed.   If any positions of the key were entered  in
  1613.       hexadecimal mode,  the key will be displayed in hexadecimal nota-
  1614.       tion.  Otherwise, the key will be displayed in ASCII.
  1615.  
  1616.       When a match "hit"  is  displayed,  four  actions  are  possible,
  1617.       depending on the character entered from the keyboard:
  1618.  
  1619.            1.   If ESCape is pressed, the search terminates and AnaDisk
  1620.                 exits to the main menu display.
  1621.  
  1622.            2.   If E is pressed, the sector in which the match occurred
  1623.                 is displayed with the Edit Sectors display.   If ESCape
  1624.                 is pressed while in this display,  AnaDisk exits to the
  1625.                 match screen (Figure 16).
  1626.  
  1627.            3.   If  C  is  pressed,  the search continues with the next
  1628.                 character after the data causing the match.
  1629.  
  1630.            4.   If S is pressed, the remainder of the track is skipped,
  1631.                 and searching resumes with the data on the next track.
  1632.  
  1633.  
  1634.       Copy Diskette
  1635.  
  1636.       The Copy Diskette function performs a  diskette-to-diskette  copy
  1637.       operation.    Within the limits of PC hardware,  an exact copy of
  1638.       the original is made.  This is the only instance in which AnaDisk
  1639.       can be used to write a diskette.
  1640.  
  1641.       It is strongly recommended that ALL original diskettes used  with
  1642.       AnaDisk be write-protected!   It is most important,  however,  to
  1643.       observe this precaution when performing the Copy  Diskette  func-
  1644.       tion;  a  brief  mental  lapse or distraction could result in the
  1645.       original diskette being written.
  1646.  
  1647.  
  1648.                                    Page 24
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.       +-----------------------------------------------------------------------+
  1656.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  1657.  
  1658.  
  1659.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  1660.       ║                                  ║║ Select - ESCape to quit, F1, help ║
  1661.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1662.       ╔═══════════════════════════════════════════════════════════════════════╗
  1663.       ║                                                                       ║
  1664.       ║                            COPY DISKETTE                              ║
  1665.       ║                                                                       ║
  1666.       ║   Select choices with -><-· cursor keys.  ENTER (<┘) begins           ║
  1667.       ║   execution.  F1 gets help, ESCape goes back to the opening menu.     ║
  1668.       ║                                                                       ║
  1669.       ║                                                                       ║
  1670.       ║          Source Diskette Unit                    A:  B:               ║
  1671.       ║                                                                       ║
  1672.       ║          Destination Diskette Unit               A:  B:               ║
  1673.       ║                                                                       ║
  1674.       ║                                                                       ║
  1675.       ╚═══════════════════════════════════════════════════════════════════════╝
  1676.       +-----------------------------------------------------------------------+
  1677.  
  1678.                        Figure 17: Copy Diskette Menu.
  1679.  
  1680.  
  1681.       Diskettes can be copied using either one diskette drive, in which
  1682.       case diskette "swaps" will be required, or with two drives.  If a
  1683.       two-drive copy is performed,  the drives being used must both  be
  1684.       capable  of  supporting the format being copied.   It is not pos-
  1685.       sible, for example, to copy a 3.5" 720K diskette to a target in a
  1686.       5.25" 360K drive.   Should this be attempted,  the following mes-
  1687.       sage appears:
  1688.  
  1689.                       ╔════════<>^v to Move══════════╗
  1690.                       ║  The source diskette type    ║
  1691.                       ║  is incompatible with the    ║
  1692.                       ║  destination type.  Press    ║
  1693.                       ║  any key for Main Menu...    ║
  1694.                       ║                              ║
  1695.                       ╚══════════════════════════════╝
  1696.  
  1697.       Because  the  diskette drives specified are unsuited for the par-
  1698.       ticular copy operation,  AnaDisk exits to the Main Menu in  order
  1699.       that a new drive selection can be made.
  1700.  
  1701.       The  operation  of the Copy Diskette function is straightforward.
  1702.       The source diskette is analyzed,  track by track,  and  the  data
  1703.       read  from the source is accumulated in PC main memory.   When no
  1704.       more data can be stored,  the accumulated information is  written
  1705.       to  the  destination diskette.   Each track of data that has been
  1706.  
  1707.  
  1708.                                    Page 25
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.       written is verified by reading the data back.   The process  con-
  1716.       tinues  until  there is no more data to be copied.   Progress and
  1717.       error messages are displayed in the ANALYSIS window.
  1718.  
  1719.       Not all diskettes can  be  copied  faithfully  by  AnaDisk,  par-
  1720.       ticularly  diskettes containing copy protection information writ-
  1721.       ten by specialized equipment,  or diskettes that have been physi-
  1722.       cally  modified  (e.g.,  a  hole  burned by laser on a particular
  1723.       track).   Nor can diskettes that have been written by some non-PC
  1724.       compatible systems,  such as the Apple Macintosh, be copied using
  1725.       AnaDisk.
  1726.  
  1727.  
  1728.       Repair
  1729.  
  1730.       The Repair function will operate with DOS diskettes  only.    The
  1731.       diskette  is scanned for data errors;  any part of a file or sub-
  1732.       directory containing errors is moved to a free area on  the  dis-
  1733.       kette  and  the original sectors marked as flawed in the file al-
  1734.       location table.  The data as read from the sectors containing the
  1735.       error is copied as read;  note that this data may contain errors.
  1736.       The sectors containing the original data are left undisturbed.
  1737.  
  1738.       After  the  Repair function has been selected from the Main Menu,
  1739.       the diskette unit  containing  the  diskette  to  be  scanned  is
  1740.       selected.    A  printer  "log" of the repair activity may also be
  1741.       selected, if desired.
  1742.  
  1743.       AnaDisk then enters Scan mode.   When  a  sector  read  error  is
  1744.       detected,  the  display  shown  in  figure  18  appears.  If E is
  1745.       pressed,  the sector containing the error will be displayed  with
  1746.       the Sector Edit display.   It may then be possible to correct the
  1747.       error by rewriting the sector.   If M is pressed,  the data  from
  1748.       the diskette will be moved as read to a free area of the diskette
  1749.       and the File Allocation Table (FAT) adjusted accordingly.  If ES-
  1750.       Cape is pressed, the error is left as-is, and the scan for errors
  1751.       continues.
  1752.  
  1753.       If the error occurs in a immovable area of the diskette,  such as
  1754.       the root directory or FAT,  the M option will not  be  displayed.
  1755.       In  this  case,  it  will  be  necessary  to reconstruct the data
  1756.       manually.
  1757.  
  1758.       Before attempting a Repair operation,  it is  strongly  suggested
  1759.       that  a  backup  copy of the diskette be made with the Copy func-
  1760.       tion.  Additionally, it should be noted that attempting to repair
  1761.       a diskette in a 1.2M drive which was written using a  360K  drive
  1762.       may  result  in  a  diskette  that is unreadable in a 360K drive.
  1763.       AnaDisk will request confirmation before proceeding with a repair
  1764.       of this type.
  1765.  
  1766.  
  1767.  
  1768.                                    Page 26
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.       +-----------------------------------------------------------------------+
  1776.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  1777.       ├┴┴╫┴^┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴┴┴╫┴┴
  1778.       0  5   10   15   20   25  30   35  40   45   50  55   60   65   70   75
  1779.       ╔══════════════════════════════════╗╔═══════════════════════════════════╗
  1780.       ║  A: Cyl 7 Side 1 Cluster 190     ║║ Working...                        ║
  1781.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1782.       ╔════════════ GENERAL ═════════════╗╔═══════════ ANALYSIS ══════════════╗
  1783.       ║                                  ║║        Track 7, Side 1            ║
  1784.       ║  Double-Sided ╔═════════════ ! ══════════════╗D. adding sector 115    ║
  1785.       ║  Interleave is║ Data error detected.  Press  ║  from 1 to 115         ║
  1786.       ║  Sector size i║ E to edit data, M to move,   ║  data error            ║
  1787.       ║  Side 0 sector║ ESC to ignore error.         ║  is in                 ║
  1788.       ║  Side 1 sector║                              ║ DEF                    ║
  1789.       ║               ║                              ║                        ║
  1790.       ║  DOS 5¼" 1200K╚══════════════════════════════╝                        ║
  1791.       ║                                                                       ║
  1792.       ║                                  ║║                                   ║
  1793.       ║----------------------------------║║                                   ║
  1794.       ║   FILE ALLOCATION TABLE (FAT)    ║║                                   ║
  1795.       ║                                  ║║                                   ║
  1796.       ║   Sectors Used:      772 ( 386K) ║║                                   ║
  1797.       ║   Sectors Reserved:    0 (   0K) ║║                                   ║
  1798.       ║   Sectors Flawed:      0 (   0K) ║║                                   ║
  1799.       ║   Sectors Free:     1599 ( 799K) ║║                                   ║
  1800.       ╚══════════════════════════════════╝╚═══════════════════════════════════╝
  1801.       +-----------------------------------------------------------------------+
  1802.  
  1803.                      Figure 18: Repair Diskette Display.
  1804.  
  1805.  
  1806.       FAT Editor
  1807.  
  1808.       AnaDisk provides a facility for displaying and  editing  the  DOS
  1809.       File  Allocation Table,  or FAT,  on a diskette.   After FAT edit
  1810.       mode is selected from the Main Menu,  the  drive  containing  the
  1811.       diskette  to  be  edited is selected.   If the diskette being ex-
  1812.       amined has a valid File Allocation Table,  a display  similar  to
  1813.       that shown in Figure 19 appears.
  1814.  
  1815.       The FAT describes how the groups of sectors, or Clusters, are put
  1816.       together.   Every file directory entry contains the number of the
  1817.       first cluster for a file.   If a file is less than one cluster in
  1818.       length,  the  entry for that cluster will contain the value 4095,
  1819.       signifying the end of the cluster list.   If the file  is  larger
  1820.       than one cluster,  however,  each cluster in the FAT will "point"
  1821.       to the next one, forming a chain of clusters.
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.                                    Page 27
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.       +-----------------------------------------------------------------------+
  1836.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  1837.       ╔═══════════════════════════════════════════════════════════════════════╗
  1838.       ║  F1 Help         F2 Edit Cluster    F3 What File?    F4 Write FAT     ║
  1839.       ║  F5 Enter value  F6 Re-read FAT     F7 Hex           ESC Exit         ║
  1840.       ║                                                                       ║
  1841.       ║  4088-4095 End-of-file    4087 Bad Cluster   4080-4086 Reserved       ║
  1842.       ║                                                                       ║
  1843.       ║                                                                       ║
  1844.       ║  Cluster 2(0002) = 3(3)                                               ║
  1845.       ╚═══════════════════════════════════════════════════════════════════════╝
  1846.       ╔═══════════════════════════════════════════════════════════════════════╗
  1847.       ║ 00000   4089  4095     3     4     5 -     6     7     8     9    10  ║
  1848.       ║ 00010     11    12    13    14    15 -    16    17    18    19    20  ║
  1849.       ║ 00020     21    22    23    24  4095 -    26    27    28    29    30  ║
  1850.       ║ 00030     31    32    33    34    35 -    36    37    38    39    40  ║
  1851.       ║ 00040     41    42    43    44    45 -    46    47    48    49    50  ║
  1852.       ║ 00050     51    52    53    54    55 -    56    57    58    59    60  ║
  1853.       ║ 00060     61    62    63    64    65 -    66    67    68    69    70  ║
  1854.       ║ 00070     71    72    73    74    75 -    76    77    78    79    80  ║
  1855.       ║ 00080     81    82    83    84    85 -    86    87    88    89    90  ║
  1856.       ║ 00090     91    92    93    94    95 -    96    97    98    99   100  ║
  1857.       ║ 00100    101   102   103   104   105 -   106   107   108   109   110  ║
  1858.       ║ 00110    111   112   113   114   115 -   116   117   118   119   120  ║
  1859.       ║ 00120    121   122   123   124   125 -   126   127   128   129   130  ║
  1860.       ╚═══════════════════════════════════════════════════════════════════════╝
  1861.       +-----------------------------------------------------------------------+
  1862.  
  1863.                         Figure 19: FAT Editor Display
  1864.  
  1865.  
  1866.       Certain FAT values have certain meanings.  The first value in the
  1867.       FAT is simply used to identify the FAT type;  the  second  always
  1868.       has the value 4095.   A value of 4087 indicates that a block con-
  1869.       tains  an error--this is almost always set by the FORMAT program.
  1870.       A value of 0 specifies a "free" or unallocated cluster.
  1871.  
  1872.       The cursor may be moved about the editing display,  the up- down-
  1873.       right-  and  left-cursor  keys and the PgUp and PgDn keys perform
  1874.       the navigation.   In addition,  the following function keys  have
  1875.       special meaning:
  1876.  
  1877.            F1   Produces a help display.
  1878.            F2   Produces  a Sector Edit display for the currently high-
  1879.                 lighted cluster.
  1880.            F3   Identifies the file to which the currently  highlighted
  1881.                 cluster belongs.
  1882.            F4   Rewrites  the modified FAT to a diskette.   AnaDisk re-
  1883.                 quests confirmation before writing, however.
  1884.            F5   Allows  a  new  value  for  the  currently  highlighted
  1885.                 cluster to be entered.
  1886.  
  1887.  
  1888.                                    Page 28
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.            F6   Reads  the FAT from a diskette.   Any changes that were
  1896.                 made to the displayed FAT are lost.
  1897.            F7   Toggles between a hexadecimal and decimal display.
  1898.            ESC  Returns to the main menu.  Any changes made to the dis-
  1899.                 played FAT are lost.
  1900.  
  1901.       AnaDisk performs a few checks on the value entered  when  the  F5
  1902.       function is selected.  The value must lie within the range of al-
  1903.       locatable  clusters for the diskette and not be already allocated
  1904.       to some other file.
  1905.  
  1906.  
  1907.       Custom Format Design
  1908.  
  1909.       AnaDisk provides a custom format design  facility  which  may  be
  1910.       used  to  produce formatted diskettes for non-DOS computers or to
  1911.       design a rudimentary "copy-protection" method.   AnaDisk's custom
  1912.       formatting  function  is  not  intended  for use by beginners;  a
  1913.       detailed knowledge of diskette structure is necessary for  effec-
  1914.       tive use of this feature.
  1915.  
  1916.       After  the  FORMAT function has been selected from the Main Menu,
  1917.       the diskette drive containing the diskette  to  be  formatted  is
  1918.       selected.   A display similar to that shown in Figure 20 then ap-
  1919.       pears.   Because of checking that is performed  by  AnaDisk,  the
  1920.       simplest  operation  can be obtained if the following sequence of
  1921.       steps is observed:
  1922.  
  1923.       To "lay out" a format,  first select the sector size using the F2
  1924.       key;  each  depression  of  this key cycles through the allowable
  1925.       sector sizes from 128 to 8,192 bytes.   Next,  set the  recording
  1926.       mode  (FM or single-density,  MFM or double-density) using the F5
  1927.       key.   Either a high- or low-density data  rate  should  be  next
  1928.       selected using the F6 key.
  1929.  
  1930.       The  number  of  sectors per track are then set using the F3 key.
  1931.       If too many sectors are specified for the  given  recording  mode
  1932.       and  density,  the  sector count  will be adjusted to the largest
  1933.       number of sectors that will fit on the track.
  1934.  
  1935.       The actual starting cylinder is set with F4.   Note that a  high-
  1936.       density 1.2M 5.25" is considered to possess 80 cylinders, regard-
  1937.       less  of  density.    The  cylinder  increment  between formatted
  1938.       cylinders is set with F8.   The total number  of  cylinders  for-
  1939.       matted  is  set  with  F9.   Note that this is the total count of
  1940.       cylinders formatted,  and not the highest cylinder number.    The
  1941.       side  or  sides to be formatted is set with F7 and may be side 0,
  1942.       side 1 or both sides.   The F10 key is used to duplicate the pre-
  1943.       vious editing display line into the currently highlighted line.
  1944.  
  1945.  
  1946.  
  1947.  
  1948.                                    Page 29
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.       +-----------------------------------------------------------------------+
  1956.       ESC to Exit                     AnaDisk 2.01                  F1 for Help
  1957.       ╔═══════════════════════════════════════════════════════════════════════╗
  1958.       ║  F1 Help        F2 Size  512      F3 10 Sectors     F4 Start Cyl. 0   ║
  1959.       ║  F5 MFM         F6  low-density   F7 Both Sides     F8 Step 1         ║
  1960.       ║  F9 80 Cyls.    F10 Duplicate     <┘ BEGIN FORMAT   ESC Exit          ║
  1961.       ║                                                                       ║
  1962.       ║                            ENTER TERM                                 ║
  1963.       ║  F2S Cylinder  F3S Cyl. Count F4S Side     F5S Sector  F6S Constant   ║
  1964.       ║  +   Add       -   Subtract   *   Multiply /   Divide  .   End        ║
  1965.       ╚═══════════════════════════════════════════════════════════════════════╝
  1966.       ╔═══════════════════════════════════════════════════════════════════════╗
  1967.       ║  NO.   ---CYLINDER---  --- SIDE --- --- SECTOR --- --- LENGTH ---     ║
  1968.       ║   1.   CYL*2            HD               SCT-1            2           ║
  1969.       ║   2.   CYL*2            HD               SCT-1            2           ║
  1970.       ║   3.   CYL*2            HD               SCT-1            2           ║
  1971.       ║   4.   CYL*2            HD               SCT-1            2           ║
  1972.       ║   5.   CYL*2            HD               SCT-1            2           ║
  1973.       ║   6.   CYL*2            HD               SCT-1            2           ║
  1974.       ║   7.   CYL*2            HD               SCT-1            2           ║
  1975.       ║   8.   CYL*2            HD               SCT-1            2           ║
  1976.       ║   9.   CYL*2            HD               SCT-1            2           ║
  1977.       ║  10.   CYL*2            HD               SCT-1            2           ║
  1978.       ║                                                                       ║
  1979.       ║                                                                       ║
  1980.       ╚═══════════════════════════════════════════════════════════════════════╝
  1981.       +-----------------------------------------------------------------------+
  1982.  
  1983.                       Figure 20: Custom Format Display
  1984.  
  1985.  
  1986.       By default, sector ID address headers written are as follows:
  1987.  
  1988.             ID Cylinder:   Actual cylinder
  1989.             ID Head:       Actual side
  1990.             ID Sector:     Starts with 1, increments by 1
  1991.             ID Length:     Actual sector length
  1992.  
  1993.       These  defaults  should  suffice  for most "normal" applications.
  1994.       However, the values for each ID address field may be altered con-
  1995.       siderably.
  1996.  
  1997.       Each entry in the ID address table shown in the lower part of the
  1998.       display can take on the following mathematical representation:
  1999.  
  2000.                 value1 op value2 op value3 op value4
  2001.  
  2002.       Where each value is either a constant or  one  of  the  following
  2003.       special values:
  2004.  
  2005.  
  2006.  
  2007.  
  2008.                                    Page 30
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.            Shift-F2  is  the  number  of  the actual cylinder currently
  2016.                      being formatted;  shown as CYL on the editing dis-
  2017.                      play.
  2018.            Shift-F3  is  the count of the cylinders that have been for-
  2019.                      matted up to this point; shown as CNT on the edit-
  2020.                      ing display.
  2021.            Shift-F4  is the side (0 or  1)  currently  being formatted;
  2022.                      shown as HD on the editing display.
  2023.            Shift-F5  is the number of the current sector on this track,
  2024.                      starting with 1;  shown as SCT on the editing dis-
  2025.                      play.
  2026.  
  2027.       Shift-F6  is  used to specify a fixed numeric value between 0 and
  2028.       255.
  2029.  
  2030.       op can be one of the following:
  2031.  
  2032.            +     for addition
  2033.            -     for subtraction
  2034.            *     for multiplication
  2035.            /     for division
  2036.  
  2037.       If a period (.) is entered for op,  the expression is  terminated
  2038.       at  that  point.    Expressions are evaluated from left-to-right;
  2039.       results are limited to 8 bits (decimal 255).   Division  by  zero
  2040.       results in zero with no diagnostic. Overflow is ignored.
  2041.  
  2042.       For example, suppose it is desired to produce a single-sided for-
  2043.       mat  where  the ID address cylinder field begins with 39 and ends
  2044.       with 0 at the innermost track.   The expression for the  CYLINDER
  2045.       field for every sector in the editing display would be:
  2046.  
  2047.                 39-CYL
  2048.  
  2049.       It should be observed that the Custom Format function only writes
  2050.       the  format  pattern to a diskette.   Other data,  such as system
  2051.       tables must be written using other means, such as the Sector Edit
  2052.       function.  It should be further observed that all sectors written
  2053.       by the Custom Format are of the  same  size,  regardless  of  the
  2054.       length specifier in the ID Address header.
  2055.  
  2056.  
  2057.       Dump Operation
  2058.  
  2059.       The Dump operation writes a specified area of a diskette to a DOS
  2060.       file.    After selecting the Dump option from the Main Menu,  the
  2061.       diskette drive containing the diskette to be read,  the range  of
  2062.       cylinders  and  sides  to  be written to a specified DOS file are
  2063.       selected.
  2064.  
  2065.       Each sector written to the file  is  optionally  preceded  by  an
  2066.       8-byte header record of the following form:
  2067.  
  2068.                                    Page 31
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.           +------+------+------+------+------+------+----------+
  2077.           | ACYL | ASID | LCYL | LSID | LSEC | LLEN |  COUNT   |
  2078.           +------+------+------+------+------+------+----------+
  2079.  
  2080.            ACYL      Actual cylinder, 1 byte
  2081.            ASID      Actual side, 1 byte
  2082.            LCYL      Logical cylinder; cylinder as read, 1 byte
  2083.            LSID      Logical side; or side as read, 1 byte
  2084.            LSEC      Sector number as read, 1 byte
  2085.            LLEN      Length code as read, 1 byte
  2086.            COUNT     Byte count of data to follow,  2 bytes.   If zero,
  2087.                      no data is contained in this sector.
  2088.  
  2089.       All sectors  occurring  on  a  side  will  be  grouped  together;
  2090.       however,  they  will appear in the same order as they occurred on
  2091.       the diskette.  Therefore,  if an 8 sector-per-track diskette were
  2092.       scanned which had a physical interleave of 2:1, the sectors might
  2093.       appear in the order 1,5,2,6,3,7,4,8 in the DOS dump file.
  2094.  
  2095.       After  the  last  specified  cylinder has been written to the DOS
  2096.       file, AnaDisk returns to the Main Menu.
  2097.  
  2098.  
  2099.       In Conclusion...
  2100.  
  2101.       We believe that AnaDisk Version 2.0 represents a  major  improve-
  2102.       ment over earlier verisons.  Our list of features yet to be added
  2103.       to  AnaDisk  includes an intelligent file unerase,  save and load
  2104.       data to a DOS file--and yes, a hard disk version!
  2105.  
  2106.       All of which is made possible by your support  of  the  Shareware
  2107.       concept.    We hope we will continue to be deserving of that sup-
  2108.       port.   If there is any way in which we can assist you with  this
  2109.       product, please call or drop us a line.
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.                                    Page 32
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.       Other Sydex Products
  2136.  
  2137.            AnaDisk  -- The compleat diskette utility.   Nothing like it
  2138.            anywhere else;  scan,  edit,  repair and copy just about any
  2139.            kind of diskette.  $25.00 ($150.00 site)  registration fee.
  2140.  
  2141.            Con>Format  --  Concurrent  "background" diskette formatter.
  2142.            Features  "pop-up"  operation  and  "hot  key"   activation.
  2143.            You've  got to see it to believe.   Supports all current DOS
  2144.            formats. $15.00 ($50.00 site) registration fee.
  2145.  
  2146.            22DISK -- Transfer files, format, examine and erase files on
  2147.            "foreign" CP/M diskettes on your PC.   Includes tips on sup-
  2148.            porting  8"  and  5.25" single-density diskettes.   Contains
  2149.            definitions for over 200 different formats.  $25.00 ($100.00
  2150.            site) registration fee.
  2151.  
  2152.            22NICE -- A CP/M 2.2 emulation package.   Supports  the  NEC
  2153.            V-series  chips  or  performs emulation by software for both
  2154.            the 8080 and Z80 processors.   Includes  terminal  emulation
  2155.            and  diskette  handling  for common CP/M systems.   Includes
  2156.            22DISK.  $40.00 ($150.00 site) registration fee.
  2157.  
  2158.            TeleDisk -- Turn any diskette into a  compressed  data  file
  2159.            and vice-versa.   Allows you to send and receive entire dis-
  2160.            kettes via modem.   Even works  with  some  "copy-protected"
  2161.            diskettes.  $20.00 ($65.00 site) registration fee.
  2162.  
  2163.            COPYQM -- Mass diskette duplicator.  Format, copy and verify
  2164.            multiple  diskettes  from  a single master.   Implements "no
  2165.            keyboard" interaction mode and drive "round  robin"  servic-
  2166.            ing.    Supports  all standard DOS formats.   $15.00 ($50.00
  2167.            site) registration fee.
  2168.  
  2169.            FORMATQM -- Mass diskette formatter - format a box  of  dis-
  2170.            kettes at a single sitting.  Implements "no keyboard" inter-
  2171.            action mode and drive "round robin" servicing.  Supports all
  2172.            standard  DOS  formats.    $10.00 ($40.00 site) registration
  2173.            fee.
  2174.  
  2175.            ...And, soon to be released:
  2176.  
  2177.            InterDisk -  The  universal  Diskette  Interchange  utility.
  2178.            Features  user-programmable  media conversion for those for-
  2179.            mats not covered by 22DISK.  Available 1Q90.
  2180.  
  2181.       Information on any of these products can be obtained  from  Sydex
  2182.       by  calling (408) 739-4866 (voice) or by leaving a request on our
  2183.       Bulletin Board System (408) 738-2860 (1200-9600 bps, N81).
  2184.  
  2185.  
  2186.  
  2187.  
  2188.                                    Page 33
  2189.