Article View: comp.sys.amiga.tech
Article #12852Re: ExecBase
From: Dave Thomas QA
Date: Thu, 25 May 1989 12:53
Date: Thu, 25 May 1989 12:53
37 lines
1526 bytes
1526 bytes
In article <10702@cit-vax.Caltech.Edu> bdiscoe@tybalt.caltech.edu.UUCP
(Ben W. Discoe) writes:
>
> I'm trying to find Execbase. I seem to remember reading somewhere that
> it's always at 0000004 in memory, but it doesn't seem to be there, and
> I can't find my reference any more. Could anyone tell me where it is or
> how to find it?
In article <31472@sri-unix.SRI.COM>, I wrote:
> The pointer to ExecBase is in address 4. In other words:
> struct ExecBase *ExecBase = (struct ExecBase *) 4;
In article <45382@csvax1.cs.tcd.ie> ecarroll@csvax1.cs.tcd.ie (Eddy Carroll)
writes:
> Shouldn't this be:
>
> #include <exec/execbase.h>
> struct ExecBase *SysBase;
> ...
> main()
> {
> ...
> SysBase = *(struct ExecBase **) 4;
> ...
> }
>
> i.e. set SysBase to the contents of the location which contains the
> pointer to ExecBase?
>
Eddy is correct. I must stop posting when I come in to work in the morning.
I don't wake up until lunch :-). Sorry if I misled anyone...
Dave
--
Dave Thomas, Commodore Amiga Test Engineering
UUCP ...{allegra,rutgers}!cbmvax!thomas
Technical Details
Message-ID:
<6978@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cbmvax!thomasReferences:
<31472@sri-unix.SRI.COM> <45382@csvax1.cs.tcd.ie>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cbmvax!thomas From: thomas@cbmvax.UUCP (Dave Thomas QA) Newsgroups: comp.sys.amiga.tech Subject: Re: ExecBase Message-ID: <6978@cbmvax.UUCP> Date: 25 May 89 12:53:05 GMT References: <31472@sri-unix.SRI.COM> <45382@csvax1.cs.tcd.ie> Reply-To: thomas@cbmvax.UUCP (Dave Thomas QA) Organization: Commodore Technology, West Chester, PA Lines: 37