Re: [cc65] bank switching/retro replay?

From: Ullrich von Bassewitz <>
Date: 2009-11-10 13:45:52

On Tue, Nov 10, 2009 at 01:35:32PM +0000, Thomas Giesel wrote:
> functions with this attrbute could be called like this:
> 1. Put arguments on stack
> 2. Put bank number on stack
> 3. Put function address on stack
> 4. Call generic trampoline function


> This attribute may imply that the code has fastcall convention (why not...)
> and that it must not be used in an IRQ-handler. They cannot be used in absence
> of a prototype.

__fastcall__ won't work, since the registers are necessary to evaluate the
other stuff (bank number, function address), but the user supplied routine
could be called with the function address in a/x instead.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Nov 10 13:46:07 2009

This archive was generated by hypermail 2.1.8 : 2009-11-10 13:46:09 CET