home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / PCMCIA / CLSAMPLE / STARTUP.ASM < prev   
Encoding:
Assembly Source File  |  1995-04-14  |  1.3 KB  |  55 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. ;STARTASM(),INT3(),LEAVEASM()
  12. ;void NP STARTASM(void),void NP INT3(void),void NP LEAVEASM(void)
  13.  
  14. EXTRN  _StrProc:near
  15. PUBLIC _STRENTRY
  16. PUBLIC INT3
  17.  
  18. _DATA segment  word public 'DATA'
  19. _DATA ends
  20.  
  21. CONST segment  word  public   'CONST'
  22. CONST ends
  23.  
  24. _BSS  segment  word  public   'BSS'
  25. _BSS  ends
  26.  
  27. DGROUP   group CONST,_BSS,_DATA
  28.  
  29. _TEXT    segment word   public   'CODE'
  30. assume CS:_TEXT,ds:DGROUP,es:NOTHING,ss:NOTHING
  31. .286p
  32.  
  33. _STRENTRY proc  far
  34.    int   3
  35.    ;mov word ptr rp[0], bx
  36.    ;mov word ptr rp[2], es
  37.    push es
  38.    push bx
  39.    call _StrProc
  40.    int   3
  41.    pop   bx
  42.    pop   es
  43. ;   add   sp,2
  44.    mov   word ptr es:[bx+3],ax
  45.    ret
  46. _STRENTRY endp
  47.  
  48. INT3  proc  near
  49.    int   3
  50.    ret
  51. INT3  endp
  52.  
  53. _TEXT ends
  54.       end
  55.