home *** CD-ROM | disk | FTP | other *** search
- ;*DDK*************************************************************************/
- ;
- ; COPYRIGHT Copyright (C) 1995 IBM Corporation
- ;
- ; The following IBM OS/2 WARP source code is provided to you solely for
- ; the purpose of assisting you in your development of OS/2 WARP device
- ; drivers. You may use this code in accordance with the IBM License
- ; Agreement provided in the IBM Device Driver Source Kit for OS/2. This
- ; Copyright statement may not be removed.;
- ;*****************************************************************************/
- ; SCCSID = %w% %e%
- ;**************************************************************************
- ;*
- ;* SOURCE FILE NAME = DHCALL9.ASM
- ;*
- ;* DESCRIPTIVE NAME = C callable DevHelp Interface
- ;* Real Mode DevHelp Calls
- ;*
- ;*
- ;* VERSION = V2.0
- ;*
- ;* DATE
- ;*
- ;* DESCRIPTION :
- ;*
- ;* Purpose:
- ;*
- ;*
- ;*
- ;*
- ;* FUNCTIONS :
- ;*
- ;*
- ;*
- ;*
- ;*
- ;*
- ;*
- ;* NOTES : These calls are obsolete in OS/2 2.0.
- ;*
- ;*
- ;* STRUCTURES
- ;*
- ;* EXTERNAL REFERENCES
- ;*
- ;*
- ;*
- ;* EXTERNAL FUNCTIONS
- ;*
- ;* CHANGE ACTIVITY =
- ;* DATE FLAG APAR CHANGE DESCRIPTION
- ;* -------- ---------- ----- --------------------------------------
- ;* 10/22/93 @V74979 74979 Change return type to USHORT
- ;*
- ;****************************************************************************
-
- .xlist
- include dhmacs.inc
- .list
-
-
- ;*
- ;* Real Mode Helpers
- ;*
-
-
- Code segment dword public 'CODE'
- assume CS:Code,DS:_DATA
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_ProtToReal();
- ;*
- ;*
-
- DHDef ProtToReal
-
- DHCall
-
- DHRet1
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_RealToProt();
- ;*
- ;*
-
- DHDef RealToProt
-
- DHCall
-
- DHRet1
-
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_ROMCritSection( USHORT EnterExit );
- ;*
- ;*
-
- DHDef ROMCritSection
- DHArgs USHORT, EnterExit
-
- mov ax, Stk.EnterExit
-
- DHCall
-
- DHRet1
-
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_SetROMVector( NPFN IntHandler, USHORT INTNum,
- ;* USHORT SaveDSLoc, PULONG LastHeader );
- ;*
- ;*
-
- DHDef SetROMVector
- DHArgs NPFN, IntHandler
- DHArgs USHORT, IntNum
- DHArgs USHORT, SaveDSLoc
- DHArgs PULONG, LastHeader
- DHArgs PUSHORT, RealModeDS
-
- mov ax, Stk.IntHandler
- mov bx, Stk.IntNum
- mov si, Stk.SaveDSLoc
-
- DHCall
-
- les bx, Stk.LastHeader
- mov es:[bx][0], ax
- mov es:[bx][2], dx
-
- DHRet1
-
-
-
-
-
- Code Ends
-
-
- End
-