home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL9.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  2.6 KB  |  145 lines

  1. ;*DDK*************************************************************************/
  2. ;
  3. ; COPYRIGHT    Copyright (C) 1995 IBM Corporation
  4. ;
  5. ;    The following IBM OS/2 WARP source code is provided to you solely for
  6. ;    the purpose of assisting you in your development of OS/2 WARP device
  7. ;    drivers. You may use this code in accordance with the IBM License
  8. ;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
  9. ;    Copyright statement may not be removed.;
  10. ;*****************************************************************************/
  11. ; SCCSID = %w% %e%
  12. ;**************************************************************************
  13. ;*
  14. ;* SOURCE FILE NAME = DHCALL9.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C callable DevHelp Interface
  17. ;*                    Real Mode DevHelp Calls
  18. ;*
  19. ;*
  20. ;* VERSION = V2.0
  21. ;*
  22. ;* DATE
  23. ;*
  24. ;* DESCRIPTION :
  25. ;*
  26. ;* Purpose:
  27. ;*
  28. ;*
  29. ;*
  30. ;*
  31. ;* FUNCTIONS  :
  32. ;*
  33. ;*
  34. ;*
  35. ;*
  36. ;*
  37. ;*
  38. ;*
  39. ;* NOTES      : These calls are obsolete in OS/2 2.0.
  40. ;*
  41. ;*
  42. ;* STRUCTURES
  43. ;*
  44. ;* EXTERNAL REFERENCES
  45. ;*
  46. ;*
  47. ;*
  48. ;* EXTERNAL FUNCTIONS
  49. ;*
  50. ;* CHANGE ACTIVITY =
  51. ;*   DATE      FLAG        APAR   CHANGE DESCRIPTION
  52. ;*   --------  ----------  -----  --------------------------------------
  53. ;*   10/22/93  @V74979     74979  Change return type to USHORT
  54. ;*
  55. ;****************************************************************************
  56.  
  57.         .xlist
  58.         include dhmacs.inc
  59.         .list
  60.  
  61.  
  62. ;*
  63. ;*  Real Mode Helpers
  64. ;*
  65.  
  66.  
  67. Code    segment dword public 'CODE'
  68.         assume  CS:Code,DS:_DATA
  69.  
  70. ;*
  71. ;*
  72. ;* USHORT APIENTRY DevHlp_ProtToReal();
  73. ;*
  74. ;*
  75.  
  76.         DHDef   ProtToReal
  77.  
  78.         DHCall
  79.  
  80.         DHRet1
  81.  
  82. ;*
  83. ;*
  84. ;* USHORT APIENTRY DevHlp_RealToProt();
  85. ;*
  86. ;*
  87.  
  88.         DHDef   RealToProt
  89.  
  90.         DHCall
  91.  
  92.         DHRet1
  93.  
  94.  
  95. ;*
  96. ;*
  97. ;* USHORT APIENTRY DevHlp_ROMCritSection( USHORT EnterExit );
  98. ;*
  99. ;*
  100.  
  101.         DHDef   ROMCritSection
  102.         DHArgs  USHORT,  EnterExit
  103.  
  104.         mov     ax, Stk.EnterExit
  105.  
  106.         DHCall
  107.  
  108.         DHRet1
  109.  
  110.  
  111. ;*
  112. ;*
  113. ;* USHORT APIENTRY DevHlp_SetROMVector( NPFN IntHandler, USHORT INTNum,
  114. ;*                                      USHORT SaveDSLoc, PULONG LastHeader );
  115. ;*
  116. ;*
  117.  
  118.         DHDef   SetROMVector
  119.         DHArgs  NPFN,    IntHandler
  120.         DHArgs  USHORT,  IntNum
  121.         DHArgs  USHORT,  SaveDSLoc
  122.         DHArgs  PULONG,  LastHeader
  123.         DHArgs  PUSHORT, RealModeDS
  124.  
  125.         mov     ax, Stk.IntHandler
  126.         mov     bx, Stk.IntNum
  127.         mov     si, Stk.SaveDSLoc
  128.  
  129.         DHCall
  130.  
  131.         les     bx, Stk.LastHeader
  132.         mov     es:[bx][0], ax
  133.         mov     es:[bx][2], dx
  134.  
  135.         DHRet1
  136.  
  137.  
  138.  
  139.  
  140.  
  141. Code    Ends
  142.  
  143.  
  144.         End
  145.