Re: [cc65] bank switching/retro replay?

From: Marc 'BlackJack Rintsch <marc1rintsch.de>
Date: 2009-11-09 21:48:35
On Monday 09 November 2009, Ullrich von Bassewitz wrote:
> On Sun, Nov 08, 2009 at 05:58:06PM +0100, Johan Kotlinski wrote:
> > just writing to check if anyone has developed for cartridges (e.g.
> > Retro Replay) using cc65 and has wisdom to share?
> > If I understand right, there is no in-built support for bank
> > switching in cc65, similar to what's available in sdcc?
>
> I don't know that's available in sdcc, but Oliver has written a
> sample program for version 2.13.0 that shows how to use overlays. For
> reasons, I do no longer remember, it didn't make it into the head
> branch.

`sdcc` has a keyword named `banked` (?) and when you mark a funktion 
with it you can call such a function just like any other and the 
compiler emits a jump to trampoline code that does the banking and 
calling for you transparently, including "banking back" to the caller 
function.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
“Every program is a part of some other program and rarely fits.”
                                               -- Alan J. Perlis

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Nov 9 21:48:49 2009

This archive was generated by hypermail 2.1.8 : 2009-11-09 21:48:52 CET