How to import shared code from banks with ca65?
Moderator: Moderators
Re: How to import shared code from banks with ca65?
Dunno, but try removing ".export lib_SwitchBank" from boot_shared.inc and moving it to boot.asm at top-level scope.
Re: How to import shared code from banks with ca65?
Instead of including the same code multiple times in your source, shouldn't it be possible to do this with the linker config? Just define a segment that's included multiple times in the ROM image.
Re: How to import shared code from banks with ca65?
I don't think the ld65 configuration language allows a single SEGMENT to be copied into multiple MEMORY areas.