Forgot something: It may be useful to have the bank history on stack to make sure the function return works when banked functions call each other. So the trampoline code could restore the previous bank on return of the banked function. -------- directBOX Reply --------------- From: skoe@directbox.com To : cc65@musoftware.de Date: 10.11.2009 13:51:41 Uz, 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 :) / Thomas ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail. ---------------------------------------------------------------------- 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 13:55:01 2009
This archive was generated by hypermail 2.1.8 : 2009-11-10 13:55:04 CET