mlgy@vax5.cit.cornell.edu (06/07/91)
Could someone please send me some example code showing how to call an assembly language routine from SAS C 5.10 with values being passed to the routine in specific registers? Haven't been able to figure it out from the manual except that apparently I've got to use __asm and the register keyword in my function declaration and compile using the -rr option. Currently I'm trying something like this: extern void __asm myasmfunc(register __a2 char *pointer1); and keep getting: error 67: illegal object ^ | Probably something dumb that I'm doing (or not doing) but its 6 am and I haven't slept yet..... Any help will be GREATLY appreciated. Thanks. - Chris -- +---------------------------+----------------------------------------+ | Christopher A. Wolf | The Amiga Exchange BBS (607) 253-7832 | | mlgy@vax5.cit.cornell.edu | 345 megs, 24 hrs, 2400/9600/19.2K baud | +--------------------------------------------------------------------+