Posted on 1997-01-05
I am trying to inline PPC assembler with Codewarrior 10 - but not the way it's normally done with CodeWarrior (without a function call if possible) and cannot figure out how to do it Specifically, in the 68k world, I can use the following with no problems:
#pragma parameter SwitchStack(__A0)
extern void SwitchStack(SR *sr) =
0x2178, 0x0BAE, 0x0010,
The call to SwitchStack is placed in my code and I switch stacks. Later I restore my stack with another inline assembler routine. I found the basis for this routine for the 68k on AppleLink years ago. The "classic" way to
inline code messes up the link register. Is there an equivalent SwitchStack routine for the PowerPC that matches what the switch stack for the 68k does?
Thanks for your help,
Useful Software, Inc.