🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Source for TSR to Abort Program on SysRq

#4656
From: Bryan D. Nehl
Date: Tue, 12 Feb 1991 21:29
19 lines
1330 bytes
Does someone have C or Assembly source code that they could give me that
lets you abort the current program by hitting the SysRq key?

For example: Load the program as a TSR.  Debugging an application program
and it winds up in an infinite loop.  Hit SysRq and you're back in DOS.

I have something right now that is pretty crude, that almost works by 
hooking the Print Screen Interrupt and then calling Int 21, 00h.  The
problem with it though is that it doesn't clean things up.  It tends
to leave the aborted program in RAM.

Thanks in advance.

Bryan.

/* === Bryan Nehl ========= kodiak@Kodiakpc.Manhattan.KS.US =======+
[  Software Engineer -- USDA -- WERU ][ bdn@chepil.weru.ksu.edu    ]
[     (913) 532-6233 or 532-6495     ][ kodiak@matt.ksu.ksu.edu    ]
+_________ ...!rutgers!ksuvax1!matt.ksu.ksu.edu!kodiak __________ */
Technical Details
Message-ID: <1991Feb12.212925.17489@maverick.ksu.ksu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!matt.ksu.ksu.edu!kodiak

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!matt.ksu.ksu.edu!kodiak
From: kodiak@matt.ksu.ksu.edu (Bryan D. Nehl)
Newsgroups: comp.os.msdos.programmer
Subject: Source for TSR to Abort Program on SysRq
Message-ID: <1991Feb12.212925.17489@maverick.ksu.ksu.edu>
Date: 12 Feb 91 21:29:25 GMT
Sender: news@maverick.ksu.ksu.edu (The News Guru)
Organization: Kansas State University
Lines: 20