TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TECH@SOFTBYTELABS.COM
date: 1998-04-15 15:45:00
subject: Re: PowerBASIC TSR -- CAL

From: Tech@SoftByteLabs.com
Subject: Re: PowerBASIC TSR -- CALL SUB's in it from regular program?
 
On Wed, 15 Apr 1998 10:48:52 -0500, Tom Hansen 
wrote:
 
>I decided to post my TSR calling idea in a separate message, to
>perhaps catch the eye of someone who may have done it.
>
>I'll quote verbatim the section of the message I already posted,
>under the subject "Large App in PDS..."
>
>
>Perhaps we could somehow utilize the "TSR" features of PowerBASIC to
>make our "runtime" into a TSR that could then somehow be CALLED from
>our programs.  Has this been done???
>
>It should be theoretically possible to create some sort of jump table
>and have a small OBJ linked into each EXE, in which there would
>be small "stubs" for each SUB in the runtime, and these
>"stubs" would access the jump table to actually CALL the correct
>routine in the TSR.  We don't have the time or resources to explore
>this possibility ourselves, but it at least indicates that perhaps
>someone out there may have done it.
>
>
>Help???
 
 
Hi there,
 
Well, sounds like a good idea.  The way I would do it is to make all
your subs and functions interrupt driven.  Choose an INT that DOS
or your OS don't use (forgot which but I think about &H7x) and use
it just like you would DOS INT.  I've made a TSR before for graphic
functions in DOS and it worked beautifully, fast, and reduces the EXE
size since the obj linked was relatively small compare to the TSR if
it would be a LIB.
 
Michael
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.