home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHRET.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  1.9 KB  |  93 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. ;**************************************************************************
  12. ;*
  13. ;* SOURCE FILE NAME = DHRET.ASM
  14. ;*
  15. ;* DESCRIPTIVE NAME = C callable DevHelp Interface
  16. ;*                    Common Return Stubs for DHCALLS.LIB
  17. ;*
  18. ;*
  19. ;* VERSION = V2.0
  20. ;*
  21. ;* DATE
  22. ;*
  23. ;* DESCRIPTION :
  24. ;*
  25. ;* Purpose:  The DHCALLx functions jump to the appropriate return
  26. ;*           sequence in this module to conserve code space by
  27. ;*           eliminating redundant return sequences.
  28. ;*
  29. ;*
  30. ;* FUNCTIONS  :
  31. ;*
  32. ;*
  33. ;*
  34. ;*
  35. ;*
  36. ;*
  37. ;*
  38. ;* NOTES
  39. ;*
  40. ;*
  41. ;* STRUCTURES
  42. ;*
  43. ;* EXTERNAL REFERENCES
  44. ;*
  45. ;*
  46. ;*
  47. ;* EXTERNAL FUNCTIONS
  48. ;*
  49. ;* CHANGE ACTIVITY =
  50. ;*   DATE      FLAG        APAR   CHANGE DESCRIPTION
  51. ;*   --------  ----------  -----  --------------------------------------
  52. ;*   mm/dd/yy  @VR.MPPPXX  XXXXX  XXXXXXX
  53. ;*
  54. ;*
  55. ;*
  56. ;*
  57. ;*
  58. ;****************************************************************************
  59.  
  60. ;*
  61. ;*
  62. ;*       DevHlp Common Return routines
  63. ;*
  64.  
  65.         .lall
  66.         .list
  67.  
  68. Code    segment dword public 'CODE'
  69.         assume  CS:Code
  70.  
  71.          irp    c,<0,2,4,6,8,10,12,14,16,18,20,22,24>
  72. ;*
  73. ;*
  74. ;*       DHRET_&c
  75. ;*
  76. ;*
  77.          public DHRET_&c
  78.  
  79. DHRET_&c label  near
  80.  
  81.          pop    bp
  82.          jc     DHR0&c
  83.          xor    ax,ax
  84.          retf   &c
  85. DHR0&c:  or     ax,8000h
  86.          retf   &c
  87.  
  88.          Endm
  89.  
  90. Code    Ends
  91.  
  92.          End
  93.