#: 12619 S12/OS9/68000 (OSK)
15-Oct-91 08:31:53
Sb: #12618-C language
Fm: Mark Wuest 74030,332
To: Dave Philipsen 73627,710 (X)
Dave,
Function calls in Microware C under OSK have a very predictable method of
passing arguments. The first two arguments will always be in d0 and d1. The
rest are on the stack in order. For simplicity, I would strongly recommend only
passing two arguments to a function in which you wish to have imbedded
assembly.
Another technique you might try is to not pass arguments and set some globals
to the values needed. Then you can access them directly and in a
selfdocumenting manner: arg1(a6), arg2(a6), etc.
Whatever floats your boat!
Mark
|