Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!vax5.cit.cornell.edu!mlgy From: mlgy@vax5.cit.cornell.edu Newsgroups: comp.sys.amiga.programmer Subject: Calling assem from C Message-ID: <1991Jun7.063305.5322@vax5.cit.cornell.edu> Date: 7 Jun 91 06:33:05 EDT Distribution: comp Organization: CIT, Cornell University Lines: 23 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 | +--------------------------------------------------------------------+