On Tue, Nov 10, 2009 at 01:51:02PM +0000, Thomas Giesel wrote: > Good idea, so the updated mechanism would be: > > 1. Put (all) arguments on stack > 2. Load bank number into Y > 3. Load function address into AX > 4. Call generic trampoline function > > Sounds faster :) Yes, but it won't work:-) The function address may be an expression, in which case the Y register may get destroyed when evaluating it. The bank number may also be a 16 bit value if this has advantages for a speficic implementation. It is my experience that it isn't a good idea to optimize too much when designing new code. So let's do it the safe way and pass the bank number on the stack. If the implementation shows possible improvements, there's still time to change it. Anyway, this won't happen anytime soon. I'm still working on the mul/div routines and TGI, and several other things are waiting. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Nov 10 14:00:29 2009
This archive was generated by hypermail 2.1.8 : 2009-11-10 14:00:31 CET