[comp.os.msdos.programmer] Trapping int21h...how the hell do I do i

sorrow@oak.circa.ufl.edu (06/22/91)

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
*/

valley@gsbsun.uchicago.edu (Doug Dougherty) (06/22/91)

sorrow@oak.circa.ufl.edu writes:

>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?

ANARKEY is great!  It automatically uses expanded memory (if you give it
the -E switch) so I don't worry about loading it high.  It consumes
about 1200 bytes of conventional memory (& 1 16K page of expanded)
Since the program itself is about 12K, I setup 2K history and AKA
buffers, to fill up the 16K (the granularity of EMS)
--

	(Another fine mess brought to you by valley@gsbsun.uchicago.edu)

sorrow@oak.circa.ufl.edu (06/23/91)

Hmmm...I just downloaded Anarkey4.zip from simtel20 and wasn't that
impressed.  It's ability to use EMS did not impress me too heavily, since
I don't have EMS (just extended memory since I use protected mode programs).

Also, the shareware version has that annoying sign on screen, and although it
does allow a great deal of configurability, I would prefer something written
in C that I could register and get source for.  HISTORY.COM, while outdated,
unreliable, and old, DOES come with Aztec C source ans MASM source.  I have
already edited it heavily to be very UNIX(tm) like, remapped the keys, and
I am adding aliases.

If I could only just change the prompt and add a history viewer and the bang
key...that will come with time.

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
*/

warninm@prism.cs.orst.edu (Michael Warning) (06/24/91)

In article <1991Jun22.042843.3467@midway.uchicago.edu> valley@gsbsun.uchicago.edu (Doug Dougherty) writes:
>sorrow@oak.circa.ufl.edu writes:
>
>>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?
>
>ANARKEY is great!  It automatically uses expanded memory (if you give it

I'd watch out for anarkey... It seemed pretty neat to me one I first tried it, 
but then I found that it would hose the system if you were running under
Windows with dual dos-box's running as windows (instead of full-screen).  The
'doskey' that comes with dos 5.0 seems to work ok though.

					-Mike

valley@gsbsun.uchicago.edu (Doug Dougherty) (06/24/91)

warninm@prism.cs.orst.edu (Michael Warning) writes:

>In article <1991Jun22.042843.3467@midway.uchicago.edu> valley@gsbsun.uchicago.edu (Doug Dougherty) writes:
>>sorrow@oak.circa.ufl.edu writes:
>>
>>>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?
>>
>>ANARKEY is great!  It automatically uses expanded memory (if you give it

>I'd watch out for anarkey... It seemed pretty neat to me one I first tried it, 
>but then I found that it would hose the system if you were running under
>Windows with dual dos-box's running as windows (instead of full-screen).  The
>'doskey' that comes with dos 5.0 seems to work ok though.

That's OK.  I hate Windows.  Works just fine under DV.
--

	(Another fine mess brought to you by valley@gsbsun.uchicago.edu)

mlord@bwdls58.bnr.ca (Mark Lord) (06/24/91)

<>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?

Yes, it can be loaded high with QEMM's LOADHI.  Load ANARKEY *before* SUPERPCK !
-- 
MLORD@BNR.CA  Ottawa, Ontario *** Personal views only ***
begin 644 NOTSHARE.COM ; Free DOS 4.xx utility - use instead of SHARE.EXE
MZQ.0@/P/=`J`_!9T!2[_+H``L/_/+HX&+`"T2<TAO@,!OX0`N1(`C,B.P/.DS
<^K@A-<TAB1Z``(P&@@"ZA`"X(27-(?NZE@#-)P#-5
``
end