Re: [cc65] bank switching/retro replay?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-11-10 13:45:52
Hi!

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

Ok.

> 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.

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 13:46:07 2009

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