CompuServe Messages

#CodeWarrior problem

    14-Mar-94 16:32:07
Fm: Dan Podwall 70641,145
To: Antoine ROSSET 100277,164
Here's a short assembler example. It has a parameter, a register local variable, a stack local variable, and returns a result: static short f(short n) { register short a; // a in a data register short b; // b on a stack fralloc + // allocate space on stack // and setup registers move.w n,a add.w a,a move.w a,D0 // return result in D0 frfree // de-allocate stack space rts } You should be able to link with a2 from a 68K. What happens when you try to link? Dan Podwall Metrowerks, Inc.