Path: utzoo!mnetor!uunet!cbmvax!ulowell!m2c!applix!scott From: scott@applix.UUCP (Scott Evernden) Newsgroups: comp.sys.amiga Subject: Re: LVOs and SetFunction Message-ID: <683@applix.UUCP> Date: 28 Mar 88 16:12:58 GMT References: <8803060000.AA29981@cory.Berkeley.EDU> <661@applix.UUCP> <677@applix.UUCP> <1767@sugar.UUCP> Reply-To: scott@applix.UUCP (Scott Evernden) Organization: APPLiX Inc., Westboro MA Lines: 23 In article <1767@sugar.UUCP> schaub@sugar.UUCP (Markus Schaub) writes: >In article <677@applix.UUCP>, scott@applix.UUCP (Scott Evernden) writes: >> >> ... Here's an sketch of some code continuing >> the example above (again, for Manx C): > ^^^^^^^^ >If the code after #asm is C for you then this is the answer. For me it's >assembler and the answer therefore is NO. >You cannot write a replacement for a library routine in C. By the same reasoning, you cannot call Amiga library routines from C. You are correct insofar as you need to write some glue code to acquire arguments to the function, but this is generally doable in about 3 instructions: #asm _myScrollRaster: movem.l a1/d0-d5,-(sp) jsr _myScrollRaster_in_C lea sp(14),sp #endif -scott