home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / teseract / source / tess_tp.asm < prev    next >
Encoding:
Assembly Source File  |  1988-10-02  |  4.9 KB  |  143 lines

  1.         PAGE 60,132
  2.         TITLE   TESS_TP.ASM - Surrounds TP4 version of TesSeRact
  3. ;----------------------------------------------------------------------------
  4. SUBTTL  TesSeRact Revision Level 1
  5. ;-----------------------------------------------------------------------------
  6. ;   TesSeRact(tm) -- A Library of Routines for Creating Ram-Resident (TSR)
  7. ;                    programs for the IBM PC and compatible Personal
  8. ;                    Computers.
  9. ;
  10. ;The software, documentation and source code are: 
  11. ;       Copyright (C) 1986, 1987, 1988 Tesseract Development Team
  12. ;       All Rights Reserved 
  13. ;       c/o Chip Rabinowitz
  14. ;       Innovative Data Concepts
  15. ;       2084 Woodlawn Avenue
  16. ;       Glenside, PA 19038
  17. ;       1-215-884-3373
  18. ;
  19. ;-----------------------------------------------------------------------------
  20. ;   This product supports the TesSeRact Standard for Ram-Resident Program 
  21. ;   Communication.  For information about TesSeRact, contact the TesSeRact 
  22. ;   Development Team at:
  23. ;       Compuserve:    70731,20
  24. ;       MCIMAIL:       315-5415
  25. ;   This MCIMAIL Account has been provided to the TesSeRact Development
  26. ;   Team by Borland International, Inc.  The TesSeRact Development Team
  27. ;   is in no way associated with Borland International, Inc.
  28. ;-----------------------------------------------------------------------------
  29. .XLIST
  30.  
  31. TP4     EQU     1                       ;say we're using TP4
  32.  
  33. INCLUDE TESS.INC
  34. INCLUDE MIXED.INC
  35.  
  36. .model  small
  37.  
  38. .LIST
  39.  
  40. DATA    SEGMENT WORD PUBLIC             ;TP Data Segment
  41. DATA    ENDS
  42.  
  43. CODE    SEGMENT BYTE PUBLIC             ;TP Code Segment
  44.  
  45.         ASSUME  CS:CODE, DS:CODE, SS:NOTHING, ES:NOTHING
  46.  
  47. ;
  48. ; PUBLIC routines in TESSTP.TPU
  49. ;
  50.         PUBLIC  TSDOINIT, TSSETSTACK, TESSBEEP, TSCHECKRESIDENT
  51.         PUBLIC  TSENABLE, TSDISABLE, TSCALLUSERPROC, TSGETSTAT
  52.         PUBLIC  TSSETSTAT, TSRELEASE, TSGETPOPTYPE, TSSETADRTP4, FARRET
  53.         PUBLIC  TSRESTART, TSCHECKHOTKEY, TSSTUFFKEYBOARD
  54.         PUBLIC  TSTRIGGERPOP, TSTRIGGERBACK
  55. ;
  56. ; TsSetAdrTP4() procedure
  57. ;
  58. TSSETADRTP4 PROC FAR            ;sets user's addresses for unit to use
  59.                                 ;boolean function, true if set OK
  60.         PUSH    BP              ;added for TP4 by jk, 1-31-88
  61.         MOV     BP,SP
  62.         XOR     AX,AX           ;false flag for return
  63.         MOV     BX,[BP+6]       ;get index 0-5
  64.         CMP     BX,5
  65.         JA      badndx
  66.         SHL     BX,1            ;times 4 bytes per dword
  67.         SHL     BX,1
  68.         ADD     BX,OFFSET PTIMERPROC ;farjump table
  69.         MOV     AX,[BP+8]       ;get offset
  70.         MOV     CS:[BX],AX
  71.         MOV     AX,[BP+0Ah]     ;get segment
  72.         MOV     CS:[BX+2],AX
  73.         MOV     AX,1            ;true flag
  74. badndx: POP     BP
  75.         RET     6
  76.  
  77. FARRET  label   far             ;unit init code sets all to here...
  78.     ret
  79.  
  80.  
  81. ;
  82. ; Internal data areas for indirect calling needed
  83. ;
  84. PTIMERPROC      dd      0
  85. PBACKPROC       dd      0
  86. PMAIN           dd      0
  87. PBACKCHECK      dd      0
  88. PUSERPROC       dd      0
  89. PCLEANUP        dd      0
  90.  
  91. TSSETADRTP4 ENDP
  92.  
  93. ;
  94. ; TesSeRact Source code files
  95. ;
  96. INCLUDE TSINT2F.ASM                     ;globals are in here -- needs to be
  97.                                         ; near the top
  98.  
  99. INCLUDE TSINT13.ASM                     ;other interrupt handlers
  100. INCLUDE TSINT16.ASM
  101. INCLUDE TSINT1C.ASM
  102. INCLUDE TSINT21.ASM
  103. INCLUDE TSINT24.ASM
  104. INCLUDE TSINT28.ASM
  105. INCLUDE TSINT8.ASM
  106. INCLUDE TSINT9.ASM
  107.  
  108. INCLUDE TSPOPUP.ASM                     ;utility routines
  109. INCLUDE TSUTIL.ASM
  110. INCLUDE TSHOT.ASM
  111.  
  112. INCLUDE TSCHKRES.ASM                    ;int 2f, fn 00h - user routine
  113. INCLUDE TSGETPAR.ASM                    ;int 2f, fn 01h - user routine
  114. INCLUDE TSCHKHOT.ASM                    ;int 2f, fn 02h - user routine
  115. INCLUDE TSUSER24.ASM                    ;int 2f, fn 03h - user routine
  116. INCLUDE TSGETDAT.ASM                    ;int 2f, fn 04h - user routine
  117. INCLUDE TSSETHOT.ASM                    ;int 2f, fn 05h - user routine
  118.  
  119. INCLUDE TSENATSR.ASM                    ;int 2f, fn 10h - user routine
  120. INCLUDE TSDISTSR.ASM                    ;int 2f, fn 11h - user routine
  121. INCLUDE TSRELTSR.ASM                    ;int 2f, fn 12h - user routine
  122. INCLUDE TSRESTSR.ASM                    ;int 2f, fn 13h - user routine
  123. INCLUDE TSGETSTA.ASM                    ;int 2f, fn 14h - user routine
  124. INCLUDE TSSETSTA.ASM                    ;int 2f, fn 15h - user routine
  125. INCLUDE TSGETPOP.ASM                    ;int 2f, fn 16h - user routine
  126.  
  127. INCLUDE TSCALTSR.ASM                    ;int 2f, fn 20h - user routine
  128. INCLUDE TSSTUKBD.ASM                    ;int 2f, fn 21h - user routine
  129. INCLUDE TSTRIGPO.ASM                    ;int 2f, fn 22h - user routine
  130. INCLUDE TSTRIGBG.ASM                    ;int 2f, fn 23h - user routine
  131.  
  132. INCLUDE TSDOBEEP.ASM                    ;utility routine
  133.  
  134. INCLUDE TSINIT.ASM                      ;init routines should be at end
  135. INCLUDE TSSTACK.ASM
  136.  
  137.  
  138. CODE    ENDS
  139.  
  140.         END
  141.