The functions in PCMOS.OBJ allow a Clipper application to determine if
PC-MOS is the operating system and to control the keyboard looping
detection feature to optomize CPU time sharing in a PC-MOS system.

The information necessary to create these functions was obtained from
the PC-MOS Technical Reference manual.  They were written and tested
under MOS version 4.0.  The functions will probably work under 3.x, but
the procedure ISMOS in PCMOS.ASM would have to be modified and
reassembled. Currently if the MOS version number is not 4.x, the
functions will not do anything.

This is a update to PCMOS2.ZIP.  A bug in IS_PCMOS() was corrected and
the code revised to call the interrupt 16 and D4 handlers directly
rather than issuing an INT instruction.  This method is more efficient
when running on a 386 in virtual 8086 mode.

The functions in PCMOS.OBJ contain:

   IS_PCMOS()  - returns .T. if OS is PC-MOS
   MOS_DIS()   - enables keyboard looping detection, optionally sets
                  detection counter
   MOS_NODIS() - disables keyboard looping detection
   IS_MOSDIS() - returns current state of keyboard looping detection
                  feature
   MOS_SLEEP() - suspends the current task, relinquishing its CPU time
                  until a key is pressed
              


Files in PCMOS.ZIP
==================

README      -   this file
PCMOS.OBJ   -   functions for Clipper and PC-MOS
PCMOS.ASM   -   source code
PCMOS.DOC   -   explanation of problems with PC-MOS & Clipper and
                  examples of function usage
SETDCNT.PAT  -  script file for use with DEBUG to change keyboard
                  looping detection counter


Any questions, comments or suggestions are welcome.  There are no
guarantees, copyrights or any other bs.  If this is useful to you, feel
free to use it.

Don Caton
DC MicroSystems
3017 N. Oakland Forest Dr. #304
Ft. Lauderdale, FL 33309
(305) 485-0221

CIS 71067,1350

