🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6606

HELP! with WATCOM C and PharLap 386|DOS-Extender

#6606
From: Chih-Shen Chen
Date: Sat, 21 Nov 1992 09:02
28 lines
2032 bytes
Hi, there

	With WATCOM C/386 and PharLap 386|DOS-Extender, I failed to change
the interrupt vector in protected mode.  WATCOM C/386 is new to me.  So I 
am wondering if there's anyone be so kind to give me some help, I will will
sincerely appreciate that.

	I am currently using WATCOM C/386 with PharLap ASM|386, LinkLoc,
and 386|DOS-Extender.  And I  need to change the service routine of packet
driver interrupt.  First, I tried to use _dos_setvect and _dos_getvect 
routines provided in library.  But they didn't work.  I don't know how 
exactly they function inside the library, and doubted that if it uses DOS
INT 21h function 25h in the same way as in real mode (only AH=25h).  After
checking up 386|DOS-Extender manual,  It seems that INT 21h should be called
with AX=2502 and AX=2504 to do these jobs.

	So I wrote two routines in assembly language to replace _dos_setvect
and _dos_getvect, and linked them with the C portions, but still in vain.
What misstaks have I made?  Did I miss something?  Any suggestion or info 
will be appreciated, and please reply via e-mail.  Thanks in advance.

--
Chih-Shen Chen			Internet: cschen@csie.nctu.edu.tw
+--------------------------------------------------------------------+
|  Institute of CSIE, PDP Lab.                                       |
|  National Chiao-Tung University                                    |
|  Hsinchu, Taiwan, R.O.C.                                           |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Technical Details
Message-ID: <1992Nov21.090222.17117@debbie.cc.nctu.edu.tw>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!news.edu.tw!news!debbie!cschen

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!news.edu.tw!news!debbie!cschen
From: cschen@csie.nctu.edu.tw (Chih-Shen Chen)
Subject: HELP! with WATCOM C and PharLap 386|DOS-Extender
Message-ID: <1992Nov21.090222.17117@debbie.cc.nctu.edu.tw>
Sender: usenet@debbie.cc.nctu.edu.tw (News Sender)
Organization: National Chiao Tung University
X-Newsreader: TIN [version 1.1 PL6]
Date: Sat, 21 Nov 1992 09:02:22 GMT
Lines: 28