home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tsr / mixtsr / readme.doc < prev    next >
Encoding:
Text File  |  1988-06-16  |  2.8 KB  |  73 lines

  1.  
  2.  
  3.  
  4.         Mix TSR Demo
  5.         ---------------------------------------------
  6.  
  7.         This TSR demonstration for the MIX Power C compiler is an
  8.         adaptation of a series of two articles ("Writing Terminate and Stay
  9.         Resident Programs") by Al Stevens which appeared in COMPUTER
  10.         LANGUAGE magazine, February and March of 1988.  These original
  11.         articles described constructing TSRs for Borland International's
  12.         Turbo C and Microsoft's Quick C.
  13.  
  14.         Mix includes an example TSR in its Power C book under the keep()
  15.         function.  The major difficulty in implementing the TSR by Mr.
  16.         Stevens was that the interrupt entry point servicing routine
  17.         provided by MIX ($_INTENT - which is called at the outset of any
  18.         functions declared "interrupt") does not seem to be reentrant -
  19.         there may be a few bugs in it, too.  This was a problem because
  20.         multiple interrupts are trapped by the TSR demo, rather than just
  21.         one in the keep() example.
  22.  
  23.         Therefore, I was forced to abandon ISR (interrupt service routines)
  24.         written in C in favor of assembly language versions.  The
  25.         TSRASM.ASM file provides these ISRs.  (In case you don't have the
  26.         source code option from MIX... which includes the assembler... I
  27.         have enclosed an object version of TSRASM.ASM.)
  28.  
  29.         The files included in this archive are:
  30.  
  31.                 README.DOC      This file you're reading
  32.                 TSR.PRJ         The make file for the TSR
  33.                 TSR.H           Function prototypes
  34.                 TSR.C           Main program (startup)
  35.                 RESIDENT.C      TSR functions to make it resident
  36.                 TSRASM.ASM      ISRs and other minor functions
  37.                 TSRASM.MIX      Object for TSRASM.ASM
  38.                 CLOCK.C         The TSR popup - a memory resident clock
  39.                 TSR.EXE         The TSR ready to go
  40.  
  41.         Hints:
  42.  
  43.                 If you do not have the assembler (source code option),
  44.         remove the TSRASM portion from the TSR.PRJ file.
  45.  
  46.                 If you do have the assembler, verify the pathname used in
  47.         TSRASM.ASM.
  48.  
  49.                 If you adapt the functions to another application, check
  50.         the stack and heap sizes used in the link statement of the make
  51.         file.  Also, you must use the I/O methods used in CLOCK.C.
  52.  
  53.  
  54.         Have fun!  I'll certainly try to field any questions.  This was
  55.         originally posted on PC Library, Minneapolis (612) 435-2554.  I can
  56.         be reached there or through my mailbox:
  57.  
  58.                         Curt Grimley
  59.                         13663 84th Place North
  60.                         Maple Grove,  MN 55369
  61.  
  62.  
  63.         P.S.:  I used Power C Version 1.0.3 by MIX Software, Inc.
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.