charles122996
asked on
PowerPC Assembler
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,
.
.
.
0x2E68, 0x0004
};
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,
Charles Copeland
Useful Software, Inc.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.