home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL2E.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  1.9 KB  |  96 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 = DHCALL2E.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C callable DevHelp interface
  17. ;*              Memory Management Related 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
  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. ;*    2/ 5/94           78794  File created
  55. ;*
  56. ;****************************************************************************
  57.  
  58.     .xlist
  59.     include dhmacs.inc
  60.     .list
  61.  
  62. ;*
  63. ;*  Memory Management
  64. ;*
  65.  
  66. Code    segment dword public 'CODE'
  67.     assume    CS:Code,DS:_DATA
  68.  
  69.  
  70. ;*
  71. ;*
  72. ;* USHORT APIENTRY DevHlp_VerifyAccess( SEL Selector, USHORT usLength,
  73. ;*                    USHORT MemOffset, UCHAR AccessFlag);             ;
  74. ;*
  75. ;*
  76.  
  77.     DHDef    VerifyAccess
  78.     DHArgs    SEL,     Selector
  79.     DHArgs    USHORT,  usLength
  80.     DHArgs    USHORT,  MemOffset
  81.     DHArgs    UCHAR,     AccessFlag
  82.  
  83.     mov    ax, Stk.Selector
  84.     mov    cx, Stk.usLength
  85.     mov    di, Stk.MemOffset
  86.     mov    dh, Stk.AccessFlag
  87.  
  88.     DHCall
  89.  
  90.     DHRet1
  91.  
  92.  
  93.  
  94. Code    Ends
  95.     End
  96.