home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / watcoapi.zip / lib386 / msgseg32.asm < prev    next >
Assembly Source File  |  2002-09-23  |  2KB  |  68 lines

  1. ;*****************************************************************************
  2. ;*
  3. ;*                            Open Watcom Project
  4. ;*
  5. ;*    Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
  6. ;*
  7. ;*  ========================================================================
  8. ;*
  9. ;*    This file contains Original Code and/or Modifications of Original
  10. ;*    Code as defined in and that are subject to the Sybase Open Watcom
  11. ;*    Public License version 1.0 (the 'License'). You may not use this file
  12. ;*    except in compliance with the License. BY USING THIS FILE YOU AGREE TO
  13. ;*    ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
  14. ;*    provided with the Original Code and Modifications, and is also
  15. ;*    available at www.sybase.com/developer/opensource.
  16. ;*
  17. ;*    The Original Code and all software distributed under the License are
  18. ;*    distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  19. ;*    EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
  20. ;*    ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
  21. ;*    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
  22. ;*    NON-INFRINGEMENT. Please see the License for the specific language
  23. ;*    governing rights and limitations under the License.
  24. ;*
  25. ;*  ========================================================================
  26. ;*
  27. ;* Description:  DOS32GETMESSAGE stub which munges arguments and calls
  28. ;*               DOS32TRUEGETMESSAGE
  29. ;*
  30. ;*****************************************************************************
  31.  
  32. .386p
  33.  
  34.     PUBLIC    sig32
  35.     PUBLIC    DOSGETMESSAGE
  36.     PUBLIC    DOS32GETMESSAGE
  37.     PUBLIC    DosGetMessage
  38.     PUBLIC    Dos32GetMessage
  39.     EXTRN     DOS32TRUEGETMESSAGE:BYTE
  40.  
  41. _MSGSEG32     SEGMENT DWORD PUBLIC USE32 'CODE'
  42.               ASSUME CS:_MSGSEG32, DS:DGROUP, SS:DGROUP
  43.  
  44. sig32:
  45.     db        0FFh, 'MSGSEG32', 0, 1, 80h, 0, 0
  46.     dd        offset L1
  47.  
  48. ;DOSGETMESSAGE:
  49. ;DOS32GETMESSAGE:
  50. DosGetMessage:
  51. Dos32GetMessage:
  52.     lea       eax,sig32
  53.     push      eax
  54.     push      ebp
  55.     mov       ebp,esp
  56.     mov       eax,dword ptr 4H[ebp]
  57.     xchg      eax,dword ptr 8H[ebp]
  58.     mov       dword ptr 4H[ebp],eax
  59.     pop       ebp
  60.     jmp       near ptr FLAT:DOS32TRUEGETMESSAGE
  61. L1:
  62.     db        0FFh
  63.     dw        0
  64.     dw        0FFFFh
  65.  
  66. _MSGSEG32     ENDS
  67.               END
  68.