🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: stealing an interrupt

#3965
From: Edward John Kalenda
Date: Tue, 18 Dec 1990 00:31
13 lines
1008 bytes
Thomas Dwyer write:
> Hi there.  Would some kind soul please tell me why my machine hangs when
> I run this TSR?  What am I doing wrong?

The first problem that comes to mind is that your interrupt handling
routine is doing a jump to a location pointed to by an area in your
data segment. You should use JMP cs:[oldint] since the data segment
at the time the interrupt occurs will be that of the program running,
not your TSR. You're probobly jumping off into space somewhere based on
the value of ds:[oldint] in the current program's frame of reference.

Ed
ekalenda@cup.portal.com
Technical Details
Message-ID: <37017@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!portal!cup.portal.com!ekalenda
References: <90351.150210TOMIII@MTUS5.BITNET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!portal!cup.portal.com!ekalenda
From: ekalenda@cup.portal.com (Edward John Kalenda)
Newsgroups: comp.os.msdos.programmer
Subject: Re: stealing an interrupt
Message-ID: <37017@cup.portal.com>
Date: 18 Dec 90 00:31:25 GMT
References: <90351.150210TOMIII@MTUS5.BITNET>
Organization: The Portal System (TM)
Lines: 13