home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SCREEN / VIZ421.ZIP / VIZ.DOC < prev    next >
Encoding:
Text File  |  1991-11-23  |  65.7 KB  |  1,375 lines

  1.      ┌─────────────────────────────────────────────────────────────┐
  2.      │ Trademarked names are the property of the respective owners │
  3.      └─────────────────────────────────────────────────────────────┘
  4.  
  5.                        VIz
  6.  
  7.          Copyright (c) 1989, 1990, 1991 FM de Monasterio
  8.              Licensed Material - All rights reserved
  9.  
  10.                   Release 4.21
  11.  
  12.    SUMMARY
  13.  
  14.    VIz is a small resident program that accelerates BIOS (and DOS) video input
  15.    and output in text mode; it can be used with IBM-compatible MDA, EGA or VGA
  16.    adapter cards and Hercules HGC and HGC+ cards.  In its present version, VIz
  17.    produces video interference ("snow") in old CGA cards; for such systems you
  18.    can use VIz-CGA, a snow-free, 8088-CPU oriented version.
  19.  
  20.    In addition, VIz includes an independent, resident component for displaying
  21.    a block cursor, either continuously or alternating with a line cursor at an
  22.    adjustable rate of alternation.  The latter display is well suited for easy
  23.    localization of the cursor in some laptop screens.
  24.  
  25.    Finally, VIz also contains an independent, resident ANSI-filter driver that
  26.    mediates a subset of the ANSI escape sequences to control the console. This
  27.    filter can be used, instead of ANSI.SYS, to implement ANSI escape sequences
  28.    to control video display, with the advantage that can be turned off and on,
  29.    and removed from memory without rebooting.
  30.  
  31.    All 3 resident modules occupy a total of less than about 1800 bytes of RAM.
  32.    Depending on the system configuration and BIOS version, video accelerations
  33.    by a factor of between 2 and 10 have been obtained.
  34.  
  35.  
  36.    REGISTRATION
  37.  
  38.    This software is user-supported; the present release, although lacking the
  39.    options marked by asterisks, is a fully usable program.  You may test this
  40.    release for (in)compatibilities with your system, but after the testing is
  41.    completed you are requested to order a registered copy of the full release
  42.    of the software from the address at the end of this documentation.
  43.  
  44.    If you would rather use this unregistered copy, consider making a donation
  45.    to the Children's Hospital of Washington DC, for indigent children in need
  46.    of medical care.  Every year in the USA, infant mortality claims the lives
  47.    of tens of thousands of children before their first year of life, and most
  48.    of them come from families below poverty level...  Please send to the same
  49.    address a check payable to the "PATIENT CARE FUND, CHILDREN'S HOSPITAL" on
  50.    the obverse, and marked "For Deposit Only" on the reverse.  Donations will
  51.    be sent to Children's Hospital.  Please identify the program for which you
  52.    are making the donation.
  53.  
  54.    --------------------------------------------------------------------------
  55.        VIZ.REG contains a form needed to register or upgrade the Software
  56.    --------------------------------------------------------------------------
  57.  
  58.    See the final part of this documentation for information on the Licensing,
  59.    Distribution, Warranty, and Limitation of Remedies of this software.
  60.  
  61.                 -----------------
  62.  
  63.    GENERAL INFORMATION
  64.  
  65.    There are 3 basic ways of producing character-oriented, text video displays
  66.    in DOS computers: (1) using direct video memory mapping, which is extremely
  67.    fast but dependent on the video hardware and has a limited portability; (2)
  68.    via BIOS services, provided by the first "hidden" DOS boot file and usually
  69.    augmented by the video adapter, which are not as fast as direct mapping but
  70.    more portable; and (3) via DOS services, provided by the other "hidden" DOS
  71.    boot file and sometimes augmented via installable device drivers, which are
  72.    much slower than the other two approaches, but have greater portability and
  73.    permit additional operations such as redirection.
  74.  
  75.    Many of the DOS and BIOS video services can be accelerated using a resident
  76.    program that intercepts the calls made to such services, and implements the
  77.    video operation with faster instructions.  Because of the nature of DOS and
  78.    of BIOS services, the interception must occur at the input site of the BIOS
  79.    services (interrupt 10h), whereas it can occur at the input site (interrupt
  80.    21h) or output site (interrupt 29h), or both, of the DOS services.
  81.  
  82.    VIz is a utility that accelerates many of the basic text-video services and
  83.    allows changing the video mode, page and font of the display as well as the
  84.    raw or normal mode of DOS video output.  When used in a VGA/EGA system, VIz
  85.    also permits control of the red, green and blue mixture that determines the
  86.    color of each of the 16 registers of the color palette, and the RGB mixture
  87.    can be modified to suit user preferences.  VIz also permits controlling the
  88.    frequency (pitch) of the bell's tone.
  89.  
  90.    VIz releases require MS-DOS or PC-IBM DOS version 2 or later. (Upper-memory
  91.    selfloading requires DOS version 3 or higher.)  A cyclical redundancy check
  92.    (CRC) calculation is performed each time VIz is executed; if the CRC fails,
  93.    indicating corruption of the code, the program aborts to DOS.
  94.  
  95.  
  96.    HARDWARE COMMANDS
  97.  
  98.    Cursor position is updated via direct hardware commands.  Starting with VIz
  99.    release 3.00, such commands can be sent out as WORD (double-byte) values or
  100.    as two successive BYTE values. The WORD-out method of addressing, also used
  101.    by other programs (e.g. Microsoft Windows), yields faster accelerations but
  102.    it may not work with some older clone systems.
  103.  
  104.    To test which method of addressing you can use, enter the command 'VIZ /?H'
  105.    to see if the cursor appears at the indicated position. If it does so, your
  106.    system can handle WORD-out commands.
  107.  
  108.  
  109.    CPU VERSIONS
  110.  
  111.    VIz is entirely written in assembly language.  Each VIz version consists of
  112.    4 processor-type releases (086, 268, 386, and 486), where the code has been
  113.    optimized for the specific type of 80x86 processor.  This is needed because
  114.    the processors currently available differ markedly in instruction execution
  115.    times, and the availability of memory caches affects those times further by
  116.    influencing both speed of instruction fetching and memory access.  The type
  117.    and degree of code optimization vary with the processor model.
  118.  
  119.    In addition to standard (086) assembly language instructions, the 286, 386,
  120.    and 486 releases of VIz also use 286-, 386- or 486-specific instructions in
  121.    real mode only (which is the native mode for 086 processors). Such releases
  122.    differ slightly in resident size.
  123.  
  124.    Average accelerations and comparisons with other accelerators based on four
  125.    benchmarks are described in the accompanying file VIZ.DAT for 086, 286, 386
  126.    and 486 VIz versions.
  127.  
  128.                 -----------------
  129.  
  130.    1.  VIDEO ACCELERATION MODULE
  131.  
  132.    VIz installs itself as a resident program that can be invoked repeatedly for
  133.    modification of its parameters, without producing multiple copies on memory;
  134.    the accelerator module of the resident uses less than 1,000 bytes of RAM. To
  135.    maximize speed of code, but minimize resident size, acceleration only occurs
  136.    for video page 0 in a text mode (1-3, color; 7, monochrome). In other pages,
  137.    or graphic modes, VIz becomes inactive and is automatically reactivated by a
  138.    change that resets the video to page 0 in a text mode.  Viz accelerates BIOS
  139.    video functions, and it can also accelerate DOS-mediated screen output.
  140.  
  141.    The acceleration of VIz can be turned off either by deallocating the program
  142.    with the switch /U (if no other resident has been installed after VIz) or by
  143.    making it quiescent with switch /Q (i.e. it remains resident but not active)
  144.    until reactivation (any switch but /QU) or deallocation by a further call to
  145.    VIz.
  146.  
  147.    The relative acceleration depends on several factors, including BIOS version
  148.    and date, 80x86 CPU model and clock speed, and whether or not ROM video BIOS
  149.    is shadowed or remapped to faster RAM. Another factor, often disregarded, is
  150.    the use of other residents also intercepting the interrupt 10h. In addition,
  151.    some memory managers, even when RAM-shadowing video BIOS, have been found to
  152.    produce a not insignificant degradation of the video speed.  Whereas smaller
  153.    acceleration factors are to be expected in machines performing a faster BIOS
  154.    operation (i.e. tighter ROM code, faster CPU, shadowed or remapped ROM), the
  155.    relative weight of individual factors may yield unexpected results.  Another
  156.    factor affecting acceleration is the region of the upper memory in which VIz
  157.    loads itself when switch /H is selected.  This is free memory made available
  158.    by an extended memory manager (see below) reclaiming unused memory above 640
  159.    kb but below 1 Mb, i.e., memory filled above the video adapters.  Contingent
  160.    upon the hardware, there are marked differences in memory access time within
  161.    such a region, differences which can also affect the video acceleration of a
  162.    VIz resident loaded in high memory (see switch /H).
  163.  
  164.  
  165.    VIz updates relevant parameters in the BIOS data area (segment 40h), such as
  166.    cursor position (page 0 only) and type, video mode, page, and font, that are
  167.    also processed by VIz; while such updating degrades video acceleration time,
  168.    it also decreases the possibility of conflict with foreground utilities that
  169.    use BIOS data but bypass BIOS calls.
  170.  
  171.                 -----------------
  172.  
  173.    2.  BLOCK-AND-LINE CURSOR ALTERNATION MODULE
  174.  
  175.    To help cursor visualization in screens where the cursor is not easily seen,
  176.    as in some laptop displays, VIz provides a small resident module that allows
  177.    for the display of a (full-)block cursor, either continuously or alternating
  178.    with a line cursor. The alternation rate can be adjusted in steps of 54.9 ms
  179.    between about 0.055 s (/V1) and 5.5 s (/V99).  A zero alternation rate (/V0)
  180.    produces a continuously present block cursor. For the module to be loaded in
  181.    memory, VIz must be installed with any /V switch (see below), and it adds an
  182.    additional 100 bytes to the resident size of VIz.
  183.  
  184.    Very short or very long alternation rates are distracting or hard to follow.
  185.    When selecting a rate for laptop displays, start with a value of n=9 (.50 s)
  186.    or so.
  187.  
  188.    Block cursor alternation can be turned off by making this resident quiescent
  189.    with the switch /V+ (until its reactivation with /Vn). All cursor operations
  190.    use direct commands to the hardware, and assume register-level compatibility
  191.    with the Motorola 6845 CRT controller. This chip is present in MDA, CGA, and
  192.    HGC cards, while a 6845-compatible CRTC is a custom LSI chip in the IBM-EGA,
  193.    part of the Memory Controller Gate Array on the MCGA, or a part of the Video
  194.    Graphics Array on the VGA.
  195.  
  196.    Notice that the hardware-controlled blinking of the cursor is not eliminated
  197.    by this service. Hence, depending on the alternation rate selected, a 2-beat
  198.    frequency may be noticeable.
  199.  
  200.                 -----------------
  201.  
  202.    3.  ANSI-COMPATIBLE VIDEO FILTER MODULE
  203.  
  204.    MS-DOS and IBM PC-DOS files include ANSI.SYS, a console filter driver that
  205.    mediates a subset of American National Standards Institute (ANSI) standard
  206.    escape sequences for video functions as well as a supplementary subset for
  207.    keyboard functions (such as key reprogramming).
  208.  
  209.    VIz has a second, independently installable resident module that implements
  210.    standard ANSI escape sequences to control the console video functions. This
  211.    ANSI-compatible filter uses less than some 800 additional bytes of RAM when
  212.    installed. It can be turned off either by uninstalling all the VIz resident
  213.    modules or by selectively inactivating the filter. (The inactive filter can
  214.    also be reactivated.)
  215.  
  216.    The filter does not provide by itself much acceleration of DOS video input/
  217.    output as far as ANSI instructions are concerned.  Its advantages are small
  218.    resident size, the capability of being turned on or off, and its harmonious
  219.    working with the acceleration module of VIz.
  220.  
  221.  
  222.    COEXISTENCE WITH OTHER ANSI FILTERS
  223.  
  224.    The installation of the ANSI filter may be made contingent on not detecting
  225.    the presence of ANSI.SYS or another ANSI-like utility intercepting the FAST
  226.    CONSOLE interrupt (29h) of DOS, such as ANSI.COM (Copyright 1989 Ziff-Davis
  227.    Corp.), or the potential presence of such utilities may be ignored (and the
  228.    filter forced to install).
  229.  
  230.    The presence of an installed ANSI-like utility can be ascertained using the
  231.    Status/Usage/Help panel displayed when the command 'VIZ ?┘' is issued; the
  232.    Status line at the bottom of the screen displays one of the following:
  233.  
  234.     ANSI.SYS    Indicates that interrupt 29h (see below) points to a
  235.             resident code containing a device driver header with
  236.             the attributes of a character device servicing calls
  237.             to INT 29h and the device name 'CON.' This is likely
  238.             to be ANSI.SYS or an ANSI-compatible device driver.
  239.  
  240.     ANSI.COM    Indicates that interrupt 29h (see below) points to a
  241.             resident code containing the string 'CON    ' at the
  242.             place where the device driver name should be, but it
  243.             does not contain other elements of the device driver
  244.             header.  This is an ANSI-compatible resident utility
  245.             of the type of ANSI.COM.
  246.  
  247.     ANSI: No    Indicates absence of the above conditions.
  248.  
  249.  
  250.    ANSI IMPLEMENTATIONS
  251.  
  252.    The ANSI-compatible filter implements the following subset of ANSI 3.64-1979
  253.    standard escape sequences to control console video functions (see your MS/PC
  254.    DOS documentation of ANSI.SYS commands):
  255.  
  256.     Selection of the foreground and background colors on a color display or
  257.     the text attributes on a monochrome display system. The sequence syntax
  258.     is <Esc>[#;...;#m, where # is 30-37 to select a foreground color, 40-47
  259.     47 to select a background color, and 0-1, 4-5 or 7-8 to select the text
  260.     attributes.
  261.  
  262.     Selection of the video mode (similar to using the MODE command of DOS).
  263.     The sequence syntax is <Esc>[=#h or <Esc>[=#l, where # is 0-6 or higher
  264.     (depending on the adapter card in use).
  265.  
  266.     Selection of word wrapping, i.e. whether lines longer than the width of
  267.     the screen are truncated. The sequence syntax is <Esc>[?7h or <Esc>[?7l
  268.     to turn word wrapping ON or OFF, respectively.
  269.  
  270.     Cursor positioning for the following sequences:
  271.  
  272.         <Esc>[r#;c#H  Move to specified row (r#) and column (c#)
  273.         <Esc>[r#;c#f  Same a previous sequence
  274.         <Esc>[r#A     Move cursor up by specified number of rows
  275.         <Esc>[r#B     Move cursor down by specified number of rows
  276.         <Esc>[c#C     Move forward the specified number of columns
  277.         <Esc>[c#D     Move backward the specified number of columns
  278.  
  279.         <Esc>[s       Store current position of the cursor
  280.         <Esc>[u       Restore to the position stored by <Esc>[s
  281.  
  282.         <Esc>[K       Erase from the cursor to end of the line
  283.         <Esc>[2J      Clear all rows and home cursor (this sequence
  284.                   preserves current color attribute)
  285.  
  286.  
  287.    Not supported by the filter are the cursor-position-reporting ANSI sequence
  288.    (<Esc>[r#;c#R), and the supplementary set of sequences used by the ANSI.SYS
  289.    driver to permit reprogramming of the keyboard (i.e., <Esc>[#;'string';3p),
  290.    a set which is not part of the 1979 ANSI standard.
  291.  
  292.    Thus, you should consider using the ANSI filter of VIz, instead of ANSI.SYS
  293.    or other ANSI-like utility, when interested in using video escape sequences
  294.    alone, without any keyboard remapping.
  295.  
  296.                 -----------------
  297.  
  298.    4.  USAGE
  299.                VIZ [/Switches] [;Comments]
  300.  
  301.    The switches can be entered from:
  302.  
  303.     (1) the DOS command line (COMMAND.COM shell prompt)
  304.     (2) a batch file
  305.     (3) a DOS environment string with the format VIZ=/SWITCH1.../SWITCHn
  306.  
  307.  
  308.    Switches can be given in any order.  Any character between space and slash
  309.    [/] can be used as a switch delimiter.  Switches are not case sensitive.
  310.  
  311.    Switches /A, /B, /C, /D, /I, /M, /P, /R, and /S are "sticky" parameters in
  312.    the sense that the video change they produce will remain in effect even if
  313.    VIz is made quiescent or is uninstalled.
  314.  
  315.    --------------------------------------------------------------------------
  316.    (*) Switches marked with asterisks are available only in registered copies
  317.    --------------------------------------------------------------------------
  318.  
  319.  
  320.    SWITCH /?
  321.  
  322.      This switch displays the Status/Usage/Help panels, which are described in
  323.      more detail in the section below.  If a VGA or EGA is the active adapter,
  324.      the program saves the contents of the palette registers prior to changing
  325.      the video attributes for its various displays.  See section STATUS/USAGE/
  326.      HELP PANELS below.
  327.  
  328.      NOTE: (EGA users only) The default IBM palette attributes are restored if
  329.      the BIOS fails to store properly the original data.
  330.  
  331.  
  332.  * SWITCH /A[±]
  333.  
  334.      Installs a resident filter to implement (the video subset of) ANSI escape
  335.      sequences; the installation may be made contingent upon failure to detect
  336.      the presence of the DOS driver ANSI.SYS or some ANSI-like residents (/A),
  337.      or to ignore their potential presence (/A+).
  338.  
  339.      Although the filter can take advantage of VIz acceleration, its operation
  340.      does not require the enabling of the resident accelerator module, and its
  341.      activity can be controlled independently with the following switches:
  342.  
  343.     * /A    If VIz is not yet installed, adds the ANSI filter module
  344.         to the resident code to be installed, provided that ANSI
  345.         or another logical device named 'CON     ' mediating int
  346.         29h (see #3 above) is not installed, and inactivates the
  347.         remapping of the EGA/VGA palette via /C+, /Cn:n, or /Cm.
  348.  
  349.  
  350.     * /A+   If VIz is not yet installed, adds the ANSI filter module
  351.         to the resident code to be installed, even when ANSI.SYS
  352.         or a similar CON utility has already been installed, and
  353.         inactivates the remapping of the EGA/VGA palette via /C+
  354.         /Cn:n, or /Cm.
  355.  
  356.         If VIz is already installed, and the resident filter was
  357.         made inactive with /A-, /A+ reactivates the ANSI filter.
  358.  
  359.  
  360.     * /A-   Inactivates the filter, if installed and active. It also
  361.         reactivates a previously active remapping of the EGA/VGA
  362.         palette.
  363.  
  364.      Defaults: /A = /A+; null switch = no resident on installation.
  365.  
  366.      The ANSI module does not become resident unless switch /A[+] is specified
  367.      at the time VIz is being installed and cannot be added after installation
  368.      of the resident(s).
  369.  
  370.  
  371.  * SWITCH /Bn
  372.  
  373.      Selects the color for the screen border in text modes, and the background
  374.      and border color in graphic modes.  This color is specified by <n>, a one
  375.      or two digit number representing the Red-Green-Blue mixture for the color
  376.      using an octal (base 8) format ranging from 0 to 77 (see Switch C below).
  377.  
  378.      Switch /C+ also sets the screen border; the default border for the EGA is
  379.      black, and the screen background attribute for other color adapters.
  380.  
  381.  
  382.    SWITCH /Cn:m±?
  383.  
  384.      Allows for color changes in the EGA/VGA color palette, which consists of
  385.      16 registers, and is used to map video memory data into colors.  Both in
  386.      (the EGA-compatible modes of) the VGA and the EGA, the value in each one
  387.      of these registers determines the amount of Red, Green, and Blue mixture
  388.      in the displayed color.
  389.  
  390.      This amount can be represented by the data bits <RGBrgb>, where <000rgb>
  391.      shows the color at 33%, <RGB000> at 66%, and <RGBrgb> at 100% intensity.
  392.      These bits, and their resultant color, are shown below using both binary
  393.      (base 1) and octal (base 8) number formats:
  394.  
  395.       ┌─────────┬───────┬─────────────┐
  396.       │ binary  │ octal │    Color    │    Since the binary format takes up a
  397.       ├─────────┼───────┼─────────────┤    lot of space it is more convenient
  398.      +│ 000 000 │  00   │ 100% black  │    to use the 2-digit octal format to
  399.       │ 000 001 │  01   │  33% blue   │    represent an RGB value. The binary
  400.       │ 000 010 │  02   │  33% green  │    equivalence of octal numbers is:
  401.       │ 000 011 │  03   │  33% cyan   │
  402.       │ 000 100 │  04   │  33% red    │
  403.       │ 000 101 │  05   │  33% magenta│         0o = 000000b
  404.       │ 000 110 │  06   │  33% yellow │         1o = 000001b
  405.       │ 000 111 │  07   │  33% white  │         2o = 000010b
  406.       ├─────────┼───────┼─────────────┤         3o = 000011b
  407.      +│ 001 000 │  10   │  66% blue   │         4o = 000100b
  408.      +│ 010 000 │  20   │  66% green  │         5o = 000101b
  409.      +│ 011 000 │  30   │  66% cyan   │         6o = 000110b
  410.      +│ 100 000 │  40   │  66% red    │         7o = 000111b
  411.      +│ 101 000 │  50   │  66% magenta│        10o = 001000b
  412.      +│ 110 000 │  60   │  66% yellow │        11o = 001001b
  413.      +│ 111 000 │  70   │  66% white  │        12o = 001010b
  414.       ├─────────┼───────┼─────────────┤        13o = 001011b
  415.      +│ 001 001 │  11   │ 100% blue   │        14o = 001100b
  416.      +│ 010 010 │  22   │ 100% green  │        15o = 001101b
  417.      +│ 011 011 │  33   │ 100% cyan   │        16o = 001110b
  418.      +│ 100 100 │  44   │ 100% red    │        17o = 001111b
  419.      +│ 101 101 │  55   │ 100% magenta│        20o = 010000b
  420.      +│ 110 110 │  66   │ 100% yellow │           etc
  421.      +│ 111 111 │  77   │ 100% white  │
  422.       └─────────┴───────┴─────────────┘
  423.         (+) IBM default color palette
  424.  
  425.      Of course, other colors can also be generated when using a different RGB
  426.      mixture value.  For instance, a desaturated (i.e., whitish) RGB sequence
  427.      is obtained in the octal range 71o through 76o.
  428.  
  429.      This palette control is also enabled (versions 2.42+) for the monochrome
  430.      mode of VGA and MCGA video adapters to remap color codes into gray-scale
  431.      values.  The following services are available:
  432.  
  433.     * /C:n  The RGB values of the palette registers is set by a 16-
  434.         number sequence in which these two-digit, octal numbers
  435.         are separated by colons (:) as in the following example
  436.  
  437.            /C03:00:20:30:40:50:01:77:70:11:22:33:44:55:66:76
  438.  
  439.         which shows the default palette colors used by VIz when
  440.         switch /C? is used.  If less than 16 numbers are given,
  441.         their RGB values are loaded into the respective palette
  442.         registers starting from register 0.  When a non-numeric
  443.         value is provided, the palette is not changed.
  444.  
  445.  
  446.     * /Cm±  The VGA and MCGA adapters emulates a 16-color text mode
  447.         for a monochrome display, and the palette consists of 4
  448.         groups of four shades of gray. In MONOCHROME modes, /Cm
  449.         loads a palette in which the gray-scale value increases
  450.         uniformly with increasing attribute values; the palette
  451.         corresponds to the following command
  452.  
  453.            /C00:50:01:31:61:12:42:03:43:04:44:05:55:26:07:77
  454.  
  455.         Switch /Cm can also be used with CGA monochrome systems
  456.         (e.g., laptops) to translate color attributes into gray
  457.         scale values.
  458.  
  459.         In COLOR modes, switch /Cm± enables [+] or disables [-]
  460.         the gray-scale summing of the RGB mixture. The summing,
  461.         carried out by the BIOS, sets the gray-scale equivalent
  462.         of a given color to 30%, 50%, and 11% of the Red, Green
  463.         and Blue value in the video digital-to-analog registers
  464.         (these percentages are close to the relative brightness
  465.         of the displayed 'pure' red, green, and blue).
  466.  
  467.  
  468.       /C?   This service provides a display of the palette registers
  469.         and the corresponding RGB mixture in octal format. It is
  470.         possible to alter the RGB mixture of any register simply
  471.         by pressing <R>, <G>, or <B> and then <> or <>.  These
  472.         arrows cycle through 0%, 33%, 66%, and 100% intensity of
  473.         the respective RGB component.  The actual RGB mixture of
  474.         the selection is also shown on a graph.  Press the right
  475.         or left arrow to cycle through the registers, and <HOME>
  476.         to go to register 0 or <END> to go to register 15.
  477.  
  478.         Press <ENTER> to save the current palette, <ESC> to quit
  479.         the service without any palette changes, <DEL> to reject
  480.         any change and to restart the service, and the indicated
  481.         function keys to load several available palettes.
  482.  
  483.  
  484.     * /C-   Use to inactivate the implementation of EGA/VGA palette
  485.         changes via VIz.  The video attributes remain unchanged
  486.         until the a video operation reloads the palette, e.g. a
  487.         video mode change.  Switch /A+ also turns off remapping
  488.         of the palette.
  489.  
  490.  
  491.     * /C+   Use to reactivate the implementation of EGA/VGA palette
  492.         changes via VIz; it reloads the last color palette that
  493.         was selected via VIz.  Switch /A- reactivates remapping
  494.         if remapping was in effect prior to an /A+ request.
  495.  
  496.      Defaults: /C = /C+.
  497.  
  498.      The selected EGA/VGA color palette changes are asserted (i.e. the palette
  499.      is loaded with the selected RGB values) each time a video mode change, or
  500.      a video font change, is requested and VIz is enabled (i.e., no /Q switch,
  501.      no graphics mode, and no video page other than 0).
  502.  
  503.      To preserve the small size of Viz, there is no hotkey pop-up service.  If
  504.      during the execution of an application the color palette changes, the RGB
  505.      values selected via VIz cannot be asserted except by shelling to DOS (and
  506.      executing VIz with the switch /C+ to reload the palette) or by triggering
  507.      a video mode/font change.
  508.  
  509.  
  510.  * SWITCH /D±n
  511.  
  512.      Adjusts brightness of screen (VGA card only); the brightness change step
  513.      is specified by the sign and value of <±n>, which is a decimal number of
  514.      1 or 2 digits, with or without a sign, in the range from -63 to +63. Use
  515.      of high negative or positive numbers can result in an unreadable screen.
  516.      Selection of /D0 results in the restoration of the screen to its default
  517.      settings (as dictated by the manual controls of the monitor).
  518.  
  519.      Defaults: /D = /D+2; /D1 = /D+1; /D- = /D-2.
  520.  
  521.  
  522.  * SWITCH /E
  523.  
  524.      Creates or updates the variable VIZ=/SWITCH1.../SWITCHn in the DOS global
  525.      environment, where /SWITCH1.../SWITCHn are the switches to be implemented
  526.      when VIz is executed from the DOS command line without any arguments.  If
  527.      the 'VIZ' variable already exists, switch /E updates the contents of this
  528.      variable.  Although switch /E is incorporated into the variable contents,
  529.      its presence is ignored when VIz uses this variable as input.
  530.  
  531.      Switch /E modifies the DOS global environment irrespective of whether the
  532.      resident shell is the initial copy of COMMAND.COM (global environment) or
  533.      a secondary copy (local environment).  See the INSTALLATION section below
  534.      for more details.  No defaults.
  535.  
  536.  
  537.  * SWITCH /FHtg
  538.  
  539.      If VIz detects a HERCULES card adapter (HGC or HGC+), switch /FHt changes
  540.      the card to text mode (80x25) whereas switch /FHg changes the card to its
  541.      default (page 0) 720x348 graphics mode.
  542.  
  543.  * SWITCH /Fn±
  544.  
  545.      If VIz detects an EGA or VGA adapter, switch /Fn permits the selection of
  546.      the number of screen rows to be displayed.  The following video fonts are
  547.      supported: 12 or 14 (EGA or VGA), 25 (EGA and VGA), 28 (VGA), 35 (EGA and
  548.      VGA) and 43 or 50 (EGA or VGA) screen rows.  Except for the 12/14 and 35-
  549.      row fonts, implementation of the selected font is maintained until switch
  550.      /F-, which disables font implementation, or another font is selected; the
  551.      font implementation can be reenabled with /F+.
  552.  
  553.      If a number <n> is not specified, switch /F toggles between 25-row and 43
  554.      (EGA) or 50-row (VGA) screens.  (If an EGA/VGA adapter is found, VIz also
  555.      selects the alternate BIOS print-screen service to avoid the default BIOS
  556.      print-screen routine that works with 25 rows only.)  For a 25-row screen,
  557.      an 8x14 font is used in an EGA and a 9x16 font in a VGA.  Fonts with more
  558.      than 25 rows can be loaded only if the video page is between 0 and 3.
  559.  
  560.      No defaults.
  561.  
  562.  
  563.  * SWITCH /Gn
  564.  
  565.      The frequency in Hz (cycles per second) of 55-ms bell tones is specified
  566.      by <n>, a decimal number of up to 4 digits, in the range from 25 to 5000
  567.      Hz.  Values below 25 become 25 Hz and above 5000 become 5000 Hz; if more
  568.      than 4 digits are given only the four least-significant digits are used,
  569.      e.g., 50,000 Hz is read as 0000, triggering the use of 25 Hz.
  570.  
  571.      The bell tones always last 55 ms (one tick of the 8253/8254 timer chip).
  572.      Since the tones are forced to begin at the start of a 55-ms tick period,
  573.      stacked bell rings will result in a distinctive, staccato-like burst due
  574.      to the intervening silent 55-ms tick periods.
  575.  
  576.      Most computer speakers seem to work properly within the range from about
  577.      100 Hz to about 3,000 Hz.  Frequencies for the octave starting at middle
  578.      are C=523 Hz, D=587 Hz, E=659 Hz, F=699 Hz, A=880 Hz, and B=988 Hz.  The
  579.      frequencies for higher [lower] octaves increase [decrease] approximately
  580.      by a factor of 2 per octave change from the above values.
  581.  
  582.      Defaults: /G = /G440.
  583.  
  584.  
  585.  * SWITCH /H
  586.  
  587.      Loads the resident in the Upper Memory Area (UMA), between addresses 640
  588.      kb and 1,024 kb of memory; this is the region below the 1-Mb boundary of
  589.      the memory accessible by 086 CPUs, but above the 640-kb hardware barrier
  590.      of MS-DOS.  The switch requires an available upper memory block (UMB) of
  591.      about .9 to 1.7 kb (depending on the number of modules to be installed),
  592.      which is allocated by the program itself either via a direct XMS request
  593.      or, when DOS controls the UMB allocation (i.e. DOS 5.0 linked to the UMA
  594.      through the command DOS=UMB in CONFIG.SYS), via DOS calls. Allocation of
  595.      UMBs requires the presence of an XMS manager (XMM) that supports the UMB
  596.      services 10h-11h of the XMS 2.0, and (if the XMM lacks the capability of
  597.      remapping memory) the presence of an UMB provider.
  598.  
  599.    * SWITCH /Hn
  600.  
  601.      A lower upper-memory limit for the UMB loading can also be requested via
  602.      switch /Hn, in which <n> is a four-digit hexadecimal number between A000
  603.      (640 kb) and FFFF (1,024 kb), in order to avoid or select specific areas
  604.      of upper memory.
  605.  
  606.    * SWITCH /Hn@
  607.  
  608.      A lower-memory resident marker can also be installed along with the UMB
  609.      resident via switch /H@ or /Hn@; the marker occupies 144 bytes of lower
  610.      conventional memory, can be identified in some memory mapping utilities
  611.      by the name
  612.                 VIz @ UMB
  613.  
  614.      and is released from memory when the UMB resident is uninstalled.  This
  615.      marker may be used (1) to remind that the resident is already installed
  616.      in upper memory, (2) to help locate the UMB installation address in the
  617.      case of some mapping utilities, and (3) to help avoid removal conflicts
  618.      when lower and upper-memory residents are interspersed.
  619.  
  620.      Defaults:  Low-memory installation if any error is found during the UMB
  621.      loading; high-memory installation below lower-address limit if UMBs are
  622.      not available above such limit.
  623.  
  624.  
  625.  * SWITCH /I±
  626.  
  627.      Selects how background color attributes with a hexadecimal value in the
  628.      range from 8h to Fh (bit 7=1) are displayed in text modes.
  629.  
  630.     * /I-   High-bit attributes produce a blinking character on a
  631.         background of normal (medium) intensity.
  632.  
  633.     * /I+   High-bit attributes result in a steady character on an
  634.         intense background.
  635.  
  636.      Defaults: Null switch = /I- on installation.
  637.  
  638.  
  639.  * SWITCH /K±
  640.  
  641.      Disables [+] or enables [-] access of the CPU to video RAM in VGA/MCGA.
  642.      It can be used to kill BIOS-mediated displays that cannot be redirected
  643.      to the NUL device.
  644.  
  645.     * /K-   Enable CPU access to video RAM (normal display).
  646.  
  647.     * /K+   Disable CPU access to video RAM (blanked display).
  648.  
  649.      Defaults: /K = /K+; null switch = /K- on installation.
  650.  
  651.  
  652.  * SWITCH /Mn
  653.  
  654.      Selects the video mode specified by <Hn>, in which <n> is a hexadecimal
  655.      number between 0 and FF, or <Dn>, where <n> is a decimal number between
  656.      0 and 255. NOTE: There is no checking that the selected mode is a valid
  657.      one for the adapter.  No defaults.
  658.  
  659.  
  660.  * SWITCH /N±
  661.  
  662.      Determines whether or not noncritical program messages are displayed.
  663.  
  664.     * /N-   Noncritical messages are displayed via the redirectable
  665.         StdOut device of DOS.
  666.  
  667.     * /N+   Noncritical messages are not displayed, in which case a
  668.         a brief bell tone is sounded when a error has occurred.
  669.  
  670.      Defaults: /N = /N+; null switch = /N- on installation.
  671.  
  672.      Since VIz beeps when a command error is detected, /N- should need to be
  673.      used only after such a beep to display the error message again.  Please
  674.      note that the installing, uninstalling, and critical-error VIz messages
  675.      cannot be redirected and are always displayed.  The final status of the
  676.      operation can be monitored in batch files with the ERRORLEVEL commands.
  677.  
  678.  
  679.  * SWITCH /Pn
  680.  
  681.      Selects the video page specified by a number <n> in the range of 0 to 7
  682.      for 25-row display EGA/VGA, 0 to 3 for 43/50-row display EGA/VGA, and 0
  683.      to 3 for CGA.  No defaults.
  684.  
  685.  
  686.    SWITCH /Q
  687.  
  688.      Forces the video accelerator into a quiescent mode; if loaded, the ANSI
  689.      filter and the Cursor blink resident are NOT inactivated.  The overhead
  690.      video time for having VIz quiescent is an additional 2% or less of that
  691.      without VIz.  (Even when it is quiescent or during graphic video modes,
  692.      the accelerator still monitors the video interrupt to check for page or
  693.      mode change requests.)  A quiescent mode lasts until the next execution
  694.      of the program, unless switch /Q or /? has been selected.  No defaults.
  695.  
  696.  
  697.  * SWITCH /R±
  698.  
  699.      Selects the mode of processing text output that is used by DOS.  In the
  700.      normal ('cooked') mode, the kernel builds a device request for a single
  701.      character output, makes a Ctrl-C check, and then passes this request to
  702.      the StdOut console device; if no error is found, the buffer pointer and
  703.      character count are updated.  This process is repeated until either the
  704.      end-of-file character (ASCII 26, Ctrl-Z) is found or all characters are
  705.      processed.  Tabs (ASCII 9) are expanded to 8 spaces.
  706.  
  707.      In the binary ('raw') mode, instead of filtering the stream for control
  708. |    characters, DOS passes a single request header to the device.  Control-
  709. |    C, Control-P, and Control-S keyboard entries are not checked during I/O
  710. |    operations.  Depending on the DOS version, DOS-mediated video output in
  711.      binary mode is faster by factor of about 1.40 or so.
  712.  
  713.     * /R-   Changes DOS processing to the normal or 'cooked' mode.
  714.  
  715.     * /R+   Changes DOS processing to a binary or 'raw' mode.
  716.  
  717.  
  718.      Defaults: Null switch = /R- on installation.
  719.  
  720.      When executed, some utilities set the DOS processing mode to 'raw,' and
  721.      then change it to normal when they finish, irrespective of the original
  722.      mode.  Other utilities set the mode to 'raw' and leave it on.  Repeated
  723.      use of switch /R+ may be necessary to maintain the binary DOS mode.
  724.  
  725. |    NOTE: If the DOS binary mode is selected, the 'BREAK=ON' command should
  726. |    also be issued to facilitate detection of Control-C entries during disk
  727. |    and other operations.
  728.  
  729.  
  730.  * SWITCH /Sn±
  731.  
  732.      Enables [Sn+] or disables [Sn-] special services triggered by some keys
  733.      that can have untoward effects under some circumstances, especially for
  734.      LAN servers.
  735.  
  736.     * /S1±  Enables [+] or disables [-] the printing of the screen
  737.         triggered by the <PrtSc> key.  /S1- is useful when the
  738.         number-pad keys are used often, and the possibility of
  739.         triggering unwanted prints is commensurably high. More
  740.         importantly, if the machine is not connected to an on-
  741.         line printer, <PrtSc> will freeze the system.
  742.  
  743.     * /S2±  Enables [+] or disables [-] the dynamic halt, which is
  744.         triggered by the <Pause> key (PS/2s and COMPAQs) or by
  745.         the <Ctrl><NumLock> combination (in PCs).  The halt is
  746.         maintained until another key is pressed.  This service
  747.         is available only if the Cursor module is also loaded.
  748.  
  749.      Defaults: /S = /S1+; /S = /S1+; /S2 = /S2+; null switch = /Sn+ on
  750.                installation.
  751.  
  752.  
  753.      If /S1± (or /S± or simply /S) is requested at the time of installation,
  754.      VIz also selects the alternate BIOS print-screen service if the adapter
  755.      is an EGA or VGA, in order to handle screen lengths longer than 25 rows
  756.      (this alternate service is needed if other screen fonts are to be used,
  757.      since the BIOS default service only prints 25 lines.
  758.  
  759.      Some EGAs do not work properly when this alternate print-screen service
  760.      is enabled.  If the selection of switch /S1± during installation yields
  761.      a print-screen malfunction, install VIz without selecting /S1±, /S±, or
  762.      /S±, and only then select switch /S1 in a subsequent execution.
  763.  
  764.  
  765.    SWITCH /U
  766.  
  767.      Uninstalls the resident from memory.  The request is not honored if any
  768.      of the interrupt vectors intercepted by the program do not point to the
  769.      resident, indicating subsequent installation of other resident(s) using
  770.      the same interrupt(s) or the revectoring of such interrupts by a prior,
  771.      ill-behaved resident.
  772.  
  773.      In general, the program should be uninstalled only when it was the last
  774.      resident to be loaded; in practice, however, it can also be uninstalled
  775.      if subsequently loaded residents do not hook the same interrupts as the
  776.      program (even though this increases memory fragmentation, the resulting
  777.      "hole" is innocuous, and may be used by DOS for other purposes, such as
  778.      local environment blocks).  No defaults.
  779.  
  780.  
  781.    SWITCH /V±n
  782.  
  783.      Selects the loading of the resident cursor module. This module does not
  784.      become resident unless /V+ or /Vn is specified at the time VIz is being
  785.      loaded; this module cannot be added to the resident after the loading.
  786.  
  787.       /Vn   Enforces a cursor whose shape alternates between a full
  788.         block and a thin line, in which <n> is a decimal number
  789.         (of 1 or 2 digits) specifying the alternation rate from
  790.         0.055 s [/V1] to 5.5 s [/V99].
  791.  
  792.       /V0   Forces the display of a continuous, full block cursor.
  793.  
  794.       /V-   Disables the display of the cursor.  Due to a potential
  795.         BIOS conflict, switch /V- is ignored at the time of VIz
  796.         loading; to make the cursor invisible, first use /V+ or
  797.         /Vn and then /V-.
  798.  
  799.       /V+   Reverses the cursor changes produced by /Vn and /V-.
  800.  
  801.      Defaults: /V = /V+; null switch = no resident on installation.
  802.  
  803.  
  804.  * SWITCH /X±
  805.  
  806. |    If the DOS video output to the Standard Output device (StdOut) is being
  807. |    mediated by VIz (see switch /Z±), switch /X controls whether the StdOut
  808. |    can or cannot be redirected to a file or another device (such as NUL or
  809. |    PRN) by the commands '>' or '>>' from the DOS command line.  Switch /X-
  810. |    provides a further acceleration of DOS text output.
  811. |
  812. |    * /X-   The INT 21/40h/1 DOS video output is always displayed,
  813. |        i.e., it cannot be redirected.
  814. |
  815. |    * /X+   The INT 21/40h/1 DOS video output can be redirected to
  816. |        a file or another device.
  817. |
  818. |     Defaults: /X = /X+; null switch = /X+ on installation.
  819.  
  820.  
  821.    SWITCH /Z±
  822.  
  823.      Directs the video output through INT 21h, function 40h, device handle 1
  824.      ('write to StdOut device') to the DOS console driver or the accelerator
  825.      module of VIz.  Mediation of the INT 21h/40h/1-output to VIz produces a
  826.      considerable acceleration of DOS text output in MS-DOS versions 2 to 5.
  827.  
  828.       /Z-   INT 21/40h/1 video output is allowed to be processed by
  829.         the installed CON driver.
  830.  
  831.       /Z+   INT 21/40h/1 video output is redirected to the teletype
  832.         subservice of VIz.  Each TAB is expanded to 8 spaces in
  833.         text modes of 80 or more columns (the DOS default), and
  834.                4 spaces in text modes of 40 columns.
  835.  
  836.      Defaults: /Z = /Z+; null switch = /Z+ on installation.
  837.  
  838.      NOTE: Because the MS-DOS command 'DIR /W' uses a 4-space tab expansion,
  839.      instead of the default 8-space, switch /Z+ affects the DIR /W display.
  840.  
  841.                     ---------
  842.  
  843.    The COMMENTS may be added in the DOS command line after the specification
  844.    of the switches.  These comments, which may be useful in clarifying batch
  845.    files, must be preceded by a semicolon (;), and are ignored by VIz.
  846.  
  847.    Do not use the DOS redirection and pipe characters in the comments as DOS
  848.    will attempt to implement the implied redirection or pipe request.
  849.  
  850.                 -----------------
  851.  
  852.    5.  STATUS/USAGE/HELP PANELS
  853.  
  854.    Executing the program with switch /? selected allows access to the Status/
  855.    Usage and Help panels. (If a Mouse pointing device driver, compatible with
  856.    the Microsoft Mouse driver version 6.0 or higher is loaded and active, all
  857.    of the services provided by these panels can also be activated by pointing
  858.    the mouse to specific regions of the screen and clicking either button.)
  859.  
  860.    The STATUS/USAGE panel, which is shown first, describes status information
  861.    for the resident and some video services. The bottom line shows the status
  862.    of the StdOut stream redirection, ANSI filter, DOS text processing and the
  863.    current value of the video page and video mode.  A succinct explanation of
  864.    the status of the highlighted service can be obtained by pressing the left
  865.    or right keypad arrow keys or by clicking the mouse upon the screen button
  866.    labelled <Status>; these explanations can be erased by pressing key <F10>.
  867.    The video mode number shown in the Status panel is followed by an asterisk
  868.    if a mode higher than n+128 is detected (AT and PS/2 machines only); thus,
  869.    mode 131 is displayed as 3*.
  870.  
  871.    The USAGE subpanel shows a menu for the command switches: To cycle between
  872.    the main and the auxiliary menu, press key <F2> or <M>, or click the mouse
  873.    upon the screen button labelled <Menu>.  If the resident is installed, the
  874.    status of some 'on/off' command switches is displayed by '+' or '-' before
  875.    a given menu entry.
  876.  
  877.    The HELP panel provides a summary description of the program and commands,
  878.    and is displayed if key <F1> or <H> is pressed from the Status/Usage panel
  879.    (or if the mouse is clicked upon the screen button labelled <Help>). Press
  880.    the keypad cursor keys (Home/End, PgUp/PgDn, arrows) to scroll the display
  881.    down or up.  Press key <F1> to skip the brief program summary and position
  882.    the text on the Usage section directly.  Press key <Esc> or <F2> to return
  883.    to the Status/Usage panel.
  884.  
  885.    Press key <X> or click the mouse upon the screen button labelled <eXit> to
  886.    return to the DOS-prompt command line from either panel.
  887.  
  888.  
  889.    NOTE: When the program is waiting for keyboard (or mouse input) during the
  890.    display of the Status/Usage panel, it calls repeatedly the IDLE interrupts
  891.    of DOS: INT 28h and, if MS-DOS 5+ is installed, function 1608h of INT 2Fh;
  892.    INT 28h allows a potential background activation of (some) other residents
  893.    while INT 2Fh/1608h allows DOS to suspend the idle program temporarily and
  894.    transfer control to another program.
  895.  
  896.                 -----------------
  897.  
  898.    6.  INSTALLATION
  899.  
  900.    It is recommended that VIz be installed before other residents also using
  901.    the BIOS interrupt 10h (video input/output).  Due to the intrinsic nature
  902.    of the implementation, VIz does not chain some the interrupt-10h calls to
  903.    residents located down the intercepted interrupt chain. In order for such
  904.    residents to have access to these data, they need to be loaded after VIz.
  905.    Thus, it may be convenient to install VIz early in the AUTOEXEC.BAT file.
  906.  
  907.    The larger the number of residents intercepting interrupt 10h before VIz,
  908.    the slower the absolute video acceleration provided by the program.  This
  909.    is because each call has to be processed by each element in the interrupt
  910.    chain.  One way to minimize the problem is to install a minimum number of
  911.    residents via the AUTOEXEC.BAT and, before executing a given application,
  912.    install additional residents via a batch file that also executes the main
  913.    application, and removes these transient residents upon the completion of
  914.    the task. (VIz itself may fall in this transient category.)
  915.  
  916.    If you intend to make use of the resident ANSI filter in a more permanent
  917.    manner, VIz may also be installed just as described above; if you want to
  918.    remove the ANSI component after a given ANSI-oriented task, however, then
  919.    VIz should be the last resident to be installed prior to such a task.
  920.  
  921.    The driver ANSI.SYS needs not to be loaded or, if loaded, removed, to use
  922.    the ANSI resident of VIz.  However, if any ANSI-like utility were already
  923.    installed and active, and VIz were switched to its 'fast DOS' mode (/Z+),
  924.    such an utility might be unable to process escape sequences, unless these
  925.    sequences were sent directly to the CON device via calls to interrupt-29h
  926.    instead of interrupt 21h.
  927.  
  928.  
  929.    6.1  INSTALLATION IN UPPER MEMORY
  930.  
  931.    This section describes in more detail aspects of the active (i.e., self-
  932.    loading) or passive (e.g. via DOS LOADHIGH) installation of the resident
  933.    in the upper memory region.
  934.  
  935.  
  936.    DIRECT UPPER-MEMORY AREA LOADING
  937.  
  938.    The utility can self-install the resident in the upper memory area (UMA),
  939.    that is, RAM addresses between 640 kb and 1,024 kb, via switch /H (or its
  940.    subfunctions /Hn, /H@, and /Hn@).  Program releases prior to version 4.02
  941.    lack this feature.
  942.  
  943.    The allocation of UMA blocks (UMBs) is arbitrated by an XMS manager (XMM)
  944.    version 2.0 or higher; the XMM must be installed prior to the UMB-loading
  945.    of the resident.  Allocation also requires the remapping of UMA addresses
  946.    by a UMB provider, when such a task is not implemented by the XMM itself.
  947.    The XMM HIMEM.SYS and the UMB-provider EMM386.EXE are distributed with MS
  948.    DOS 5.0; the allocation of UMBs is controlled by DOS when these 2 drivers
  949.    are installed, and the command 'DOS=UMB' is added to the CONFIG.SYS file.
  950.    Of course, other 386-specific memory managers, such as 386MAX or QEMM386,
  951.    provide both UMB remapping and XMS support.  All XMMs require DOS version
  952.    3.0 or higher.
  953.  
  954.    Switch /Hn, where A000 ≤ n ≤ FFFF (hexadecimal), allows the specification
  955.    of a minimum upper-memory limit for the UMB to avoid UMA regions having a
  956.    very slow access time (or to preserve regions with a fast access time for
  957.    other utilities that require faster times, such as a disk cache or screen
  958.    accelerator), or to avoid fragmentation of the UMA when UMB allocation is
  959.    not controlled by DOS 5, but by the XMM itself.  Such a fragmentation may
  960.    occur when the XMM allocates blocks on a first-fit basis, i.e., the first
  961.    available UMB having the lowest UMA address is allocated, irrespective of
  962.    whether or not a (smaller) block matching the requested size is available
  963.    at a higher UMA address.  Unless the size of the available UMBs increases
  964.    with increasing memory address, first-fit allocation of a small UMB leads
  965.    to the breaking of large UMA blocks into smaller ones, thus hampering the
  966.    UMB installation of larger residents.
  967.  
  968.    When DOS controls the UMB allocation, the program enforces the allocation
  969.    of the resident block on a best-fit basis when <n> is not specified, that
  970.    is, all available blocks are searched (by DOS), and the one matching most
  971.    closely the size requested is allocated.
  972.  
  973.    When DOS controls UMB allocation and <n> is specified, UMBs are allocated
  974.    on a first-fit basis.  While this may contribute to UMA fragmentation, it
  975.    allows for the checking of a minimum memory limit in those cases in which
  976.    the selection or avoidance of a specific UMA region is more important.
  977.  
  978.    Hence, compared to the upper-memory installation provided by the LOADHIGH
  979.    command of DOS 5.0, or similar services provided by some memory managers,
  980.    program self-loading into a UMB has several advantages, including: (1) it
  981.    does not require an initial free block of upper memory of the size of the
  982.    entire program (as opposed to the size of its resident only), (2) it does
  983.    allow user control on the selection of the upper-memory block, and (3) it
  984.    can help reduce UMA fragmentation.
  985.  
  986.    NOTE: The address and size of available UMBs can be obtained with MEM.EXE
  987.    (when DOS controls UMB allocation) or via the memory manager itself (when
  988.    this allocation is controlled by 386-specific memory managers.  In either
  989.    case, such data can also be obtained with UMAX.EXE, a UMA mapping utility
  990.    that is distributed by the author.
  991.  
  992.  
  993.    HIGH-LOADING VIA MEMORY MANAGERS OR DOS 5+
  994.  
  995.    Of course, the resident can also be installed in the UMA via a 386-memory
  996.    manager or via (UMB-linked) DOS 5.0, provided that there is enough memory
  997.    for the actual size of the entire program, and any additional memory that
  998.    may be needed by the loading utility.
  999.  
  1000.    To minimize disk storage, the program is distributed as a compressed file
  1001.    that expands upon its execution. The difference between the actual loaded
  1002.    size and the nominal directory size may create conflicts with high-memory
  1003.    loading programs that fail to measure the actual size: When the available
  1004.    high memory is not sufficient to permit the file expansion, but is larger
  1005.    than the nominal directory size, such programs will load the (compressed)
  1006.    utility. The subsequent expansion will then overwrite adjacent memory and
  1007.    likely crash the memory manager or DOS, or both.
  1008.  
  1009.    The program expands by a factor of about 1.35.
  1010.  
  1011.    NOTE:  The program requires an additional 2,600 bytes of available memory
  1012.    beyond its decompressed size to be able to implement switch /F14 or /F35;
  1013.    Screen contents are restored after the panels displayed by switch /C? and
  1014.    /? only if an additional 4,600 bytes of memory are available.
  1015.  
  1016.  
  1017.    6.2  UPPER-MEMORY UPDATING
  1018.  
  1019.    When the program has been installed in upper memory, it does not require
  1020.    a high-memory loading utility to update its resident and all updates can
  1021.    be made via program executions from the DOS-command line.  This obviates
  1022.    the restriction (of some memory systems) of having to maintain a pool of
  1023.    of free upper memory simply to load the entire program to update a small
  1024.    resident.  Program releases prior to version 3.40 lack this feature.
  1025.  
  1026.  
  1027.    6.3  UPPER-MEMORY DEALLOCATION
  1028.  
  1029.    When resident deallocation is requested (switch /U) from the DOS command
  1030.    line (as opposed to via upper-memory loading utilities), the resident is
  1031.    removed from memory even when it was loaded in the UMA; the confirmation
  1032.    request of versions 3.00 to 3.16 is no longer required.
  1033.  
  1034.    When switch /U is requested via a high-memory utility be aware that some
  1035.    of these utilities warn that a "resident installation has failed."  This
  1036.    warning is harmless and may be ignored.
  1037.  
  1038.  
  1039.    6.4  MEMORY MAPPING UTILITIES
  1040.  
  1041.    Although the program releases its own copy of the environment at the time
  1042.    of installation (to reduce resident size), the resident can be identified
  1043.    in lower-memory usage maps by the name
  1044.  
  1045.                 VIzxxx
  1046.  
  1047.    that appears in the command-line listing of most memory mapping utilities
  1048.    irrespective of the actual contents of the command line when this program
  1049.    is installed in lower conventional memory; in this name, 'xxx' represents
  1050.    the release number (e.g., 421).
  1051.  
  1052.    However, when UMB loading is mediated by the XMS directly (e.g., extended
  1053.    memory manager and DOS versions 2 to 4, or DOS 5 not configured under the
  1054.    command 'DOS=UMB'), and the resident is installed in a UMB via switch /H,
  1055.    most memory mapping utilities do not list the allocated UMB, lump it with
  1056.    other allocated blocks, or fail to show the name of the resident.  If the
  1057.    identification of the UMB resident is required, use switch /H@ or /Hn@ to
  1058.    load in lower RAM a small resident marker that shows up in memory maps.
  1059.  
  1060.    When the allocation of UMBs is controlled by DOS (e.g. DOS 5.0 configured
  1061.    under the command DOS=UMB, and the drivers HIMEM.SYS and EMM386.EXE), the
  1062.    UMB resident can be identified with some mapping utilities (e.g. MEM.EXE)
  1063.    although it is often listed as "Data" instead of "Program."  Other memory
  1064.    mapping utilities identify the UMB resident only when an associated lower
  1065.    memory marker is also installed.
  1066.  
  1067.                 -----------------
  1068.  
  1069.    7.  TECHNICAL INFORMATION
  1070.  
  1071.    This section describes information that may be of use in case of conflicts
  1072.    arising when other terminate-and-stay resident programs are loaded.
  1073.  
  1074.  
  1075.    7.1  INTERRUPTS
  1076.  
  1077.    The following hardware and software interrupts are intercepted depending on
  1078.    the program configuration:
  1079.  
  1080.    INTERRUPT 8h (system timer)
  1081.  
  1082.    Channel 0 of the 8253/8254 timer chip produces a hardware interrupt (IRQ0),
  1083.    interrupt 8h, about 18.2 times a second that is used by the system time-of-
  1084.    day clock. When the cursor module is installed, switch /Vn (n=0 or 1 to 99)
  1085.    forces the display of the block cursor, either in continuous or alternating
  1086.    manner. Cursor shape is implemented via commands using either 16-bit (word)
  1087.    or 8-bit (byte) output, depending on the VIz version that was selected.
  1088.  
  1089.    INTERRUPT 10h (video BIOS)
  1090.  
  1091.    The accelerator module of VIz intercepts the ROM BIOS video interrupt, 10h.
  1092.    When the system is in page 0 and a text mode, video acceleration occurs for
  1093.    subfunctions 0h through Eh, except for subfunctions 4h, 7h, Bh, and Ch.
  1094.  
  1095.    INTERRUPT 21h (DOS services)
  1096.  
  1097.    Starting with version 2.0, DOS allows the redirection of the Standard Input
  1098.    (StdIn) and Standard Output (StdOut) console device, permitting programs to
  1099.    send input to or to receive output from other programs.  Unless redirected,
  1100.    the StdIn comes from the keyboard and the StdOut goes to the screen.  These
  1101.    and some other devices can be addressed by predefined DOS 'file handles' as
  1102.    if they were disk files.  A common DOS-mediated technique to send output to
  1103.    the screen is to write to the handle 1 (StdOut) via interrupt 21h, function
  1104.    40h; in fact, this is the preferred method of DOS-mediated video output for
  1105.    DOS version 2.0 or higher.
  1106.  
  1107.    The accelerator module of VIz also intercepts interrupt 21h. Switch /Z+ re-
  1108.    directs the 21h/40h/1-console stream (StdOut) to the accelerator, resulting
  1109.    in significant accelerations of the DOS video services. The acceleration is
  1110.    not increased by setting the DOS mode to "raw" (see below).  Switch /Z- (or
  1111.    default installation) permits the 21h/40h/1-video output to be processed by
  1112.    the 'CON' device.
  1113.  
  1114.    The redirection of StdOut to VIz does not conflict with the CLS command (as
  1115.    the redirection does not affect interrupt 29h [see section 6.2]). Selection
  1116.    of switch /Z+, however, voids any redirection of the StdOut, including that
  1117.    to the 'NUL' device (e.g. to avoid some messages), since the 21h/40h-stream
  1118.    is intercepted by VIz before the output can be redirected by DOS.
  1119.  
  1120.    Switch /Z requests are not disregarded when ANSI.SYS, ANSI.COM, or VIz-ANSI
  1121.    filter is active.  The redirection of StdOut to VIz by switch /Z+, however,
  1122.    will conflict with ANSI commands sent to the CON device via standard-output
  1123.    calls to INT 21h, function 40h/1.  In contrast, ANSI commands using INT 29h
  1124.    are not affected by switch /Z+ (see below).
  1125.  
  1126.    INTERRUPT 29h (fast console)
  1127.  
  1128.    The ANSI-compatible module of VIz intercepts interrupt 29h, an undocumented
  1129.    feature present in all recent versions of DOS. INT 29h is normally provided
  1130.    by the built-in console device driver of DOS, and consists of a call to the
  1131.    BIOS interrupt 10h.  DOS uses INT 29h instead of the normal request-passing
  1132.    mechanism to accelerate output to the current 'CON' device. The ANSI module
  1133.    filters this output.
  1134.  
  1135.    If a request to inactivate the installed ANSI filter is encountered (switch
  1136.    /A-), VIz checks whether the INT 29h can be restored to its original memory
  1137.    address. If the revectoring is not possible (i.e. when another resident has
  1138.    also intercepted INT 29h), this filter remains partially active in order to
  1139.    handle an ANSI escape sequence generated by COMMAND.COM to clear the screen
  1140.    when a CLS command is detected (see below); other ANSI escape sequences are
  1141.    ignored by the filter and passed to the screen.  Hence, when revectoring is
  1142.    possible, switch /A- has the same effect as installing VIz without a switch
  1143.    /A, except that the memory occupied by the ANSI filter is not released; the
  1144.    filter is reactivated by a subsequent call to execute VIz with switch /A+.
  1145.  
  1146.    VIz versions 3.64 and higher do not redirect interrupt 29h to the teletype
  1147.    service of VIz any longer (old switch /X±), since a much faster DOS output
  1148.    can be obtained with switch /Z.
  1149.  
  1150.  
  1151.    7.2  CLS COMMAND AND INT 29h
  1152.  
  1153.    The internal console device driver installed during booting handles the CLS
  1154.    as well as INT-29h service. The CLS procedure of COMMAND.COM first tests to
  1155.    see if (1) the standard-output handle is associated with a character device
  1156.    driver (bit 7=1), and (2) the driver services INT 29h (bit 4=1).  If one or
  1157.    both tests fail, or if both tests are successful but the vector for INT 29h
  1158.    does not point to the memory segment of the DOS kernel, COMMAND.COM outputs
  1159.    the ANSI escape sequence <Esc>[2J to INT 29h; otherwise, it makes a call to
  1160.    INT 10h, subfunction 6 of the BIOS to clear the screen.
  1161.  
  1162.    When INT 29h cannot be revectored on /A-, the partial driver activity slows
  1163.    down slightly the DOS video output whenever the ASCII character 27 (Esc) is
  1164.    found in the character stream. This partial activity is needed, however, as
  1165.    DOS issues an ANSI escape sequence to clear the screen whenever INT 29h has
  1166.    been revectored.  Thus, if VIz were not to retain its ANSI driver partially
  1167.    active when revectoring of INT 29h is not possible, the DOS escape sequence
  1168.    would be displayed (without clearing the screen) whenever a CLS command was
  1169.    issued.
  1170.  
  1171.  
  1172.    7.3  ENVIRONMENT VARIABLE 'VIZ'
  1173.  
  1174.    When the program is executed without arguments from the DOS command line
  1175.    (or a batch file), it searches the DOS environment for a variable having
  1176.    the format
  1177.             VIZ=/SWITCH1/SWITCH2..../SWITCHn
  1178.  
  1179.    Up to 128 characters are allowed after the equal sign. This string can be
  1180.    incorporated to the environment block via the 'SET' command of DOS or via
  1181.    switch /E of this program (see below).  Program releases prior to version
  1182.    3.63 lack this feature.
  1183.  
  1184.    While the SET command modifies the current DOS environment block, whether
  1185.    it is the global or a local one, switch /E only modifies the global block
  1186.    (even when the program is executed via a secondary COMMAND.COM, as in the
  1187.    case of shelling out to DOS from an application).   Notice that the local
  1188.    environment block is only a copy of the global block and lacks sufficient
  1189.    room to increase significantly the length of a variable, and that changes
  1190.    made to a local environment are not inherited by the global one.
  1191.  
  1192.    When searching for the environment variable, the program uses the current
  1193.    DOS environment block, whether it is the global or a local one.
  1194.  
  1195.    A recommended use of the environment string is to specify a default /Cn:n
  1196.    setting (e.g. /C03:00:20:30:40:50:01:77:70:11:22:33:44:55:66:76) that can
  1197.    be restored simply by executing VIz without any arguments after the color
  1198.    palette has been changed.
  1199.  
  1200.  
  1201.    7.4  ERRORLEVELS
  1202.  
  1203.    Upon exit its to DOS, the program passes execution status values that can
  1204.    be tested via ERRORLEVEL commands in a batch file.  The following are the
  1205.    values for version 4.20 or higher:
  1206.  
  1207.           Value   Condition
  1208.           -----   --------------------------------------
  1209.         255   Failure of cyclical redundancy check
  1210.         255   CPU type cannot execute version code
  1211.         255   Invalid DOS version
  1212.  
  1213.         254   Invalid ANSI (switch /A) request
  1214.         253   Unknown/incompatible video adapter
  1215.         252   Not enough additional RAM (/C? /? /F14 /F35)
  1216.         251   Hooked interrupts revectored
  1217.         250   Invalid cursor (switch /Vn) request
  1218.  
  1219.         128   XMM not installed or UMB load/unload error
  1220.          96   DOS environment error
  1221.          64   Incomplete color palette data list
  1222.          32   Invalid color palette datum
  1223.          16   Invalid video font for adapter and/or page
  1224.           8   Invalid video mode request
  1225.           4   Invalid video page for adapter and/or font
  1226.           2   Invalid video adapter for the request
  1227.           1   Unknown or invalid switch request
  1228.           0   Successful execution
  1229.  
  1230.  
  1231.    NOTE: Because some of the error conditions in the range from 1 to 128 are
  1232.    non-fatal (i.e., the program can recover execution), and the error values
  1233.    are additive, the final errorlevel value may represent more than a single
  1234.    error condition.
  1235.  
  1236.    Program releases prior to version 3.10 lack this feature.
  1237.  
  1238.                 -----------------
  1239.  
  1240.    8.  LICENSING INFORMATION
  1241.  
  1242.    This documentation, programs, and other files distributed in this software
  1243.    package (the "Software") are the copyrighted property of  FM de Monasterio
  1244.    (the "Author"), who provides the Software and licenses its use. All rights
  1245.    are reserved.
  1246.  
  1247.    The file VIZ.REG contains a form needed to register this Software.
  1248.  
  1249.    Single User License.  Upon registration, you are granted a nontransferable
  1250.    license to use this Software in a single computer at a time.  The Software
  1251.    may also be transferred to another computer, provided that the Software is
  1252.    used only in one (1) computer at any time; under the license, the Software
  1253.    may be installed on a network server.
  1254.  
  1255.    Site/15-PCs License.  Upon registration, you are granted a nontransferable
  1256.    license to use this Software in a single site, or a set of sites, provided
  1257.    this Software is not used in more than fifteen (15) computers at any time,
  1258.    and that such computers are located exclusively within the site.  Licenses
  1259.    for more machines are available at discounted prices.
  1260.  
  1261.    Refunds Policy.  If a problem notified within ninety (90) days of shipping
  1262.    of the registered copy cannot be solved, the registration fee (but not the
  1263.    shipping costs) will be refunded upon receiving a written request with the
  1264.    original diskette(s) enclosed.
  1265.  
  1266.    Upgrade Policy.  Program upgrades are limited to licensed users.  Upgrades
  1267.    within the same major version (e.g. release 2.00 through 2.99) are free of
  1268.    charge if a self-addressed, stamped diskette mailer with a formatted, 360-
  1269.    kb diskette is included with the request.  Other upgrades are charged half
  1270.    the (single-user/site) registration fee.
  1271.  
  1272.    Technical Support.  A phone number for technical support is made available
  1273.    to site licenses for 100 machines or more; other licensed users must write
  1274.    to the Author who will contact them.
  1275.  
  1276.  
  1277.  
  1278.    U.S. GOVERNMENT INFORMATION
  1279.  
  1280.    The use, duplication, or disclosure by the U.S. Government of the Software
  1281.    is subject to the restricted rights applicable to commercial software that
  1282.    are specified in the subdivision (b.3.ii) of the 'Rights in Technical Data
  1283.    and Computer Software' clause, document DFARS 52.227-7013. The contractor/
  1284.    manufacturer is FM de Monasterio, P.O. Box 219, Cabin John, MD 20818-0219,
  1285.    USA.
  1286.  
  1287.                 ----------------
  1288.  
  1289.    DISTRIBUTION
  1290.  
  1291.    You may distribute this Software via magnetic and/or electronic means, but
  1292.    you are specifically prohibited from:
  1293.  
  1294.     - Charging fees or asking donations in exchange of or payment
  1295.       for copies of this Software.
  1296.  
  1297.     - Distributing this Software with commercial products without
  1298.       the written, express permission in advance from the author.
  1299.  
  1300.     - Distributing this Software via a for-profit organization or
  1301.       group, either alone or with other software.
  1302.  
  1303.     - Modifying any contents of this Software, including, but not
  1304.       limited to, the copyright notice and this license.
  1305.  
  1306.  
  1307.    The unauthorized copying, decompiling or disassembling of this Software is
  1308.    prohibited.  Any other use of this Software is also prohibited without the
  1309.    express, written permission in advance from the author.
  1310.  
  1311.    Latest program releases may be found at the Information Exchange BBS, 202-
  1312.    433-6639 (2400+ baud).
  1313.  
  1314.  
  1315.    TECHNICAL PROBLEMS
  1316.  
  1317.    If you encounter problems when using the Software (which can be replicated
  1318.    in the absence of other resident utilities), please write to the Author at
  1319.    the address above providing your name and address, program version number,
  1320.    machine model and configuration, and a description of the problem(s). When
  1321.    feasible, corrections for such problems may be incorporated in new program
  1322.    releases. Technical support is limited to registered users; correspondence
  1323.    from nonregistered users may not be answered.
  1324.  
  1325.                 ----------------
  1326.  
  1327.    WARRANTY DISCLAIMER
  1328.  
  1329.    The Author cannot and does not warrant that any functions contained in the
  1330.    Software will meet your requirements, or that its operations will be error
  1331.    free.  The entire risk as to the Software performance or quality, or both,
  1332.    is solely with the user and not the Author.  You assume responsibility for
  1333.    the selection of the program to achieve your intended results, and for the
  1334.    installation, use, and results obtained from the Software.
  1335.  
  1336.    The Author makes no warranty, either implied or expressed, including with-
  1337.    out limitation any warranty with respect to this Software documented here,
  1338.    its quality, performance, or fitness for a particular purpose. In no event
  1339.    shall the Author be liable to you for damages, whether direct or indirect,
  1340.    incidental, special, or consequential arising out the use of or any defect
  1341.    in the Software, even if the Author has been advised of the possibility of
  1342.    such damages, or for any claim by any other party.
  1343.  
  1344.    All other warranties of any kind, either express or implied, including but
  1345.    not limited to the implied warranties of merchantability and fitness for a
  1346.    particular purpose, are expressly excluded.
  1347.  
  1348.  
  1349.    LIMITATION OF REMEDIES
  1350.  
  1351.    The information contained in the documentation for the Software is subject
  1352.    to change without notice.
  1353.  
  1354.    The Author's entire liability, and your exclusive remedy shall be: (1) the
  1355.    replacement of an original Software diskette not meeting the above Limited
  1356.    Warranty and which is returned to the Author along with proof of purchase,
  1357.    or (2), if the Author is unable to deliver a replacement diskette which is
  1358.    free of defects, you may terminate the License Agreement by returning this
  1359.    Software and the corresponding license fee will be returned.
  1360.  
  1361.    By using the Software, you acknowledge (1) to have read and understood all
  1362.    parts of this document and (2) to have agreed with and accepted all of its
  1363.    provisions without any reservation.
  1364.  
  1365.                 ----------------
  1366.  
  1367.    Refer all inquiries to:
  1368.                 FM de Monasterio
  1369.                 P.O. Box 219
  1370.                 Cabin John, MD 20818-0219
  1371.                 USA
  1372.  
  1373.  ------------------------------------------------------------------------------
  1374.  [END]
  1375.