;
                                    SWZ.COM                                   

             Size (recs) CRC   Version    Author/Latest Issue      Disk
               3k (21)   D4A4  1.0        Gene Pizzetta 11/91      Z3COM8

  1- Syntax/Options  2- Notes                                                 


   SWZ is a simple utility that reads  a SmartWatch chip installed in an SB180
and then sets the system clock via ZSDOS.   It works under both the  Micromint
BIOS and XBIOS, using BDOS calls to get and set the BIOS' heartbeat clock.  In
addition,  SWZ will display the  SmartWatch  time  once or  continuously,  and
optionally allows setting the time on  Wyse and TeleVideo terminals as it sets
the system clock.

   This program is machine and operating-system specific.  It will only run on
an SB180 or SB180FX and only under ZSDOS or ZDDOS with a clock module loaded.
:1
  Syntax   SWZ {{/}option}

   If no option is given, the current SmartWatch time is displayed.

 Options 

     S    Set SmartWatch time and date.  SWZ reads the system 
          time from the SB180 "heartbeat" clock via ZSDOS 
          function calls and then sets SmartWatch (see below).

     R    Set system time and date.  SWZ reads the time from 
          SmartWatch and then sets the SB180 "heartbeat" clock 
          via ZSDOS function calls.

     T    Set terminal and system time and date.  SWZ reads the 
          time from SmartWatch and then sets both the SB180 
          "heartbeat" clock via ZSDOS function calls and then 
          sets the terminal time on Televideo and Wyse terminals 
          via escape sequences.  Configuration is necessary 
          before using this option.

     C    Display time continuously.  SWZ reads SmartWatch and 
          displays the time once each second.  Striking any key 
          cancels the display.

     O    Turn off SmartWatch for storage.
 Usage 

   SWZ does not allow setting the  SmartWatch  directly.   First  the  SB180's
system clock must be set using the TIME  utilities that came with the SB180 or
with XBIOS, or by using my ZTIME or the ZSDOS' TD utility.  Then call SWZ with
the S option.  The time will be read from the system clock and SmartWatch will
be set.   XBIOS also stores the day of the week and  hundredth and thousandths
of a second,  but SWZ does not support this elements.   The  SmartWatch day of
the week will be set as calculated by SWZ based on the date.   The  SmartWatch
fractions of a second byte is set to zero.

   Configuration of SWZ can be easily accomplished with ZCNFG and the  accomp-
anying SWZxx.CFG file.  SWZ must configured for the type of SB180 board (FX or
non-FX).   There are several other  configurable  options  available,  such as
enabling the "T" option and selecting the date and time display format.

   The SmartWatch integrated  circuit  must  be  plugged  into the ROM monitor
socket of the SB180 or SB180FX.   The monitor ROM chip is then  plugged piggy-
back into SmartWatch.

   The widely available  "No-Slot"  clock is evidently identical to the Dallas
Semiconductor SmartWatch.  If so, SWZ should work with it without change.
:2
 SWZ Notes 
 
   a. Vs 1.0 (11/14/91, Gene Pizzetta):
      - Similar to SWX, but modified for compatibility with Micromint BIOS and
        ZSDOS.   This version will not set the hundredths and thousandths of a
        second in XBIOS,  nor will it store the day of the  week  there.   For
        that you would need SWX.   Added macros for Hitachi 64180 IN0 and OUT0
        instructions so SLR180 is not required for assembly.
