Thanks, I'll check it out. I'll go that route now, I can always optimise the code afterwards if I want to.In general there's nothing wrong with changing macros into subroutines...except that it will eat CPU cycles due to the JSR/RTSes and the pushes and pops.
But I'm really getting out of ROM space. Lots of code is generated with macro's. Is it OK to change some macro's into subroutines, push some variables to the stack and call the subroutines with JSR?
Here's a document that shows how to do f8 bankswitching:
It's not too hard...partitioning the code is really the hardest part.