home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7348 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.2 KB

  1. Path: sparky!uunet!PKSMRVM.VNET.IBM.COM
  2. From: KENKAHN@PKSMRVM.VNET.IBM.COM (Kenneth A. Kahn)
  3. Message-ID: <19930106.014240.726@almaden.ibm.com>
  4. Date: Wed, 6 Jan 93 04:40:39 EST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: Device Drivers
  7. Organization: Staff of IBM Fellow - IBM Personal/370
  8. Disclaimer: This posting represents the poster's views, not those of IBM
  9. News-Software: UReply 3.0
  10. X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)
  11. References: <13786@icarus>
  12. Lines: 18
  13.  
  14. In <13786@icarus> Rick Reitmaier writes:
  15. >    Hi,
  16. >
  17. >    A question about device drivers under OS/2.
  18. >
  19. >    I'm currently trying to program a device driver in
  20. > C (no assembler for me, thanks).  I've been able to figure
  21. > out most things, except for access to the request packet's
  22. > address.  How do I get the pointer to the packet from ES:BX
  23. > (physical device driver reference p3-5) while in my strategy
  24. > routine?
  25. >
  26.  
  27. Somewhere, you're going to have to code some assembly to access the registers
  28. like ES:BX and the ones for calling Device Help routines.  If you using a C
  29. compiler that supports it, e.g. MS-C V6, you can use inline assembly.
  30. Otherwise you're going to have to code some MASM routines and link them with
  31. your C code.
  32.