Re: [cc65] bank switching/retro replay?

From: Ullrich von Bassewitz <>
Date: 2009-11-10 17:31:45
On Tue, Nov 10, 2009 at 02:22:51PM +0100, Groepaz wrote:
> 	.word f1,.banked(f1) ; evaluates to $11
> 	.word f2,.banked(f2) ; evaluates to $12
> this approach seems simpler and cleaner to me, and it should cover most
> practical uses... 
How would you switch banks given above table? Search through the table until
the function is found?

> the function attribute really doesnt make a lot of sense
> unless the compiler/assembler/linker are able to _automatically_ place
> functions in different banks, imho. when having to manually manage it, then
> simply using specific segments for specific banks is a lot more
> straightforward :)

Not really. One could use preprocessor magic to emit the necessary code-name
#pragmas and define a constant for use in "__attribute__ ((banked, const))".



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 17:31:50 2009

This archive was generated by hypermail 2.1.8 : 2009-11-10 17:31:53 CET