From: | Allan Odgaard |
Date: | 20 Sep 2001 at 18:31:06 |
Subject: | Re: [amiga-c] Libraries |
On Thu, 20 Sep 2001, Twelvebullets wrote:
> Is there any way to workout the number of equates/Lvos in a Library ??
> Or even get the length of the library (when its been loaded into memory)
It should be possible I gues, have never looked into this. If you tell me
why you'd ever need this info, then perhaps I'll look in the includes for
you ;-)
> Also, What is the NegSize/PosSize. The RKM says its the positions
> before and after the Library. This doesn`t make sense to me....
OpenLibrary() returns a memory pointer. This is a pointer to the library
base (which is often private data) but before this pointer is the jumps to
the functions. So if you need to call a function you'd subtract an offset
from this pointer and jump to there. Thus the jumps are at the negative
side of the pointer...
The reason is so that new functions can be added gracefully...
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/LgMkJD/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/