Article View: comp.sys.amiga.tech
Article #3170Re: LoadSeg() problems
From: Paul John Falstad
Date: Sat, 07 Apr 1990 17:13
Date: Sat, 07 Apr 1990 17:13
25 lines
1656 bytes
1656 bytes
In article <10663@cbmvax.commodore.com> thomas@cbmvax (Linda Thomas) writes:
>In article <15113@phoenix.Princeton.EDU> pfalstad@phoenix.Princeton.EDU (Paul John Falstad) writes:
>>
>> I'm having trouble with the LoadSeg() function call. Whenever I call it,
>> it loads the specified segment except for one thing: the first word is
>> written over with what seems to be garbage.
>>
>
>LoadSeg() does not return a pointer to the code. It returns a BPTR to a
>SegList. From C you can get a pointer to the first segment by:
> [stuff deleted]
>Linda Thomas, Commodore Amiga Test Engineering
>UUCP ...{uunet,rutgers}!cbmvax!thomas or thomas@cbmvax.commodore.com
Yes, I know, that's not the problem. I call LoadSeg() and use the BPTR
to get a pointer to the first seg in the seglist. The contents of the
seglist are fine, except for the first word. I converted all the BPTR's
to CPTR's, etc.
I seem to have fixed this problem by putting a WaitBlit() after the
LoadSeg(). I know it sounds utterly ridiculous, but it seems to work.
If I have further problems, I'll post a code fragment. Thank you.
pfalstad@phoenix.princeton.edu
Technical Details
Message-ID:
<15188@phoenix.Princeton.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!wuarchive!udel!princeton!phoenix!pfalstadReferences:
<15113@phoenix.Princeton.EDU> <10663@cbmvax.commodore.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!wuarchive!udel!princeton!phoenix!pfalstad From: pfalstad@phoenix.Princeton.EDU (Paul John Falstad) Newsgroups: comp.sys.amiga.tech Subject: Re: LoadSeg() problems Message-ID: <15188@phoenix.Princeton.EDU> Date: 7 Apr 90 17:13:10 GMT References: <15113@phoenix.Princeton.EDU> <10663@cbmvax.commodore.com> Reply-To: pfalstad@phoenix.Princeton.EDU (Paul John Falstad) Distribution: comp.amiga.tech Organization: Princeton University, NJ Lines: 25