Path: utzoo!attcan!uunet!super!udel!gatech!bloom-beacon!husc6!m2c!applix!scott From: scott@applix.UUCP (Scott Evernden) Newsgroups: comp.sys.amiga Subject: Re: Problem with -b vs -b0 option on Lattice Keywords: Lattice V4.01 V5.00 GURU Message-ID: <882@applix.UUCP> Date: 15 Dec 88 21:02:16 GMT References: <29526@tut.cis.ohio-state.edu> Reply-To: scott@applix.UUCP (Scott Evernden) Distribution: na Organization: APPLiX Inc., Westboro MA Lines: 21 In article <29526@tut.cis.ohio-state.edu> erd@tut.cis.ohio-state.edu (Ethan R. Dicks) writes: >struct ExecBase *ExecBase, **EBase; > >EBase = (struct ExecBase **) (4L); >ExecBase = *Ebase; vs. > LEA $4, A0 > MOVE (A0), A6 These don't say the same thing. Your C code suggests that location 4 holds the address of a _pointer_ to ExecBase. This isn't so- location 4 _is_ a pointer to ExecBase. Try: struct ExecBase *ExecBase = (struct ExecBase *) 4; -scott