Path: utzoo!utgpu!water!watmath!clyde!att-cb!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: LVOs and SetFunction Message-ID: <8803280913.AA01953@cory.Berkeley.EDU> Date: 28 Mar 88 09:13:27 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 14 >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. You can, but you need a small assembly 'hook' to move the registers onto the stack. For non-critical library calls this works fine. For critical library calls you would want to write it in assembly anyway. And, of course, if the library is designed for a C stack frame, no hook is needed (but all standard Amiga libraries pass arguments in registers). -Matt