#SAS 6.2 Library Question
08-May-93 13:01:20
Sb: #34656-#SAS 6.2 Library Question
Fm: Doug Walker 71165,2274
To: Martin Murray 75300,361
getreg will work OK, but what I generally do is declare the library
base explicitly.
I.E. your prototype says
int myfunc(int x, int y);
your pragma defines "myfunc" as being relative to "mybase" with two
parameters in d0 and d1
You use a LIBPREFIX value of LIB on your SLINK statement
Therefore, you can define your function as
int __asm LIBmyfunc(register __d0 int x, register __d1 int y,
register __a6 struct mylibbase *libbase)
{
}
–Doug