home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10820 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.9 KB  |  40 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!news.edu.tw!news!debbie!cschen
  3. From: cschen@csie.nctu.edu.tw (Chih-Shen Chen)
  4. Subject: HELP! with WATCOM C and PharLap 386|DOS-Extender
  5. Message-ID: <1992Nov21.090222.17117@debbie.cc.nctu.edu.tw>
  6. Sender: usenet@debbie.cc.nctu.edu.tw (News Sender)
  7. Organization: National Chiao Tung University
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Date: Sat, 21 Nov 1992 09:02:22 GMT
  10. Lines: 28
  11.  
  12. Hi, there
  13.  
  14.     With WATCOM C/386 and PharLap 386|DOS-Extender, I failed to change
  15. the interrupt vector in protected mode.  WATCOM C/386 is new to me.  So I 
  16. am wondering if there's anyone be so kind to give me some help, I will will
  17. sincerely appreciate that.
  18.  
  19.     I am currently using WATCOM C/386 with PharLap ASM|386, LinkLoc,
  20. and 386|DOS-Extender.  And I  need to change the service routine of packet
  21. driver interrupt.  First, I tried to use _dos_setvect and _dos_getvect 
  22. routines provided in library.  But they didn't work.  I don't know how 
  23. exactly they function inside the library, and doubted that if it uses DOS
  24. INT 21h function 25h in the same way as in real mode (only AH=25h).  After
  25. checking up 386|DOS-Extender manual,  It seems that INT 21h should be called
  26. with AX=2502 and AX=2504 to do these jobs.
  27.  
  28.     So I wrote two routines in assembly language to replace _dos_setvect
  29. and _dos_getvect, and linked them with the C portions, but still in vain.
  30. What misstaks have I made?  Did I miss something?  Any suggestion or info 
  31. will be appreciated, and please reply via e-mail.  Thanks in advance.
  32.  
  33. --
  34. Chih-Shen Chen            Internet: cschen@csie.nctu.edu.tw
  35. +--------------------------------------------------------------------+
  36. |  Institute of CSIE, PDP Lab.                                       |
  37. |  National Chiao-Tung University                                    |
  38. |  Hsinchu, Taiwan, R.O.C.                                           |
  39. \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
  40.