[futurebasic] Re: [FB] [FB^3] Converting 68k toolbox to ppc toolbox

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: "Dr. Steven J. Stratford" <sstratford@...>
Date: Sun, 19 Sep 1999 20:11:33 -0500
> > So--looks like I need BEGINASSEM to generate PPC code. Can someone
> > help convert my YieldToAnyThread function into PPC toolbox code?
>Aaaaaagh no!  The TOOLBOX statement does NOT do a mode switch!!  In PPC
>mode it compiles into a ppc native toolbox call.  In 68k mode it compiles
>into a 68k native toolbox call.
>The reason this is crashing is because in PPC Mac OS the Thread Manager
>lives inside a Shared Library.  What you must do here is tell FB what
>library that is.
>LIBRARY "ThreadManagerLib"  'or ThreadLib, I can't remember
>TOOLBOX FN YieldToAnyThread = WORD `0x42A7,0x303C,0x0205,0xABF2
>Your crash is because the powerpc functions are jumped to by their names
>and no function with the name YieldToAnyThread exists in the default

Oh, that is a relief! Sorry for jumping hastily to a wrong 
conclusion. I'll try this. Thanks!


Steven J. Stratford, InterNetyx.com
Supercharge your website!