delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/27/21:55:50

From: "Charles Wood" <char.*a.="c.r.wood";char.*at="@";char.*b.="worldnet.att.net";printf AT delorie DOT com;;;;;; ("%s%s%s",a,at,b);>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Interrupts reserved for BASIC
Date: Mon, 27 Sep 1999 17:41:43 -0700
Organization: AT&T WorldNet Services
Lines: 39
Message-ID: <7sp36t$5np$1@bgtnsc03.worldnet.att.net>
References: <7slrv7$4nv$1 AT solomon DOT cs DOT rose-hulman DOT edu>
NNTP-Posting-Host: 12.72.132.99
X-Trace: bgtnsc03.worldnet.att.net 938479645 5881 12.72.132.99 (28 Sep 1999 00:47:25 GMT)
X-Complaints-To: abuse AT worldnet DOT att DOT net
NNTP-Posting-Date: 28 Sep 1999 00:47:25 GMT
X-Newsreader: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If you are refering to hooking a vector so that you can call let's say one
program from another, you should have no problems.

If you just want to call the IV for some reason, don't.  I'ts not safe to
call those.  I used them quite a bit once when interfacing a C++ backend
database system with a turbo pascal front end in dos program.  One program
ran, installed the interrupt vector, then spawned the other program.

It's safe.

BTW I used interrupt 0x4c, or $4c (since I used both languages).


I wouldn't ever recommend anyone doing what I did, but I needed C++
templates for database lookups in a 200,000 line pascal program.   Needless
to say it worked.  Have fun!

(OH and don't mix 32bit and 16bit prot mode programs!!!! :)

Charles.

--
Charles Wood
REMOVEMEc DOT r DOT wood AT worldnet DOT att DOT net


Damian Yerrick wrote in message <7slrv7$4nv$1 AT solomon DOT cs DOT rose-hulman DOT edu>...
>I was reading a PC interrupt list one night and saw that nearly half
>of the interrupts are listed as "reserved for Basic." If my program
>is in C/C++, is made with DJGPP, and runs under DOS 6 or later
>or Sindows 9x, then where does Basic enter into the equation?
>
>--
>Damian Yerrick
>http://pineight.webjump.com/
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019