🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Trapping int21h...how the hell do I do i

#7234
From: sorrow
Date: Sat, 22 Jun 1991 02:57
31 lines
1679 bytes
In the process of my wonderful little DOS-in-Unix project (hint of sarcasm)
it looks like I will change from HISTORY.COM to ANARKEY.COM...does anyone
know if it A.) hogs too much memory and B.) can be loaded high?

Also, I would like to trap interrupt 21h, subfunction 47h (get current
directory)....the way I would like to do it is this:

interrupt21()
{
   if (ah==0x47) {
    getdirectory();
      changebslash2fslash();
   }
   else
     oldint21();
}

This heavily simplified, but this is the gist of the algorithm....any
ideas on how to do this?  The important part is getting the buffer that
the directory is in so that I can process it...how do I do this?  I don't
know enough ASM to get around these problems....

Brian
/*
Brian Hook -- MS-DOS Programmer for Contract
-----------------------------------------------------------------
"Seamus, that's my dog...I saw her today at the reception...sorry, sixTEEN
inches....better save the women and children first...but this one goes to 11!
..anymore of that plutonium nyborg?....there can be only ONE!....like a 
finger pointing to the moon....ease the seat back...one day closer to death
*/
Technical Details
Message-ID: <0094A7A3.D87919A0@MAPLE.CIRCA.UFL.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!europa.asd.contel.com!gatech!mailer.cc.fsu.edu!uflorida!SORROW@MAPLE.CIRCA.UFL.EDU

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!europa.asd.contel.com!gatech!mailer.cc.fsu.edu!uflorida!SORROW@MAPLE.CIRCA.UFL.EDU
From: sorrow@oak.circa.ufl.edu
Newsgroups: comp.os.msdos.programmer
Subject: Trapping int21h...how the hell do I do i
Message-ID: <0094A7A3.D87919A0@MAPLE.CIRCA.UFL.EDU>
Date: 22 Jun 91 02:57:50 GMT
Sender: news@uflorida.cis.ufl.EDU
Reply-To: sorrow@oak.circa.ufl.edu
Organization: University of Florida CIRCA VAX Cluster
Lines: 31