🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to read Int 0?

#4798
From: cs106132
Date: Tue, 19 Feb 1991 21:16
21 lines
1028 bytes
   Hi,
I am trying to read the interrupt vector table using direct memory access
using code that looks like this:

     unsigned int far  *ptr;
     unsigned int seg, off;

     ptr = MK_FP (0, 0);
     disable ();
     off = *ptr;
     seg = *(ptr+1);     
     enable ();

Now this routine works for all the interrupts except for Int 0, the divide
overflow interrupt.  I am aware of the swapped byte order, getvect ()...
Does anyone see anything wrong with the code above?  BTW, I am using
Turbo C 2.0 under DOS 3.3 on an Everex 386SX.

Regards,
Tark
Technical Details
Message-ID: <5074@umbc3.UMBC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cmcl2!adm!lhc!mimsy!haven!umbc3!umbc5.umbc.edu!cs106132

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cmcl2!adm!lhc!mimsy!haven!umbc3!umbc5.umbc.edu!cs106132
From: cs106132@umbc5.umbc.edu (cs106132)
Newsgroups: comp.os.msdos.programmer
Subject: How to read Int 0?
Message-ID: <5074@umbc3.UMBC.EDU>
Date: 19 Feb 91 21:16:13 GMT
Sender: newspost@umbc3.UMBC.EDU
Reply-To: cs106132@umbc5.umbc.edu (cs106132)
Distribution: usa
Organization: University of Maryland, Baltimore County
Lines: 21